permaculture playing cards*
The moose likes JSP and the fly likes jsp:forward Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp:forward" Watch "jsp:forward" New topic
Author

jsp:forward

kevin schmidt
Ranch Hand

Joined: Aug 24, 2001
Posts: 85
Hi,
If I'm submitting information into a page, and all the criteria match, I want to go to another page... how does a person properly use the <jsp:forward> command? TIA.
Kevin
Roy Ben Ami
Ranch Hand

Joined: Jan 13, 2002
Posts: 732
like this:
<jsp:forward page="your url" >
<jsp aram name="just a paramater" value=name/>
</jsp:forward>
u specify the url and u can use the param attribute to pass parameters in the request.
Roy Ben Ami
Ranch Hand

Joined: Jan 13, 2002
Posts: 732
the above should ofcourse say this without the smiley:
Roy Ben Ami
Ranch Hand

Joined: Jan 13, 2002
Posts: 732
grrrrr......
well u get what i mean.
kevin schmidt
Ranch Hand

Joined: Aug 24, 2001
Posts: 85
yup... no worries
Sals Hamid
Greenhorn

Joined: Jan 04, 2002
Posts: 24
<jsp:forward page="info.jsp" />


No Path of Flowers lead to glory
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jsp:forward