The syntax for request-time expressions is limited to expressions. The
first syntax is correct, the second is not.
We have talked some about allowing what you want to do, but we have not
got there. For example, a future spec COULD allow for something like
the following syntax:
<jsp:forward>
<jsp:attributeName>page</jsp:attributeName>
<jsp:attributeValue><%= loginHandler.getNextPage()
%></jsp:attributeValue>
</jsp:forward>
which would very naturally extend to what you want.
NOTE: The above example is "from the hip"; no promises the JSP spec will
ever do something like that :-).
Hope this helps,
- eduard/o
> Date: Tue, 19 Oct 1999 10:53:58 -0700
> From: Mary Wong <[EMAIL PROTECTED]>
> Subject: jsp tag inside another jsp tag
>
> Hello all,
>
> What is the proper syntax for nesting jsp tags?
>
> The following works:
> <jsp:forward page ="<%= loginHandler.getNextPage() %>" />
> But this causes page compilation error:
> <jsp:forward page ="<jsp:getProperty name="loginHandler" property="nextPage"
>/>" />
>
> What's the correct syntax for the latter if I want to avoid scripting?
>
>
> Thanks ahead.
> -Mary
===========================================================================
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