•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 392,092 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,897 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 5113 | Replies: 0
![]() |
•
•
Join Date: Dec 2006
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
Hi,
I want to use struts-html:checkbox to insert/update a field in a table.
I am using dynavalidatoractionform in struts-config and beanutils.copyproperties to populate these fields in a formbean
i need this checkbox to be checked by default when the page comes up. on submit, it should send Y if checked / N if unchecked to the actionclass.
i tried this, by using attribute "initial" in dynavalidatoractionform in struts-config . so by default it gets checked. but when i uncheck it, it still goes as checked to the actionclass
do i have to use hidden/reset method to solve this problem ?
Pls help with some code fragments
I want to use struts-html:checkbox to insert/update a field in a table.
I am using dynavalidatoractionform in struts-config and beanutils.copyproperties to populate these fields in a formbean
i need this checkbox to be checked by default when the page comes up. on submit, it should send Y if checked / N if unchecked to the actionclass.
i tried this, by using attribute "initial" in dynavalidatoractionform in struts-config . so by default it gets checked. but when i uncheck it, it still goes as checked to the actionclass
do i have to use hidden/reset method to solve this problem ?
Pls help with some code fragments
Last edited by RatanKumar : Oct 27th, 2007 at 6:46 pm.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
- How to fire a HTML button by default when enter key is pressed using javascript..? (JavaScript / DHTML / AJAX)
- Checkbox input to an Access DB via ASP and JScript (ASP)
- asp:repeater in a form? (ASP.NET)
- how to loop thru checked checkbox to retrieve its value?!? (ASP.NET)
- hompage resets to res://hsnyc.dll/index.html#37049 (Viruses, Spyware and other Nasties)
- Hijack Help (Viruses, Spyware and other Nasties)
- Please help, cant change homepage in IE. Log provided. (Viruses, Spyware and other Nasties)
- res://scjik.dll/index.html#96676 (Viruses, Spyware and other Nasties)
- Strange IE Hijack (Viruses, Spyware and other Nasties)
Other Threads in the JSP Forum
- Previous Thread: Pre-compile JSP in using Java program
- Next Thread: How do I pass a value for an array element to a bean from a form?


Linear Mode