Re: HTML:Image (was: HTML / Struts Help)

2002-02-15 Thread Ted Husted
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. --

Re: HTML:Image (was: HTML / Struts Help)

2002-02-15 Thread Keith
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

HTML:Image (was: HTML / Struts Help)

2002-02-14 Thread Mark Takacs
> 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

RE: HTML / Struts Help - addendum to summary.

2002-02-13 Thread Mattos, John
, 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

RE: HTML / Struts Help - addendum to summary.

2002-02-13 Thread Matt Koidin
"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&

RE: HTML / Struts Help - addendum to summary.

2002-02-13 Thread Mattos, John
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

Re: HTML / Struts Help

2002-02-13 Thread Joel Barnum
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

RE: HTML / Struts Help

2002-02-13 Thread Keith
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:

RE: HTML / Struts Help - Summary

2002-02-13 Thread Mattos, John
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

RE: HTML / Struts Help

2002-02-13 Thread Andres Marcel (KASO 211)
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

RE: HTML / Struts Help

2002-02-13 Thread Jay sissom
> 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: > > > > > > > > >

RE: HTML / Struts Help

2002-02-13 Thread geert
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"))

AW: HTML / Struts Help

2002-02-13 Thread Oliver Reflé
- 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

RE: HTML / Struts Help

2002-02-13 Thread Mattos, John
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: -

RE: HTML / Struts Help

2002-02-13 Thread Thompson, Darryl
'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

RE: HTML / Struts Help

2002-02-13 Thread Galbreath, Mark
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

Re: HTML / Struts Help

2002-02-13 Thread Jay sissom
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

RE: HTML / Struts Help

2002-02-13 Thread Wijewickrema , Dina E.
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

HTML / Struts Help

2002-02-13 Thread Mattos, John
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