FormBean not being filled ..getting null values in the Action Class
I am sorry if this question is too vague , but I want to get some ideas on how to proceed from here ...
I created a regulat struts form with all the configurations ..but for some one known reason the form is not being filled ,
In the action class what I get is just null vales ...
Could you please direct me as to where I should look for the error
This is the action class I have
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws SQLException {
GeneSearchForm rForm =(GeneSearchForm)form;
String org =rForm.getOrganism();
String title=rForm.getTitle();
System.out.println("########" +org +title);
//System.out.println(rForm.getTitle());
return mapping.findForward("failed");
}
Make sure the calling jsp has some input tags for "organism" and "title", e.g.,
<html:form action="/actionName">
<html:text property="organism" />
<html:text property="title" />
<html:susmit />
</html:form>