[EMAIL PROTECTED] wrote:
Keith Fetterman asked:

Is there is a direct way to access the static method without fetching it from request scoped variable or object?


Why not use an application-scoped object (and non-static method)?

I haven't thought of that. :)

In my 6 years of working Servlets/JSP and 2 years before that with Servlets, I don't think I have ever stuck anything in the application-scope :))

This programming method is a hold over from working directly with Java and the older scriptlets and runtime expressions.

I am running into the similar problem accessing application properties that are also accessed via static methods. But in this case, the "getProperties()" methods take the property name as argument.

I thought of writing a custom JSTL function and putting it in a taglib, which can access static methods.

Thanks for the help.

Keith


--
-----------------------------------------------------------------
Keith Fetterman                          206-780-5670
Mariner Supply, Inc.                     [EMAIL PROTECTED]
http://www.go2marine.com

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

Reply via email to