File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes doGet or doPost: to servlet from JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "doGet or doPost: to servlet from JSP" Watch "doGet or doPost: to servlet from JSP" New topic
Author

doGet or doPost: to servlet from JSP

Nelson Nadal
Ranch Hand

Joined: Jun 06, 2002
Posts: 169
If I just redirect my JSP to servlet what does the servlet execute? doGet or doPost? Thanks.
Brian Smith
Ranch Hand

Joined: Oct 26, 2002
Posts: 232
i believe it should execute doGet unless you explicitly specify doPost. others might want to comment if i am wrong.
Tim Baker
Ranch Hand

Joined: Oct 04, 2003
Posts: 541
doGet is default, or should be, unless you have a very wierd and strange browser.


Kim Jong II (North Korea's Dear Leader) said:Nuclear weapons don't kill people, people kill people.
Nelson Nadal
Ranch Hand

Joined: Jun 06, 2002
Posts: 169
I just issue a request.sendRedirect(req,res) command.
I don't know how can I send it by POST or GET, I only know that it can pass its request attributes automatically.
 
 
subject: doGet or doPost: to servlet from JSP