Hi, I have tried
<a href="*javascript:fPrimerNivel( ' *${info.id_html} ' *);*"> ( note the single quotes) and it works!!!! Thank you so much Cimballi, you are a crack!!!! 2010/5/24 Cimballi <cimba...@cimballi.net> > 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.ilus...@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-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >