Hi Laurie,
It works! i'm not using servlet 2.4 specification.
Now it works (but i have to change the taglib declaration to <%@ taglib
uri="http://java.sun.com/jstl/core_rt"; prefix="c" %>)

Thanks a lot, I wanted to avoid the use of scriptlets.



Laurie Harper wrote:
> 
> You probably *don't* want the -el taglibs on Tomcat 5. You will need to 
> make sure your web.xml uses the Servlet 2.4 style namespace declaration, 
> though, to get EL working.
> 
> For scriptlets, your problem is invalid syntax. An attribute value can 
> be either plain text, or an RT expression. You can't mix the two forms. 
> Try this instead:
> 
>    <html:text property="<%='num_linea['+i+']%>" />
> 
> But I'd strongly suggest getting EL working and avoiding RT expressions 
> and scriptlets altogether.
> 
> L.
> 
> Ed Griebel wrote:
>> I've done EL expressions like you want to do. Try using the -el
>> version of the html tag:
>> 
>> <html-el:text property="num_linea[${i}]"/>
>> 
>> On 3/16/07, irene <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi,
>>> I have a problem with Struts tags.
>>> I can't use any expression (EL, runtime) in the tag attributes :
>>>
>>>     <html:text property="num_linea[${i}]" />
>>>
>>>     <html:text property="num_linea[<%=i%>]" />
>>>
>>> The result is an error: Invalid argument looking up property:
>>> "num_linea[<%=i%>]"
>>>
>>> I suppose i have something wrong in my webapp configuration...
>>>
>>> I use tomcat 5, struts 1.2.9
>>>
>>> Please help!!!
>>> -- 
>>> View this message in context: 
>>> http://www.nabble.com/Please-help%3A-Struts-tags-don%27t-evaluate-any-expressions-tf3413607.html#a9511739
>>>  
>>>
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Please-help%3A-Struts-tags-don%27t-evaluate-any-expressions-tf3413607.html#a9571429
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to