Heh, Brian you were having the same problem I was. I posted yesterday with subject: "[RT Expr] for html:text property"
Craig M replied quoting the JSP spec (Third download button on page: http://www.jcp.org/aboutJava/communityprocess/final/jsr053/), to quote section JSP.2.13.1 Request Time Attribute Values, paragraph 2 describing the user of <%=%> in request-time attribute values: <quote> The expression must appear by itself (multiple expressions, and mixing of expressions and string constants are not permitted). </quote> Craig. <tataryn:craig/> On Sun, 07 Mar 2004 17:17:32 +0000, "Brian Boyle" wrote: > > Hey, I am using a map-backed ActionForm and so in my JSP code I have a > <html:text> tag that looks like this: > <html:text property="value(<%=value.getUserId()%>)" readonly="true" size="2" > /> > > The reason I have a scriplet in there is because I have a dynamic form and > the value of the key changes all the time. I want the value of the key to be > the "id" of the user logged in. > > However, this is giving me problems because the value of the key is being > taken literally as <%=value.getUserId()%> rather than the value of the > userId. The scriplet <%= value.getUserId %> is correct because I have tested > it with System.out.println(value.getUserId). So it looks like I cannot put > my scriplet in there. Has anyone experienced this before? Or does anyone > know why it won't et me do this? Any way to get around this? > > I'd appreciate any help. I've been stuck on it for two days now. > > Cheers, > > B > > _________________________________________________________________ > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] <tataryn:craig/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

