On Fri, 31 Jan 2003, Brandon Goodin wrote:
> Date: Fri, 31 Jan 2003 18:24:43 -0700
> From: Brandon Goodin <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts User List <[EMAIL PROTECTED]>
> Subject: Struts EL
>
> I looked everywhere to find this answer and couldn't so.... :-D
>
> If I have the following:
> <c:forEach var="x" start="1" end="10">
> <html:hidden proper="thisObject[${x}].text"
> value="${pass.this.value.as.is}"/>
> </c:forEach>
>
> And I am using the struts html el taglib
> And I want pass the value of ${pass.this.value.as.is} to the back-end
> unprocessed.
>
> In other words.. I literall want "${pass.this.value.as.is}" to be passed to
> the back.
>
> How would I do this and keep the el from processing the value?
>
I don't believe there's any mechanism to do that in the current struts-el
tags. Further, in a JSP 2.0 container (such as Tomcat 5), the JSP page
compiler is going to compile them anyway -- unless you disable EL
expressions globally on your page.
If you've played with the EA release of JavaServer Faces, you'll find that
we did something pretty similar to what you're doing with the
"modelReference" attribute. Our current workaround is to instruct the
user to omit the delimiters "${" and "}" on their attribute values, and
attach them (if needed) with processing logic -- although, in our case, we
just made the expression evaluator work with or without delimiters.
> Brandon Goodin
> Phase Web and Multimedia
> P (406) 862-2245
> F (406) 862-0354
> [EMAIL PROTECTED]
> http://www.phase.ws
>
Craig
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]