Trouble passing JSP values to ActionForm (Struts)
        Posted  
        
            by tacotime
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by tacotime
        
        
        
        Published on 2010-03-31T19:39:32Z
        Indexed on 
            2010/03/31
            19:43 UTC
        
        
        Read the original article
        Hit count: 357
        
Hi,
I am a newbie to Struts and have inherited a problem. I am trying to pass 3 values contained in the same table cell from a JSP to my ActionForm class. The first value (and others in the JSP) work fine, but for some reason the other two do not. I have the appropriate getters and setters, but only the first (newrecnum) shows up, the other two are null. Is there a limitation to only pass the first value? Or is there something else wrong? Here is the JSP code:
<td>
<html:text size="10" maxlength="10" property="newrecnum"/><br>
<html:text size="5" maxlength="5" property="newrectime"/>
<html:select property="newreccode" disabled="true">
    <html:option value="YES">YES</html:option>
    <html:option value="NO">NO</html:option></html:select>
</td>
I can include the ActionForm code as well if needed. Thanks!
© Stack Overflow or respective owner