Submit buttons getting their value

2005-10-09 Thread C.F. Scheidecker Antunes
Hello all, I have two submit buttons, one with a value of Continue and the other Back. How do I check their values? I've tried request.getAttribute("submit").toString() but I do not get anything. My buttons are like this: back continue They are within the same form structure. My action ha

Re: Submit buttons getting their value

2005-10-09 Thread Martin Gainty
Antunes I thought it was PropertyName.getValue() ?? M- - Original Message - From: "C.F. Scheidecker Antunes" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Sunday, October 09, 2005 6:17 PM Subject: Submit buttons getting their value Hello all,

Re: Submit buttons getting their value

2005-10-09 Thread C.F. Scheidecker Antunes
g List" Sent: Sunday, October 09, 2005 6:17 PM Subject: Submit buttons getting their value Hello all, I have two submit buttons, one with a value of Continue and the other Back. How do I check their values? I've tried request.getAttribute("submit").toString() but I do not

Re: Submit buttons getting their value

2005-10-09 Thread Dakota Jack
ntunes > > I thought it was > > PropertyName.getValue() ?? > > M- > > - Original Message - From: "C.F. Scheidecker Antunes" > > <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" > > Sent: Sunday, October 09, 2005 6:17 PM > > Su

Re: Submit buttons getting their value

2005-10-09 Thread Michael Jouravlev
Do you want to create something like this: http://www.superinterface.com/wizard/signupWizard.do It would be easier if you switched to event-based action class, like DispatchAction or LookupDispatchAction. I would humbly suggest to use SelectAction from my Struts Dialogs library. SelectAction works

Re: Submit buttons getting their value

2005-10-10 Thread Martin Gainty
HashMap maps to different bean key http://www.servlets.com/archive/servlet/ReadMsg?msgId=163930&listName=struts-dev HTH, Martin- - Original Message - From: "C.F. Scheidecker Antunes" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Sunday, October 09, 2005 8

Re: Submit buttons getting their value

2005-10-10 Thread Richard Yee
Try getParameter() instead of getAttribute(). -Richard C.F. Scheidecker Antunes wrote: Hello all, I have two submit buttons, one with a value of Continue and the other Back. How do I check their values? I've tried request.getAttribute("submit").toString() but I do not get anything. My

Re: Submit buttons getting their value

2005-10-10 Thread Dakota Jack
Jouravlev just took this from www.michealmcgrady.com and made it way too complex. The complexities are not helpful. Just look at www.michaelmcgrady.com for a better implementation of the ideas. On 10/9/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > Do you want to create something like this:

Re: Submit buttons getting their value

2005-10-10 Thread Dakota Jack
whose HashMap maps to different bean key > http://www.servlets.com/archive/servlet/ReadMsg?msgId=163930&listName=struts-dev > > HTH, > Martin- > > - Original Message - > From: "C.F. Scheidecker Antunes" <[EMAIL PROTECTED]> > To: "Struts Users

Re: Submit buttons getting their value

2005-10-10 Thread Dakota Jack
LookupDispatchAction is a disaster. This is discussed in detail on www.michaelmcgrady.com. On 10/9/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > Do you want to create something like this: > http://www.superinterface.com/wizard/signupWizard.do > > It would be easier if you switched to event-b

Re: Submit buttons getting their value

2005-10-10 Thread Dakota Jack
Actually this won't work either. The problem is that the request object has been purloined and given another wrapper name. You might want to look at the code before giving these ideas. On 10/10/05, Richard Yee <[EMAIL PROTECTED]> wrote: > Try getParameter() instead of getAttribute(). > > -Richar

Re: Submit buttons getting their value

2005-10-11 Thread Richard Yee
D.J., Perhaps you should try it yourself. It works for me. If the html:submit tag is used, and the property attribute is specified, then that property is available in the action class as request.getParameter("the_submit_button_property_name"); I don't see any code that wraps HttpServletRequest. -

Re: Submit buttons getting their value

2005-10-15 Thread Dakota Jack
I guess you are not doing what I thought. If you were trying to use the access the multipart request in the Action, you cannot, if you have used an ActionForm. That is for sure. On 10/11/05, Richard Yee <[EMAIL PROTECTED]> wrote: > D.J., > Perhaps you should try it yourself. It works for me. > I

Re: Submit buttons getting their value

2005-10-15 Thread Martin Gainty
I hope this works for you, Martin- I will now wait for Dakota Jack to explain why this is an *(!&^%ic solution .. - Original Message - From: "Dakota Jack" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, October 10, 2005 5:59 PM Subje

Re: Submit buttons getting their value

2005-10-16 Thread Adam Hardy
t: Monday, October 10, 2005 5:59 PM Subject: Re: Submit buttons getting their value Actually this won't work either. The problem is that the request object has been purloined and given another wrapper name. You might want to look at the code before giving these ideas. On 10/10/05, Rich

Re: Submit buttons getting their value

2005-10-16 Thread Martin Gainty
AIL PROTECTED]> To: "Struts Users Mailing List" Sent: Sunday, October 16, 2005 2:26 PM Subject: Re: Submit buttons getting their value Martin, what HTML does this taglib produce? Seems as if it would be so: A cursory check on the W3C website confirmed my suspicions - I don

Re: Submit buttons getting their value

2005-10-16 Thread Adam Hardy
Martin- - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Sunday, October 16, 2005 2:26 PM Subject: Re: Submit buttons getting their value Martin, what HTML does this taglib produce? Seems as if it would be so: A

Re: Submit buttons getting their value

2005-10-16 Thread Dakota Jack
; .. > > - Original Message - > From: "Dakota Jack" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Monday, October 10, 2005 5:59 PM > Subject: Re: Submit buttons getting their value > > > Actually this won't work either.

Re: Submit buttons getting their value

2005-10-16 Thread Martin Gainty
October 16, 2005 7:51 PM Subject: Re: Submit buttons getting their value Breathe in; breathe out, Martin. This tag does almost exactly what actions do when you use the solutions on www.michaelmcgrady.com. Presumably, since people are on the Struts site here, they would prefer to use an actio

Re: Submit buttons getting their value

2005-10-27 Thread Dakota Jack
TED]> > To: "Struts Users Mailing List" > Sent: Sunday, October 16, 2005 7:51 PM > Subject: Re: Submit buttons getting their value > > > Breathe in; breathe out, Martin. > > This tag does almost exactly what actions do when you use the > solutions on www.mi

Re: Submit buttons getting their value

2005-10-27 Thread Dakota Jack
"Struts Users Mailing List" > Sent: Sunday, October 16, 2005 7:51 PM > Subject: Re: Submit buttons getting their value > > > Breathe in; breathe out, Martin. > > This tag does almost exactly what actions do when you use the > solutions on www.michaelmcgrady.com. Pr

Re: Submit buttons getting their value

2005-10-28 Thread Dave Newton
Dakota Jack wrote: [...] you are not going to do all that well in social situations. *rotflmao* Kettle, this is the Pot; you're black. Oh, man, that was funny. d - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

[OT] Re: Submit buttons getting their value

2005-10-28 Thread Dave Newton
Dakota Jack wrote: Try to stay on topic, Martin. Less heat and more light, please. [...] Kettle, this is the Pot; you're black. d - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT