Here is an iterate sample that shows the correct approach:
<logic:iterate id="list" name="userList" >
<tr>
<td><bean:write name="list" property="firstName"/> <bean:write name="list" property="lastName"/></td>
<td><bean:write name="list" property="role"/></td>
<td><bean:write...
Each JSP should have a corresponding formBean if that JSP has at least one input capable field. So once you've got the data from you database loaded to the DAO you simply have to move the data from the DAO to the formBean representing the JSP front end. Just move the data elements from the DAO...
Venu:
Thank you for responding to my question "Jakarta Struts and Javascript". Here is my javascript sample:
function disableField()
{
var form = document.forms[0];
document.forms[0].elements['allowAccessSunday'].disabled = true;
}
and here is my jsp code:
<tr>
<td...
I have a JSP page that uses struts tags for text fields, 2 radios and 5 checkboxes. The checkboxes need to be disabled depending on which radio is selected. I've attached onclick to each radio and have a javascript function in place. Problem is how to I reference an actionForm property in the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.