I'm assuming by your using the property="action", that you have a field on
your form for action (getAction() and setAction())....

MyActionForm frm = (MyActionForm) form;
String action = frm.getAction()
if (action != null) {
  // insert code here
}

You might also look into the DispatchAction, its very easily implemented and
it can be a real timesaver.
See Chuck's book (Chapter 5 around page 23)
You can get review online at:
http://www.theserverside.com/resources/strutsreview.jsp




James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://struts-atlanta.open-tools.org

> -----Original Message-----
> From: Carlos Fernandez [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 18, 2002 1:24 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: i18n
>
>
> WEll, that code is placed in the JSP. It's a button. I want to
> know when the
> button is pressed. Is that clear enough?
>
>
> -----Original Message-----
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 18, 2002 12:12 PM
> To: Struts Users Mailing List
> Subject: RE: i18n
>
>
> You'll have to restate your question with a little more clarity please.
> I, personally, have no clue what it is you need.
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://struts-atlanta.open-tools.org
>
>   -----Original Message-----
>   From: Carlos Fernandez [mailto:[EMAIL PROTECTED]]
>   Sent: Tuesday, June 18, 2002 11:52 AM
>   To: Struts (E-mail)
>   Subject: i18n
>
>
>   Does anyone know how to get the data stored in "value" from de action
> class?
>
>   <i18n:image
>    pageproperty="buttonEditImage"
>    altProperty="buttonEditText"
>    property="action"
>    value="Edit_Coverage"
>    border="0"/>
>
>
>   Thanks
>
>
>   -Carlos.
>


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

Reply via email to