October 10th, 2000, 11:25 AM
I'm tring to call a servlet from the HTML in another:-
My HTML within the servlet is exactly the same as that of a straight HTML page of mine that does the same job - and works.
out.print("<input type="hidden" name="loadPage" value="submitForm">");
However, when running from the servlet the page fails to load.
Does this not work from within a servlet?
...or I missing something?
Any suggestions more than welcome..
October 10th, 2000, 03:51 PM
Are you sure that the HTML generated by Servlet1 is the same as the regular HTML page that successfully loads Servlet2? The best way to find out is to start your Servlet1, and do a view source in the browser. If the action property in the form is different than the action property in the form on your static HTML page, than that is probably the problem.