Results 1 to 5 of 5
  1. #1
    mr_anderson is offline Member
    Join Date
    May 2010
    Location
    Florida
    Posts
    68
    Rep Power
    0

    Default new page is opened with servlet initialization?

    Hi
    I wrote a servlet and it worked just fine, but in each time I start the servlet (i.e. in the first run only) a new page of the Internet explorer is opened on the PC with Tomcat server and it shows the result of the doGet() method, how can I turn it off is there any options in Tomcat 5.5 to stop it?
    Any reviews, ideas, comments are highly appreciated
    Regards.
    Anderson.
    Last edited by mr_anderson; 11-17-2010 at 06:50 PM.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,182
    Rep Power
    20

    Default

    Pardon?
    What do you mean by "start the servlet"?
    I'm assuming that's not starting up Tomcat as that won't cause a web page to open.

  3. #3
    mr_anderson is offline Member
    Join Date
    May 2010
    Location
    Florida
    Posts
    68
    Rep Power
    0

    Default

    Hi Tolls
    I mean when you put your servlet in the Tomcat server it will be initialized in the first call (first POST, GET) only then it will keep listening on the service() method.
    Regards.
    Anderson.

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,182
    Rep Power
    20

    Default

    I still don't understand.
    Client makes a call to the servlet. Servlet gives a response.

    That's how these things work.
    What are you seeing that you don't expect to see?

  5. #5
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    843
    Rep Power
    6

    Default

    Just check ur web.xml file whether you have mentioned servlet class in load on start up tag.
    Ramya:cool:

Similar Threads

  1. how to call servlet from the very first jsp page
    By R O C K Y in forum Advanced Java
    Replies: 6
    Last Post: 07-04-2012, 05:20 PM
  2. redirect to a servlet page
    By niteangell21 in forum New To Java
    Replies: 5
    Last Post: 11-15-2010, 03:53 PM
  3. Servlet calling a new html page within it.
    By ServletEst in forum Java Servlet
    Replies: 6
    Last Post: 09-27-2009, 03:16 AM
  4. Servlet should return a jsp page not html
    By hannehomuth in forum Advanced Java
    Replies: 1
    Last Post: 08-12-2008, 04:14 PM
  5. Servlet calling JSP page
    By gapper in forum Java Servlet
    Replies: 1
    Last Post: 01-15-2008, 05:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •