<jsp:forward >.....can this tag be used twice in a single jsp???
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sumit_Ranjan
Posted On:   Sunday, October 7, 2001 05:39 AM


jsp:forward .....can this tag be used twice in a single jsp....?

i want to have a jsp page wherein i use jsp:forward to call a servlet and change the contents of one particular file(the file is outside the servlet context , residing in a different web-application !) and then use jsp:forward again to call that file .

is it possible ? what other alternatives do i have ?

Re: <jsp:forward >.....can this tag be used twice in a single jsp???

Posted By:   Luigi_Viggiano  
Posted On:   Sunday, October 7, 2001 08:54 AM

it can be used twice, but a page can forward to one single page, and no more than one.

For what you want to do you can do in the following way:


Page1 -> Servlet -> Page2


you can use multiple forward but only one ca be executed; example:

<%
...
if (...) { %>

<% } else { %>

<%
}
...
%>
About | Sitemap | Contact