Re: Struts html taglib and javascript

2006-03-14 Thread Laurie Harper

[EMAIL PROTECTED] wrote:

Hi

I am trying to put dynamic javascript in html:text tag. I have a checkbox next to a name (names are backed up by a list) and whenever the user changes the name the checkbox next to the name is automatically checked. 


javascript: document.someform.chkbox[<%=indexId property in nested:iterate 
tag%>].checked=true;

but whenever I put jsp expression in the onchange attribute of the html:text, it never gets parsed. 

How to get over it? 


To solve, i used the plain old html input tag but I would really like to use 
the struts html:text tag...


What do you mean by 'it never gets parsed?' What does your JSP markup 
look like?


L.


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



Struts html taglib and javascript

2006-03-12 Thread Jay . Jakilinki
Hi

I am trying to put dynamic javascript in html:text tag. I have a checkbox next 
to a name (names are backed up by a list) and whenever the user changes the 
name the checkbox next to the name is automatically checked. 

javascript: document.someform.chkbox[<%=indexId property in nested:iterate 
tag%>].checked=true;

but whenever I put jsp expression in the onchange attribute of the html:text, 
it never gets parsed. 

How to get over it? 

To solve, i used the plain old html input tag but I would really like to use 
the struts html:text tag...


Please help...


The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure.  If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof.  Thank you.