Woodchuck wrote:
ugh. i don't want to use scriptlets but it seems so much easier to. do you think it's bad to mix scriptlets with Struts and JSTL?
For the most part, I think so yes. I'd use the Unstandard Tag you posted http://marc.theaimsgroup.com/?l=struts-user&m=109352654917026&w=2 (which, yes, I'm sure if we looked at the tag it's just doing some introspection to pull out the public static property).
I still find it simple to add the one method I mentioned to your Constants class... or you can even pull out the toMap method and add it to a util class passing in an Object as an argument. I usually only have one constants class for the Struts portion of my application so it's not a big deal for me to just add that one toMap method.
I also always have one Servlet that initializes on application start up so having it place that constants Map into application socpe is simple also.
I like this approach a bit better than the unstandard bind, because I don't have to call the un:bind (which I'm guessing acts like a set) in order to use the constant on the page. All my Constants are loaded into a Map put into application scope which is always available.
-- Rick
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]