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 additional commands, e-mail: [EMAIL PROTECTED]



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



Re: Submit buttons getting their value

2005-10-27 Thread Dakota Jack
By the way, I find your use of a disaster in the course of human
affairs to advance your own interests at best creepy.  If you don't
know the difference between this conversation and Nazism, you are not
going to do all that well in social situations.

On 10/16/05, Martin Gainty <[EMAIL PROTECTED]> wrote:
> 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" 
> 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" 
> > 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:
> > > >
> > > > back
> > > > continue
> > > >
> > > > 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]
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > -

Re: Submit buttons getting their value

2005-10-27 Thread Dakota Jack
Try to stay on topic, Martin.  Less heat and more light, please.  If
you have something enlightening to say, I am sure we all would be
interested.  Building straw men and torching them is an old trick.  I
am not talking about the Planet.  Although, in this area I don't know
a better solution.  One thing for sure is that your suggestions are
misguided and not up on the state of the art.

The only one I have suggested in this discussion is missing the boat
to the beheading is you, so, unless you somehow identify yourself with
the entire Planet, that is a straw man.

On 10/16/05, Martin Gainty <[EMAIL PROTECTED]> wrote:
> 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" 
> 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" 
> > 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:
> > > >
> > > > back
> > > > continue
> > > >
> > > > 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.
> > > >
> > > > -
> > >

Re: Submit buttons getting their value

2005-10-16 Thread Martin Gainty
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" 
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" 
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:
> >
> > back
> > continue
> >
> > 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]



Re: Submit buttons getting their value

2005-10-16 Thread Dakota Jack
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" 
> 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:
> > >
> > > back
> > > continue
> > >
> > > 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]



Re: Submit buttons getting their value

2005-10-16 Thread Adam Hardy
The reason why I mentioned Firefox is that it generally tends to be more 
standards-compliant than IE (W3C standards, that is).


It probably works with your tag perfectly, if the HTML doesn't contain a 
'label' attribute.


I asked for the HTML produced so that I could see if it was 
W3C-compliant HTML or not. Can't you just cut and paste the HTML by 
doing a 'view-source' on one of your webpages where you have implemented it?


I am only familiar with the 'label' html tags that can be used to link 
up text and key combinations with form fields (accessibility stuff).



Adam

Martin Gainty on 16/10/05 21:40, wrote:

Good Evening from across the pond-

An attempt to answer your queries..
Yes the SubmitTag label is a protected String attribute whose value is 
written as html inside the start of Tag method doStartTag()

The source code for SubmitTag.java is located at
http://www.docjar.com/html/api/com/RuntimeCollective/webapps/tag/SubmitTag.java.html 



the base class BaseHandlerTag doc located at
http://www.docjar.com/docs/api/org/apache/struts/taglib/html/BaseHandlerTag.html 

the BaseHandlerTag contains a protected method isXhtml() which 
interrogates the Tag object to determine if the tag object is nested 
within  tag that has xhtml = true

harkening back to the Struts 1.1 doc stating..
"If you use an so since this statement is met in the case that Xhtml() renders true is 
this condition is met then I would say yes these Tag classes are 'XHTML' 
compliant


With regards to working in firefox I would need to have more specifics 
on the firefox specific functionality you are speaking of

in order to answer the question in any comprehensively intelligent fashion
Does this answer your question(s)?
Cheers,

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 cursory check on the W3C website confirmed my suspicions - I don't 
believe that the label attribute is valid HTML4 and if so is unlikely 
to be supported by browsers like Firefox.


Is it XHTML? Is it IE only?



Adam

Martin Gainty on 16/10/05 02:55, 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" 
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:
>
> back
> continue
>
> 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,




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Submit buttons getting their value

2005-10-16 Thread Martin Gainty

Good Evening from across the pond-

An attempt to answer your queries..
Yes the SubmitTag label is a protected String attribute whose value is 
written as html inside the start of Tag method doStartTag()

The source code for SubmitTag.java is located at
http://www.docjar.com/html/api/com/RuntimeCollective/webapps/tag/SubmitTag.java.html

the base class BaseHandlerTag doc located at
http://www.docjar.com/docs/api/org/apache/struts/taglib/html/BaseHandlerTag.html
the BaseHandlerTag contains a protected method isXhtml() which interrogates 
the Tag object to determine if the tag object is nested within  
tag that has xhtml = true

harkening back to the Struts 1.1 doc stating..
"If you use an so since this statement is met in the case that Xhtml() renders true is this 
condition is met then I would say yes these Tag classes are 'XHTML' 
compliant


With regards to working in firefox I would need to have more specifics on 
the firefox specific functionality you are speaking of

in order to answer the question in any comprehensively intelligent fashion
Does this answer your question(s)?
Cheers,

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 cursory check on the W3C website confirmed my suspicions - I don't 
believe that the label attribute is valid HTML4 and if so is unlikely to 
be supported by browsers like Firefox.


Is it XHTML? Is it IE only?



Adam

Martin Gainty on 16/10/05 02:55, 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" 
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:
>
> back
> continue
>
> 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]





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



Re: Submit buttons getting their value

2005-10-16 Thread Adam Hardy

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't 
believe that the label attribute is valid HTML4 and if so is unlikely to 
be supported by browsers like Firefox.


