I suppose this is how I do it?
<html:submit property="action" value="Create Experiment">
<bean:message key="button.createexperiment"/>
<html:hidden property="selection"
value="createexperiment" />
</html:submit>
And in my ActionForm :
if(getSelection().equals("createexperiment")) {
//validate
}
But getSelection returns me a null and I don't know why..
Sebastian
On Tue, 2004-08-17 at 20:44, Pavel Kolesnikov wrote:
> On Tue, 17 Aug 2004, Sebastian Ho wrote:
>
> > I fixed the Back problem using javascript (using javascript
> > history.back()). Although it is resolved, I am still very much
> > interested in the struts solution without using javascript.
>
> what about checking for the "back" property in your
> validate method (as i wrote few mails ago)?
>
> according to your description of CreateExperiment.jsp just
> change the proposed code to:
>
> 8<---- snip -----
> public ActionErrors validate ( ... ) {
> if (! "back".equals (getAction ()) ) {
> super.validate ( ... );
> // another validations if needed
> }
> }
> 8<---- snip -----
>
> i still suppose you have defined property "action"
> in your form bean.
>
> pavel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]