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
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,
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
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
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
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
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
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:
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
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
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
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.
-
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
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
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
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
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
; ..
>
> - 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.
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
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
"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
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
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
23 matches
Mail list logo