Is it XHTML? Is it IE only?



Adam

Martin Gainty on 16/10/05 02:55, 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" 
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:
>
> back
> continue
>
> 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]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Submit buttons getting their value

2005-10-15 Thread Martin Gainty

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" 
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:
>
> back
> continue
>
> 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]



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.
> 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.
>
> -Richard
>
>
> --- Dakota Jack <[EMAIL PROTECTED]> wrote:
>
> > 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:
> > > >
> > > > back
> > > >  > value="continue">continue
> > > >
> > > > 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]
> >
> >
>
>
>
>
>
> __
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>
> -
> 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]



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.

-Richard


--- Dakota Jack <[EMAIL PROTECTED]> wrote:

> 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:
> > >
> > > back
> > >  value="continue">continue
> > >
> > > 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]
> 
> 





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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().
>
> -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:
> >
> > back
> > continue
> >
> > 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]



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-based action class, like
> DispatchAction or LookupDispatchAction. I would humbly suggest to use
> SelectAction from my Struts Dialogs library. SelectAction works with
> pushbuttons, image buttons and regular links (links do not submit an
> HTML form): http://struts.sourceforge.net/strutsdialogs/selectaction.html
>
> The library also contains an action to create wizards, which is what I
> suppose you want to do:
> http://struts.sourceforge.net/strutsdialogs/wizardaction.html
>
> Michael.
>
> On 10/9/05, C.F. Scheidecker Antunes <[EMAIL PROTECTED]> 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:
> >
> > back
> > continue
> >
> > 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]
>
>


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



Re: Submit buttons getting their value

2005-10-10 Thread Dakota Jack
This way of getting the values is antiquated, slow, etc.  Again, for
some better ways to do this, look at www.michaelmcgrady.com on
buttons.  These ways are old and no longer best practices.

On 10/10/05, Martin Gainty <[EMAIL PROTECTED]> wrote:
> Antunes
> 3 ways (straight from the doc)
> 
> The parameter names for the request will appear as "property.x"  or
> "PropertyName.GetX()"
>
> /*In the case where property is null */
> 
> A way of retrieving these values through a form bean is to define
> getX(),setX() specify your property as a blank string (property="").
>
> A far more elegant solution is to use a HashMap which will reference the
> specific bean's key which will execute the associated method
> for that take a look at Erik Hatcher's solution which extends
> LookupDispatchAction property 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 Mailing List" 
> Sent: Sunday, October 09, 2005 8:37 PM
> Subject: Re: Submit buttons getting their value
>
>
> > But where is PropertyName? The only thing passed to the action is request.
> > Thanks
> >
> > Martin Gainty wrote:
> >
> >> 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,
> >>>
> >>> 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 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]
> >>
> >
> > -
> > 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]



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:
> 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 with
> pushbuttons, image buttons and regular links (links do not submit an
> HTML form): http://struts.sourceforge.net/strutsdialogs/selectaction.html
>
> The library also contains an action to create wizards, which is what I
> suppose you want to do:
> http://struts.sourceforge.net/strutsdialogs/wizardaction.html
>
> Michael.
>
> On 10/9/05, C.F. Scheidecker Antunes <[EMAIL PROTECTED]> 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:
> >
> > back
> > continue
> >
> > 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]
>
>


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



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 buttons are like this:

back
continue

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]



Re: Submit buttons getting their value

2005-10-10 Thread Martin Gainty

Antunes
3 ways (straight from the doc)

The parameter names for the request will appear as "property.x"  or 
"PropertyName.GetX()"


/*In the case where property is null */

A way of retrieving these values through a form bean is to define 
getX(),setX() specify your property as a blank string (property="").


A far more elegant solution is to use a HashMap which will reference the 
specific bean's key which will execute the associated method
for that take a look at Erik Hatcher's solution which extends 
LookupDispatchAction property 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 Mailing List" 
Sent: Sunday, October 09, 2005 8:37 PM
Subject: Re: Submit buttons getting their value



But where is PropertyName? The only thing passed to the action is request.
Thanks

Martin Gainty wrote:


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,

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



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



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 with
pushbuttons, image buttons and regular links (links do not submit an
HTML form): http://struts.sourceforge.net/strutsdialogs/selectaction.html

The library also contains an action to create wizards, which is what I
suppose you want to do:
http://struts.sourceforge.net/strutsdialogs/wizardaction.html

Michael.

On 10/9/05, C.F. Scheidecker Antunes <[EMAIL PROTECTED]> 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:
>
> back
> continue
>
> 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]



Re: Submit buttons getting their value

2005-10-09 Thread Dakota Jack
See www.michaelmcgrady.com on buttons.  This is a fascinating subject.

On 10/9/05, C.F. Scheidecker Antunes <[EMAIL PROTECTED]> wrote:
> But where is PropertyName? The only thing passed to the action is request.
> Thanks
>
> Martin Gainty wrote:
>
> > 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,
> >>
> >> 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 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]
> >
>
> -
> 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]



Re: Submit buttons getting their value

2005-10-09 Thread C.F. Scheidecker Antunes

But where is PropertyName? The only thing passed to the action is request.
Thanks

Martin Gainty wrote:


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,

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



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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,

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