hi chris,
you can do it using scriptlets and the forward tag....your code will look
something like:

<% if (condition ==true){ %>
<jsp:forward page="somepage.jsp" />
<% } %>
hope this is what you were looking for...




Chris Newland <[EMAIL PROTECTED]> on 05/04/2000 08:06:49 PM

Please respond to A mailing list about Java Server Pages specification and
      reference <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Bilal Ali Nawaz/PK/ABNAMRO/NL)
Subject:  JSP conditional redirection possible?



Hi,

Is it possible to make a JSP jump to another JSP if a
certain condition (detected using embedded code) is
met:

<% if (condition == true) {
load foo.jsp into browser
}
else {
load bar.jsp into browser
}%>

Thanks,

Chris

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets





_________________________________________________________________________

Disclaimer:

"This  message is confidential. It may also be privileged or otherwise protected
by  legal  rules. If you have received it by mistake please let us know by reply
and then delete it from your system."

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to