Struts ApplicationResources
I managed to get my
ApplicationResources.properties file working today. I originally didn't have it located in the
classes
directory, so it took a while.
This file is also where the support for
i18n comes in. I will have to enable internationalization, but not right now.
A good resource for the
errors
settings, called
Don't settle for <html:error/>, is available from
Ted Husted's site.
JAAS with JBoss and Jetty
After some more searching, I found that
- Jetty does offer JAAS support, but only as an addon called JettyPlus. Since I can't make any infrastructure changes, this doesn't help me.
- In the /lib directory of my JBoss installation, there are two jars: jaas.jar and jboss-jaas.jar. I don't have any more time to spend on this, so I'll have to investigate these later. I hope they are not Tomcat specific.
Roles, JAAS and Jetty
Struts has some nice support for Roles built in. It is an Action attribute that can be set in the struts-config.xml file and is based on
JAAS.
However, after wasting a lot of time trying to get it working, I came to the conclusion that Jetty does not have any default support for
JAAS.
That means that I will have to develop my own Roles support.