#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    15
    Rep Power
    0
    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..

    cheers
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    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.

IMN logo majestic logo threadwatch logo seochat tools logo