Adam Sherman wrote:
On 03/23/03 13:10:25 -0800 Hans Bergsten wrote:

No, you need to use a different syntax when the variable name contains
dots, since they are used as separators in the EL language:

${requestScope['ca.tritus.tmailer.CONFIRM_ACTION.action']}


Ah! Light! (-:

If "action" is a property of the bean stored in the request as "ca.tritus.tmailer.CONFIRM_ACTION", what would the syntax be?

${requestScope['ca.tritus.tmailer.CONFIRM_ACTION'].action}


Also, isn't package-style notation the recommended naming scheme for Attributes?

Well, in some circles ;-) It's a good convention if there's any risk that the attribute name can clash with another attibute used in the application, for instance attributes created by components that may be reused in any application. If there's no risk for name clashes, e.g. for application-specific attributes that you have full control over, the package-style notation is arguably overkill.

Hans
--
Hans Bergsten                                <[EMAIL PROTECTED]>
Gefion Software                       <http://www.gefionsoftware.com/>
Author of O'Reilly's "JavaServer Pages", covering JSP 1.2 and JSTL 1.0
Details at                                    <http://TheJSPBook.com/>


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



Reply via email to