struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cimballi <cimba...@cimballi.net>
Subject Re: struts2 + javascript doubt
Date Mon, 24 May 2010 18:15:52 GMT
Yes you can but instead of using <s:property> you can use directly JSP
EL like {myBean.propertyName}.

Cimballi


On Mon, May 24, 2010 at 1:10 PM, lucas owen <sr.ilustre@gmail.com> wrote:
> Hi:
>
>
> is it possible to pass a dynamic parameter to a javascript function???
>
> I'm trying this:
>
>
> <h3 id="<s:property value=*'info.id_html'*/>" class=*"head"*>
>
> <a href="*javascript:fPrimerNivel(*<s:property value=*'info.id_html'*/>*);*"
>><s:property value=*"info.titulo_menu"*/></a>
>
> </h3>
>
> javascript function:
>
>  fPrimerNivel(id){ alert(id); }
>
> yields [object]
>
>
>
> If I try the same, but with javascript:fPrimerNivel(this.id), I get
> [undefined]
>
>
>
> I dont know if this is possible, any help would be so much appreciated!!!!
>
> ciaooo
>



-- 
Cimballi
JAVA J2EE Freelance
http://cimballi.elance.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message