saying your solution is better and everyone else on the planet is 'ignorant' if they dont believe in your solution
is fascism
Sieg Heil Jack

----- Original Message ----- From: "Dakota Jack" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
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.  Presumably, since people are on
the Struts site here, they would prefer to use an action that a tag?

Could you please tone your language down a bit, Martin.  I think that
sending people to a solution on a website is hardly "pushing your own
c _ _ p" as you so eloquently say.  There is nothing for sale here.
Just trying to be helpful.  I am sorry you don't understand this area
of coding, but you don't.  The solutions mentioned are still
preferrable.

Blessings!

On 10/15/05, Martin Gainty <[EMAIL PROTECTED]> wrote:
All
Whatever solution is proposed is proferred based on the predilections and
perhaps even the emotions of the author
at the time of their proposal
Accordingly I *believe* I have found an incredibly simple implementation of
SubmitTag for use in your app
which extends org.apache.struts.taglib.html.BaseHandlerTag the location is
http://www.docjar.com/docs/api/com/RuntimeCollective/webapps/tag/SubmitTag.html

Note that once you have constructed the Tag in your jsp there are 2 methods
that will be of immediate use to you
getValue which acquires the value of the property to submit (this
presupposes you have indeed set a property attribute first!..)
getLabel which acquires the actual label which is the unique text string
which is a mandatory string which must be supplied
to properly construct the tag
name is the other attribute which is required to properly contruct the
SubmitTag
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" <user@struts.apache.org>
Sent: 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, Richard Yee <[EMAIL PROTECTED]> wrote:
> 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 buttons are like this:
> >
> > <html:submit value="back">back</html:submit>
> > <html:submit value="continue">continue</html:submit>
> >
> > They are within the same form structure.
> >
> > My action has already a Session Bean scope to save the form contents.
> > But the submit is not
> > in that DynaBean.
> >
> > I will decide on what to do within the action based on what button is
> > pressed.
> >
> > Thanks,
> > C.F.
> >
> > ---------------------------------------------------------------------
> > 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]
>
>


--
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

---------------------------------------------------------------------
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]




--
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

---------------------------------------------------------------------
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]

Reply via email to