Frank W. Zammetti wrote:
If I don't want to use scripting I guess I could use something like
${requestScope['org.apache.struts.action.mapping.instance'].name}

But what if the Globals.MAPPING_KEY will change ... :-)

That's why you want to use the field in Globals... if the key under which
the mapping will be found is changed, your code doesn't need to change. If you use the value as it currently is today as you show above, you'll
need to change that it someone changes the key down the road.  That's the
whole point of that Globals class.

I think it's pretty safe to say it *wont* change, though, since not just the field but also its value are part of the public API, and Struts *is* very good about maintaining backwards compatibility, after all :-)

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to