hi Brien,
The jsp code below works fine.I was able to include the jsp:forward within the
useBean tag and forward to another jsp.I am using the jswdk1.0 RI .
The problem may be in JRun.
<html>
<title>BeanTest</title>
<body>
<jsp:useBean id="req" class="dheepa.RequestBean" scope="session" >
<jsp:forward page="greet.jsp" />
</jsp:useBean>
</body>
</html
Dheepa
Brien Voorhees wrote:
> When a user object doesn't exist already in the session I want to forward
> the user to the login page. I'm trying to do this by putting the forward
> tag within the context of the useBean tag but it doesn't seem to work.
> Here's what is in the jsp :
>
> <jsp:useBean id="bapiContext" scope="session"
> class="proto.bapi.EmptyBapiContext" type="proto.bapi.BapiContext">
> <jsp:forward page="/login.jsp"/>
> </jsp:useBean>
>
> Here is the jave code that JRun generates :
>
> Object __bapiContext_was_created[] = new Object[1];
> proto.bapi.BapiContext bapiContext = (proto.bapi.BapiContext)
> JSPRuntime.instantiateBean("bapiContext", "proto.bapi.EmptyBapiContext",
> "session", __bapiContext_was_created, pageContext, request, session,
> application);
> if(((Boolean) __bapiContext_was_created[0]).booleanValue()) {
> // ******** right here is where I would expect my jsp:forward stuff to be
> but it's empy
> }
>
> Am I trying to do something unreasonable, or is this a bug in JRun?
>
> Thanks for any help,
> Brien Voorhees
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html