*
The moose likes Servlets and the fly likes return string to jsp from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "return string to jsp from servlet" Watch "return string to jsp from servlet" New topic
Author

return string to jsp from servlet

Li Jenny
Ranch Hand

Joined: Apr 19, 2010
Posts: 57
how can i return msg to label in jsp from servlet.


after clicking the submit button,then call servlet to do something.
afterwards, setSttribute for session and then redirect back to the page.

sometimes, i redirect back to the page after submit form, sometimes, i go to the page by linkage.
how can i distinct the page is entered after submit form or not?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: return string to jsp from servlet