Hi
I have a jsp page display my project information. The displayProject.jspe get displayed, by calling displayProject.do action. This action populate projectActionForm. This ProjectActionForm has get and set method for projecttitle. I have also defined in struts-config.xml .
I have edit button on this page. When I click this button, it called displayProjectForUpdate.do action. This display displayProjectEdit.jsp in edit mode and should have value for projecttitle.
For reason, it is not display projecttitle value.
eg
<html:form>
<html:text property="projecttitle" />
</html:form>
It is displaying the field, but it is empty. There is no projecttitle value in the field.
<form-beans>
<form-bean name="projectActionForm"
type="org.view.ProjectActionForm"/>
</form-beans>
<action path="/displayProject"
type="org.view.FindProjectAction"
name="projectActionForm"
scope="session"
input="/jsp/displayProjects.jsp">
<forward name="success"
path= "/jsp/displayProject.jsp" />
</action>
<action path="/displayProjectForUpdate"
type="org.view.SuccessAction"
name="projectActionForm"
scope="session"
input="">
<forward name="success"
path= "/jsp/displayProjectEdit.jsp" />
</action>
Please could you help.
Many thank
I have a jsp page display my project information. The displayProject.jspe get displayed, by calling displayProject.do action. This action populate projectActionForm. This ProjectActionForm has get and set method for projecttitle. I have also defined in struts-config.xml .
I have edit button on this page. When I click this button, it called displayProjectForUpdate.do action. This display displayProjectEdit.jsp in edit mode and should have value for projecttitle.
For reason, it is not display projecttitle value.
eg
<html:form>
<html:text property="projecttitle" />
</html:form>
It is displaying the field, but it is empty. There is no projecttitle value in the field.
<form-beans>
<form-bean name="projectActionForm"
type="org.view.ProjectActionForm"/>
</form-beans>
<action path="/displayProject"
type="org.view.FindProjectAction"
name="projectActionForm"
scope="session"
input="/jsp/displayProjects.jsp">
<forward name="success"
path= "/jsp/displayProject.jsp" />
</action>
<action path="/displayProjectForUpdate"
type="org.view.SuccessAction"
name="projectActionForm"
scope="session"
input="">
<forward name="success"
path= "/jsp/displayProjectEdit.jsp" />
</action>
Please could you help.
Many thank