How to call a servlet from a jsp form
Hello,
I know there is already a similar topic but it seems like this does not work in newer versions anymore. I am trying to call a Servlet from a custom jsp in Windchill 12.0.2.1.
The serlets url is <server>/Windchill/servlet/MyExportServlet. The servlet works fine when I paste this url in the browser.
I am generating the url in the jsp like you can see blow.
<%
String cb = WTProperties.getLocalProperties().getProperty("wt.server.codebase");
String action = cb + "/servlet/MyExportServlet";
%>
Then there is a form in the jsp that is supposed to call the servlet
<form action="<%=action%>">
....inputs
<button type="submit">Submit</button>
</form>
However when pressing submit the page seems to be reloading and the servlet is not called. There is no error or anything else.
Does anyone know how to do this?
Best regards

