RE: Re: Html:Cancel and html:submit works only on new page

2007-03-14 Thread Amit_Wadhwa
d setter for String "jvType". All in all, the page shows a blank page when submitted, no errors etc Thanks in advance. Regards, Amit -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Thursday, March 15, 2007 12:08 PM To: user@struts.apache.org

Re: Html:Cancel and html:submit works only on new page

2007-03-14 Thread Laurie Harper
[EMAIL PROTECTED] wrote: Hi, I have a navigation page which takes me to pageA.jsp throw an PageA.jsp has a textbox, a submit button and a cancel button. If I navigate through the index.jsp navigation menu to goto PageA.jsp, the cancel and submit requests don't work - they both return a blank pa

Re: html:cancel

2005-05-04 Thread Michael Jouravlev
I wanted to reply with same, but wanted to verify it first. Turns out, that many (all?) Struts tags allow text content. I did not know that. Actually, some tags mention this, most do not. Should one assume, that "value" attribute can always be substituted with text content (I can look in the code,

Re: html:cancel

2005-05-04 Thread Niall Pemberton
I believe you can specify the value in the body of the tag... Niall - Original Message - From: "Durham David R Jr Ctr 805 CSPTS/SCE" <[EMAIL PROTECTED]> Sent: Wednesday, May 04, 2005 10:54 PM Hmm, I'll have to look at this. My reason for not using is that I need to spe

RE: html:cancel

2005-05-04 Thread deepak
You can specify the "value" attribute with >> Try using >> >> > > Hmm, I'll have to look at this. My reason for not using > is that I need to specify the "value" as a message resources property. > >> " onclick="bCancel=true;" type="submit"> > > Thanks. > > - Dave > > --

RE: html:cancel

2005-05-04 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> tag submits "org.apache.struts.taglib.html.CANCEL" > as request parameter. Then RequestProcessor checks for > "org.apache.struts.taglib.html.CANCEL" request key and sets > "org.apache.struts.action.CANCEL" (that is, Globals.CANCEL_KEY) > attribute, which is checked by Action.isCancelled() Ah,

RE: html:cancel

2005-05-04 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> Try using > > Hmm, I'll have to look at this. My reason for not using is that I need to specify the "value" as a message resources property. > " onclick="bCancel=true;" type="submit"> Thanks. - Dave - To unsubscribe, e-m

Re: html:cancel

2005-05-04 Thread deepak
Try using or " onclick="bCancel=true;" type="submit"> > I've got a jsp chunk like this: > > value=""> > > > And this code in an action: > > if (isCancelled(request)) { > // do something > } > > When I click cancel, isCancelled(request) returns false. Checking the

Re: html:cancel

2005-05-04 Thread Michael Jouravlev
Why don't you just use instead of setting name manually into generic input element? tag submits "org.apache.struts.taglib.html.CANCEL" as request parameter. Then RequestProcessor checks for "org.apache.struts.taglib.html.CANCEL" request key and sets "org.apache.struts.action.CANCEL" (that is, Gl

Re: html:cancel question

2005-04-11 Thread Rick Reumann
Eddie Bush wrote the following on 4/12/2005 12:42 AM: I personally handle this by having a javascript variable called "isCancelled" which I initialize to false. The onclick handler for my cancel button sets it to true. In my validation JavaScript, I check for this value first thing off the bat. W

Re: html:cancel question

2005-04-11 Thread Eddie Bush
While that might be a good suggestion, it doesn't breech the topic of how to get the form to submit even when the user selects cancel. I personally handle this by having a javascript variable called "isCancelled" which I initialize to false. The onclick handler for my cancel button sets it to tru

RE: html:cancel question

2005-04-11 Thread Stunger, Kevin J
For long running actions, I always prefer to use transaction tokens (built into Struts) and a processing/wait page. This keeps users busy watching instead of wondering why the page hasn't changed. --Kevin -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Monday, Ap

RE: html:cancel question

2005-04-11 Thread Günther Wieser
seems that the browser stops the form from being able to do ANYTHING with it... one solution, but it seems dirty to me, is to add another form with only a cancel button... kr, guenther -- Günther Wieser creative-it Guglgasse 6/1/11/1 A-1110 Wien Austria http://www.creative-it.com -Origin

Re: Html:cancel question

2005-04-11 Thread Rick Reumann
Rather than try to handle all of this on the client side with javascript, it might be better and easier to just use the Token approach to handle duplicate submits. I believe there was an email just today about this. You can disable the button but the user can still just hit enter again and you'

Re: html:cancel usage

2004-09-15 Thread Rick Reumann
andy wix wrote the following on 9/14/2004 6:27 AM: I have tried all the other suggestions in every combination but can't get anything more elegant to work. This works but I'm not looking forward to the code review! Just one more reason that I really like calling the validation manually from my

Re: html:cancel usage

2004-09-14 Thread andy wix
Hi, Just for the record, I have contrived a particularly nasty work-around for this problem and share it in case anyone ever ends up as desperate as me! To recap, I have 3 buttons on a form including a cancel button for which there should be no validation. Because I have implemented a LookupDis

Re: html:cancel usage

2004-09-09 Thread Chuck Chopp
andy wix wrote: Hi, Sorry to harp on about this but I am sure html:cancel must work, as it is fundamental to the way sites flow! It says the following about the html:cancel 'property' attribute in the Html Tag Developer Guide: "WARNING - If you set this attribute to a value other than the defau

Re: html:cancel usage

2004-09-09 Thread andy wix
Hi, Sorry to harp on about this but I am sure html:cancel must work, as it is fundamental to the way sites flow! It says the following about the html:cancel 'property' attribute in the Html Tag Developer Guide: "WARNING - If you set this attribute to a value other than the default, this will N

Re: html:cancel usage

2004-09-08 Thread Yves Sy
What I usually do is check for isCancelled() in my Action (or BaseAction) before anything else so I can forward to the appropriate place if cancel was clicked. As for the validation, I had to put my validation in a private method in the Action instead of using the one in the ActionForm. On Wed, 0

RE: html:cancel usage

2004-09-08 Thread andy wix
Hi, Has anyone else had a problem with this? I am using Struts 1.1 but presume it has worked in this and previous versions as it must come up in almost every project. I cannot switch validation to false as my submit button does require validation. I suppose I could put the cancel and submit butto

Re: html:cancel usage

2004-09-07 Thread Nick Heudecker
I believe the validation still happens because the validation step occurs before the appropriate method in the action class in determined. I got around this by turning off automatic validation. On Tue, 07 Sep 2004 16:59:48 +, andy wix <[EMAIL PROTECTED]> wrote: > Hi, > > When using the foll

RE: html:cancel usage

2004-09-07 Thread Venkat Maddipati
Which version of Struts are you using? Are you using Struts 1.1 or 1.2.x? The cancel functionality is supported in Struts 1.2.x. I use this functionality and works fine for me. I was using the MappingDispatchAction. Thanks, Venkat -Original Message- From: andy wix [mailto:[EMAIL PROTECTE