This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

JavaRanch » Java Forums » Java » Servlets
Bookmark "return string to jsp from servlet" Watch "return string to jsp from servlet" New topic

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?
I agree. Here's the link:
subject: return string to jsp from servlet
It's not a secret anymore!