struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Wessendorf <>
Subject dynamic value for ActionForwards ?
Date Tue, 25 Mar 2003 17:10:58 GMT

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...



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message