>Per the JSP spec, the thing you can put inside the <jsp:useBean> ... </jsp:use
Bean>
>combination is <jsp:setProperty> elements.  Even if the compiler generated the
 code
>for the forward, it would probably generate an unconditional forward, rather t
han a
>conditional one.

Craig,

I don't agree.
Spec 1.1, page 62: "Typically the body will contain either scriptlets or 
jsp:setProperty tags that will be used to modify the newly created object, but the 
contents of the body is not restricted."

So the construct is valid in gnujsp.


>
>I solve this sort of problem by coding the equivalent scriptlet:
>
><%
>  proto.bapi.BapiContext bapiContext =
>    (proto.bapi.BapiContext) session.getValue("bapiContext");
>  if (bapiContext == null) {
>%>
>    <jsp:forward page="/login.jsp"/>
><%
>  }
>%>
>
>In a JSP 1.1 environment (with custom tag libraries), it's also possible to cr
eate
>a variation on the <jsp:useBean> element that has semantics like what you trie
d
>here.
>
>Craig McClanahan
>
>===========================================================================
>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

Ciao,
        Carsten Heyl

  Carsten Heyl                          [EMAIL PROTECTED]
  NADS - Solutions on Nets              http://www.nads.de/
  NADS GmbH                             http://www.pixelboxx.de/
  Hildebrandtstr. 4E                    Tel.: +49 211 933 02-90
D-40215 Duesseldorf                     Fax.: +49 211 933 02-93

===========================================================================
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

Reply via email to