My index page has two links "checking" and "saving" and I want to use the same <action-mapping> in the struts-config.xml file since both do the same thing except for one thing, which is
in my
jsp page I have a hidden field:
<input type="hidden" name="check_save" value="1">
when clicking on "checking" I want the value of "check_save" to be "1" and
when clicking on "saving" I want the value of "check_save" to be "2", since the query I do in my bean differes according to the value.
the question is since both links use the same action how do I track where the request is coming from "checking" or "saving" to change the value of "check_save" accordingly?