how to pass parameter from jsp page to struts action class
dhaval tamboli
Greenhorn
Joined: Aug 02, 2010
Posts: 25
posted
0
Hi,
I am using struts2.
Actually I am stuck at one point. I do have one form and there are 3 submit calls in same form. In last submit call, I am inserting record in database but to know which one is final submit, I need to pass some flag saying that this is final submit.
so, I though to set parameter in jsp page (when last submit pressed) and trying to get parameter in action class but it says null. so, I am confused to do what next.
Here, is my code and also if there is any other method doing so then please let me know.
What are all those scriptlets for? And why bother using Struts 2 if you're going to manually code, in a scriptlet, what the framework gives you for free?