jsp foward tag
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jennifer_Morgan
Posted On:   Friday, April 20, 2001 02:38 PM

I am using Visual Age 3.5 Websphere test environment. I have the following tag in my jsp:

the problem is that the jsp engine is executing the code after this tag. Is there something I can do to get around this or is this a bug in Visual Age? I thought the jsp engine did not return control to the calling jsp when a foward tag is encountered.

thanks.

Re: jsp foward tag

Posted By:   Dmitry_Ivlev  
Posted On:   Sunday, April 22, 2001 07:33 PM

The next simple shows how to forward page and stops execution on JSP.

<%
if (1 == 1) {
pageContext.forward("/login.jsp");
return;
}
%>
About | Sitemap | Contact