tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (David M. Karr)
Subject Re: [jstl] jsp:forward ideas
Date Fri, 08 Nov 2002 07:06:18 GMT
>>>>> "Henri" == Henri Yandell <> 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="${}"/>'/>
    >> </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="${}"/>'/>
    Henri> </jsp:forward>

    Henri> [which was working as:
    Henri> <c:redirect url="${param.goto}">
    Henri>   <c:param name="id" value="${}"/>
    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

David M. Karr          ; Java/J2EE/XML/Unix/C++   ; SCJP

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message