ActionForward f = mapping.findForward("NameOfForward"); SubClassOfActionForward scoaf = (SubClassOfActionForward) f;
if (!("TitleForThePage".equals(scoaf.getPageTitle)) throw new IllegalStateException("What did I do wrong?");
I haven't tested this lately but I'm pretty sure we've used it on a few applications; it's much more common that I do the equivalent with ActionMapping, which definitely works.
I'm not sure what you mean by this:
* Is it possible to declare our own property entries using the set-property tag,
it seems like this is what you are already trying to do, so maybe I don't understand you.
Joe
At 7:49 AM -0400 4/21/05, Iyanu, Rajasekaran wrote:
Hi,
This is regarding the forward declarations of the action mapping tags in Struts-config xml, For instance, in the below tag, a property is defined for "pagetitle".
<forward name="NameOfForward" className="SubClassOfActionForward" path="TileEntry"> <set-property property="pagetitle" value="TitleForThePage"/> </forward>
The question here is ,
* In which object this "pageTitle" property will be available and how this can be accessed. [ Its getting added neither to the Request nor the ActionForward object.) * Is it possible to declare our own property entries using the set-property tag,
Can anyone pls help in this regard.
Thanks and Regards Rajasekaran Iyanu
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]