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?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: return string to jsp from servlet
Similar Threads
Redirect problem
JSP - Servlet interaction.
I need help with this situation regarding form post parameters
How to add back button using JSTL?
Server Side validation - what kind of work flow have to follow?