Yup, that's the way the spec says it should work :-) An attribute can be
*either* a static String *or* a Runtime Expression. You can't mix both,
so you have to make the any static text part of the RT as you showed.
L.
Frank W. Zammetti wrote:
I don't think so... if that was true you'd expect
sers Mailing List
> Cc: Struts Users Mailing List
> Subject: RE: Scriptlets in Struts tag
>
>
> I believe your running into something I ran into the other day,
> something
> I didn't know... if you have an attribute:
>
> someAttribute="123<%=someV
: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: RE: Scriptlets in Struts tag
I believe your running into something I ran into the other day,
something
I didn't know... if you have an attribute:
someAttribute="123<%=someVar%>"
...the value of someVar isn
arsh wrote:
> I tried that. But in the HTML rendered, the id attribute is rendered as:
>
> id='BLABLA<%=indexVal.intValue()%>'
>
> Harsh.
>
> -Original Message-
> From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February
e: Scriptlets in Struts tag
hi,
try this code.
<%=indexVal.intValue()%>
Regards,
Nuwan.
- Original Message -
From: "Chaudhary, Harsh" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Tuesday, February 27, 2007 6:22 PM
Subject: Scriptlets in
hi,
try this code.
<%=indexVal.intValue()%>
Regards,
Nuwan.
- Original Message -
From: "Chaudhary, Harsh" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Tuesday, February 27, 2007 6:22 PM
Subject: Scriptlets in Struts tag
My code:
ind
My code:
The code within the ->>> and <<<- is not working. I think it
might be due to the way the tag is parsed in the JSP but does anyone
know of a way to do this.
Basically, I would like to have id='BLA1', id='BLA2' .. in the
rendered HTML.
Harsh.
7 matches
Mail list logo