Tom Holmes Jr. wrote:
I apologize for this simple, stupid question.
I created a form on a JSP page. I put in the form the; <html:submit value="Save">
So, how do I get the name/value of this from my FormBean?
Would this work? <html:submit property="xxx" value="Save"> <html:reset property="xxx" value="Cancel">
And then in the form-bean, do this: public String getXXX() { return this.xxx; }
Right, now I actually have: <html:hidden property="action" value="Save"> <html:submit value="Save"> <html:reset value="Cancel">
And in the form-bean: public String getAction() { return this.action; }
Thanks for any help!
Tom
I don't see why it wouldn't help...all you can do to be sure is try though :)
Make sure that your form-bean definition xml has a form-property called xxx of course.
Matt
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]