The advice in the User Guide may be obsolete now that we support the
dotted syntax :o(
You may need to define a ImageButtonBean on the ActionForm with x and y
properties. The getCreateButton method could then call the getX() (or
getY()) method on that bean to determine whether it was pushed.
--
A quick reply & probably crazy. But struts would try to call
formBean.getCreateButton().setX();
(It would I assume not try to call formBean.getCreatebutton().getX()).
it might be worth trying in your form bean:-
public class formBean extends ActionForm {
CreateButton createButton = new
> You can use the tag and set the property
> to a value. Then in the action, you are able to find out,
> which button was presed
Ok, this sounds fine, cept Im running into the .x .y problem outlined
in the HTML:IMAGE docs. Has anyone gotten this working with the
html:image tag? None of the
, February 13, 2002 1:22 PM
To: Struts Users Mailing List
Subject: RE: HTML / Struts Help - addendum to summary.
I am trying to do something similar, except with an HTML link.
I have a hidden form field:
and then I try to set its value with an onclick function in my link:
Whenever I click the
"blah".
Any ideas what I am doing wrong?
-Original Message-
From: Mattos, John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 11:31 AM
To: 'Struts Users Mailing List'
Subject: RE: HTML / Struts Help - addendum to summary.
I like that solution.
I Think I&
Hudson St. 16th Floor
New York, New York
10014
-Original Message-
From: Keith [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 11:17 AM
To: Struts Users Mailing List
Subject: RE: HTML / Struts Help
I think the design of struts is that you should have get/setters in your
form
bea
John wrote:
> I have a form that can be submitted by three different buttons, for example
> the buttons read
>
> (Button Labels)
> Process
> View by Org
> View by Product
>
> So, how can I figure out what button was pressed in that Action class? Is
> there a way to do that?
I'm not sure if thi
ROPERTY-NAME")) {
> // what ever you want to do
> }
> }
>
>
> Marcel
>
> -Original Message-
> From: Mattos, John [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 13, 2002 4:12 PM
> To: '[EMAIL PROTECTED]'
> Subject:
rk
10014
-Original Message-
From: Jay sissom [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 10:25 AM
To: Struts Users Mailing List
Subject: Re: HTML / Struts Help
You would do it the way you'd do it an any web application.
Here's how I do it: All my button field name
OTECTED]]
Sent: Wednesday, February 13, 2002 4:12 PM
To: '[EMAIL PROTECTED]'
Subject: HTML / Struts Help
Hi.
I have a form that can be submitted by three different buttons, for example
the buttons read
(Button Labels)
Process
View by Org
View by Product
What I want to do is in the A
> Subject:RE: HTML / Struts Help
> >
> > Just define a hidden field in your form. Then when you press a button
> > define
> > an onclick event that sets the value of the hidden field.
> >
> > For example:
> >
> >
> >
> > >
you can set the property on the submit button and then use request.getParameter
to get the value of the propery in your action.
example :
In the perform method of your action you can then write :
String s = request.getParameter("toDo");
if ( s.equals("process"))
-
Von: Mattos, John [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 13. Februar 2002 16:42
An: 'Struts Users Mailing List'
Betreff: RE: HTML / Struts Help
Hey
I was thinking about that (I actually have a hidden field already called
"toDo" (still working on that name)) but the pr
mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 10:16 AM
To: 'Struts Users Mailing List'
Subject: RE: HTML / Struts Help
Just define a hidden field in your form. Then when you press a button define
an onclick event that sets the value of the hidden field.
For example:
-
'Struts Users Mailing List'
> Subject: RE: HTML / Struts Help
>
> Just define a hidden field in your form. Then when you press a button
> define
> an onclick event that sets the value of the hidden field.
>
> For example:
>
>
>
> onclick="f
Name the buttons and give them a value; the name and value associated with
the submit will be passed as a request parameter:
private doSomething( request.getParameter( "buttonName"));
Cheers!
Mark
--
Try before you cry:
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
-Origi
You would do it the way you'd do it an any web application.
Here's how I do it: All my button field names start with "btn". I would
name these buttons btnProcess, btnViewByOrg and btnViewByProcess (or
something similar).
In my perform method, I'd put code like this:
String button_pressed
ECTED]'
Subject: HTML / Struts Help
Hi.
I have a form that can be submitted by three different buttons, for example
the buttons read
(Button Labels)
Process
View by Org
View by Product
What I want to do is in the Action Class handling the submission, find out
which button was pressed, and act a
Hi.
I have a form that can be submitted by three different buttons, for example
the buttons read
(Button Labels)
Process
View by Org
View by Product
What I want to do is in the Action Class handling the submission, find out
which button was pressed, and act accordingly, whether it's an actionFo
19 matches
Mail list logo