form bean problem
Hi friends
im using struts framework.
1) i have a welcome.jsp. associated to it is a ActionForm and Action class. my form has a text field
<html:text property="fname"/>. In my ActionForm class i have written all getter and setter methods. and validate too.
2) Now when i submit this fname is stored implicitly in variable fname of ActionForm class through setFname(String). After validations over control is passed to Action class. there im able to access the fname through getFname();
Now from this class i m forwarding to another jsp through mapping.findForward(String);
3) In this jsp file if im writing :
<html:text property="fname"/> // im automatically getting the value of fname which i entered in welcome.jsp.
but if im writing
<jsp:useBean id="get" class="ActionFormClassName"/>
<jsp:getProperty name="get" property="fname"/>
im not getting error but the value im getting is null.
i cant figure out why. One thing is sure that it is recognizing property="fname" in jsp tag. Because if i give
<jsp:getProperty name="get" property="Fname"/> instead it gives error.
?

