This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp:forward
 
Similar Threads
pasing request from JSP to servlet
JSP forward doubt
IllegalStateException is coming if I use sendRedirect() method..
Pop up new HTML page in JSP
error in jsp(please help)