struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From netizen1 <netiz...@attbi.com>
Subject advice on reset method not being called 2nd time
Date Thu, 05 Jun 2003 15:05:05 GMT
I have 2 jsp page that has their appropriate actions and forms:
1.  admin
2.  creating a new survey

both scopes are request

1.
 * @struts.action name="SurveyAdminForm"
 *                                              path="/SurveyAdmin"
 *                                              validate="true"
 *                                              scope="request"
 *                                              input="/survey/survey_admin.jsp"
 * 
 * @struts.action-forward name="New" path="/survey/new_survey_question.jsp" redirect="true"
 * @struts.action-forward name="Edit" path="/survey/edit_survey.jsp" redirect="true"
 * @struts.action-forward name="Reports" path="/survey/survey_reports.jsp" redirect="true"

2.
 
 * @struts.action name="NewSurveyQuestionForm"
 *                                              path="/NewSurveyQuestion"
 *                                              validate="true"
 *                                              scope="request"
 *                                              input="/survey/new_survey_question.jsp"
 * @struts.action-forward name="Cancel" path="/survey/survey_admin.jsp" redirect="true"
 * @struts.action-forward name="Save" path="/survey/survey_admin.jsp" redirect="true"


 When i call #1 first its reset is called. then i select the new
 button that calls #2 (create a new survey).  The first time #2 is
 called its reset() method is executed.  The problem i have is after i
 submit the data on #2 it goes back to #1. But when i select new again
(to go to #2) the reset() method is never executed.  But the reset()
method for #1 is always called.

Any ideas on this?
Thanks


-- 
Best regards,
 netizen1                          mailto:netizen1@attbi.com



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message