struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Mitchell" <jmitch...@apache.org>
Subject RE: How does LookupDispatchAction lookup.
Date Fri, 20 Dec 2002 15:39:43 GMT
I think you are missing the point of what LookupDispatchAction is about.
It solves a specific problem with i18n'd button labels.

It sounds like you might be more interested in DispatchAction.


--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg." 
- Bjarne Stroustrup


> -----Original Message-----
> From: ROSSEL Olivier [mailto:olivier.rossel@airbus.com] 
> Sent: Friday, December 20, 2002 9:28 AM
> To: 'struts-user@jakarta.apache.org'
> Subject: How does LookupDispatchAction lookup.
> 
> 
> I want to use LookupDispatchAction.
> Reading one of Ted's tips, it seems that the value returned 
> by my submit buttons MUST be stored in a .properties file, 
> and looked up inside my JSP:
> 
> <html:submit property="submit">
>  <bean:message key="button.add"/>
> </html:submit>
> 
> There's no way to have a hard-coded value? or a value
> coming from somewhere else?
> Then how do I code the getKeyMethodMap?
> 
> I would have liked to return such a map:
>  "Add Item" => "add"
> "Delete Item" => "delete"
> 
> Is it possible?
> 
> 
> 
> ---cut here---
> 
> 
> This e-mail is intended only for the above addressee. It may 
> contain privileged information. If you are not the addressee 
> you must not copy, distribute, disclose or use any of the 
> information in it. If you have received it in error please 
> delete it and immediately notify the sender. Security Notice: 
> all e-mail, sent to or from this address, may be accessed by 
> someone other than the recipient, for system management and 
> security reasons. This access is controlled under Regulation 
> of Investigatory Powers Act 2000, Lawful Business Practises.
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <mailto:struts-user-help@jakarta.apache.org>
> 
> 


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message