Siddiq Syed wrote:
Is there any way where I can retrieve the result name from the prepare method of an action.For example, I have the below mapping in the struts.xml file. <action name="determineCaseEvaluationType" class="com.activity.EvaluateCaseAction" method="determineCaseEvaluationType"> <result name="guidelInitConsid" type="tiles">editGuidelinesCaseEvaluation</result> <result name="shrtsntcInitConsid" type="tiles">editShortSentenceCaseEvaluation</result> <result name="sscat2p1InitConsid" type="tiles">editShortSentenceCaseEvaluation</result> </action> If I passes the string "guidelInitConsid" , I need to get "editGuidelinesCaseEvaluation" as a result. I know its odd.!!
It doesn't really make any sense, either--how would you know what result you wanted until you actually ran the action? It's the action invocation that *returns* the result. Prepare() is called before that.
Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

