| Author |
html:hidden, property & javascript
|
Akhilesh Trivedi
Ranch Hand
Joined: Jun 22, 2005
Posts: 1493
|
|
i want to assign a value to property of a bean. The value is actually in a javascript variable.... function submitId(somevalue) { document.getElementById("set_me").value=somevalue; document.forms[0].submit(); } <html:form action="TaskDetails"> <input type="hidden" id="set_me" value="10" /> </html:form> trouble is <input type do not have "property" tag and if I use html:hidden there is no way to get the script variable....
|
Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
|
 |
Nakata kokuyo
Ranch Hand
Joined: Apr 13, 2005
Posts: 437
|
|
|
how about styleId ?
|
 |
Akhilesh Trivedi
Ranch Hand
Joined: Jun 22, 2005
Posts: 1493
|
|
Thanks for responding buddy..... i did something of this kind... http://husted.com/struts/tips/002.html and hopefully it worked...
|
 |
Brent Sterling
Ranch Hand
Joined: Feb 08, 2006
Posts: 948
|
|
I am not sure how the linked article fits in with your issue. Did you give styleId a try? The Struts html tags have a property named styleId that renders the html id attribute which is what you would need to use with document.getElementById. - Brent
|
 |
 |
|
|
subject: html:hidden, property & javascript
|
|
|