tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmk...@earthlink.net (David M. Karr)
Subject Re: [jstl] jsp:forward ideas
Date Fri, 08 Nov 2002 07:06:18 GMT
>>>>> "Henri" == Henri Yandell <bayard@generationjava.com> writes:

    Henri> On 7 Nov 2002, David M. Karr wrote:

    >> Just use different quotes at the other level:
    >> 
    >> <jsp:forward page="somePage.jsp">
    >> <jsp:param name="id" value='<c:out value="${param.id}"/>'/>
    >> </jsp:forward>

    Henri> Nope, not happy. I had:

    Henri> <jsp:forward page='<c:out value="${param.goto}"/>'>
    Henri>   <jsp:param name="id" value='<c:out value="${param.id}"/>'/>
    Henri> </jsp:forward>

    Henri> [which was working as:
    Henri> <c:redirect url="${param.goto}">
    Henri>   <c:param name="id" value="${param.id}"/>
    Henri> </c:redirect>
    Henri> ]

    Henri> and I get an error of:

    Henri> message /<c:out value="${param.goto}"/>
    Henri> description The requested resource (/<c:out value="${param.goto}"/>) is
not available.

    Henri> So it's not parsing the inside of page attribute for jstl I guess. [I
    Henri> flipped the ' and " just in case. Figured it wouldn't hurt :) ]

Oh.  Duh.

In that case, I guess you either use the scriptlet, do it at the servlet level,
or use Struts-EL (logic-el:forward).  I don't see a clean way to do it
otherwise.

-- 
===================================================================
David M. Karr          ; Java/J2EE/XML/Unix/C++
dmkarr@earthlink.net   ; SCJP



--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>


Mime
View raw message