RE: Two cancel buttons in one form

2005-03-22 Thread Abdullah Jibaly
ginal Message- From: Brandon Mercer [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 10:02 AM To: Struts Users Mailing List Subject: Re: Two cancel buttons in one form Abdullah Jibaly wrote: >Hi all, > >I want to have two cancel buttons in a form, however I run into the problem

RE: Two cancel buttons in one form

2005-03-22 Thread Abdullah Jibaly
I ended up putting this in my base action class. Is there a better alternative? public String getCancelledValue(HttpServletRequest request) { return (String) request.getAttribute(org.apache.struts.Globals.CANCEL_KEY); } -Original Message- From: Abdullah Jibaly Sent: Tuesday,

Re: Two cancel buttons in one form

2005-03-22 Thread Brandon Mercer
Abdullah Jibaly wrote: >Hi all, > >I want to have two cancel buttons in a form, however I run into the problem of >not being able to distinguish which one is being pressed (one cancels the >whole operation and the other returns to the first screen). The reason is that >they both use the Globals