struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graham" <dgraham1...@hotmail.com>
Subject Re: dynamic value for ActionForwards ?
Date Tue, 25 Mar 2003 17:09:50 GMT
You can put the key name into the request and using struts-el do:
<bean:message key="${mykey}"/>

David


>From: Matthias Wessendorf <mailings@matthias-wessendorf.de>
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: Struts Users Mailing List <struts-user@jakarta.apache.org>
>Subject: dynamic value for ActionForwards ?
>Date: 25 Mar 2003 18:10:58 +0100
>
>Hello,
>
>if have got some action-classes, all doing handel a request
>and in case off success, they forward an actionForward.
>like this:
>
>perform() {
>
>boolean tmp = doSomeThing();
>
>if(tmp) {
>	actionForward = mapping.findForward("done");
>}
>else {
>	actionForward = mapping.findForward("bad");
>
>}
>
>the jsp for "done" and "bad" are they same...
>but in one point they are different.
>
>one has this Tag
><struts-bean:message key="done"/>
>
>and the other one has got a tag like this
><struts-bean:message key="bad"/>
>
>
>Now there is my question, is the an "elegant" way to manage this problem
>because the count of my jsp-files grows and grows and grows... ;-)
>
>Thank you very much...
>
>Greetings
>
>Matthias
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


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


Mime
View raw message