java - Struts Action Tag working incorrectly -


i have jsp page declarationactivation.jsp opened struts action tag listed below defined in struts-config.xml

<action path="/declarationdaysinput"  type="declarationactivationaction"  name="reimbursementdeclarationdaysactionform" input="/error.jsp" validate="false"  scope="request" parameter="load">     <forward name="success" path="/companyadmin/declarationactivation.jsp"/> <forward name="failure" path="/error.jsp"/> </action> 

in jsp page have form action parameter declarationdayssubmit.do

this action parameter defined in struts-config.xml

<action path="/declarationdayssubmit" type="declarationactivationaction" name="reimbursementdeclarationdaysactionform" validate="true" input="/declarationdaysinput.do" scope="request" parameter="submit"> <forward name="success" path="/declarationdaysinput.do"/> <forward name="failure" path="/error.jsp"/> </action> 

both refer same class, have different parameter values specified in action tags, in first, value of parameter load, in second, value of parameter submit.

however, when click submit in form in jsp page, second action tag not accessed code, first 1 being accessed.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -