Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a jsp from a jsp

Status
Not open for further replies.

timmbo

Programmer
Feb 22, 2001
167
0
0
US
Hi All,

My code sees if count == 10.
If so:
-- I want to call another jsp (custFavOverwrite.jsp). How do I accomplish this??
Below is my code:

if(count == 10){
//need to call custFavOverwrite.jsp here.
}

Thanks for the help everyone.
Tim
 
Hi Tim,

Code:
if(count == 10) {
  response.sendRedirect(response.encodeURL("custFavOverwrite.jsp"));
}

Hope this helps,

Tim --
Tim <tim@planetedge.co.uk>
 
Exactly what method call is generated by the jsp:forward directive? And is there any limitations where you could put the directive on the page? We've experiencing some problems on WebSphere when inserting the forward directive inbetween two scriptlet tags which together form a method body.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top