Struts2 - How to save an object through ApplicationAware.
Paul Michael Serrano
Ranch Hand
Joined: Nov 22, 2004
Posts: 59
posted
0
Hi Guys,
I would like to ask if there is a possibility that I could save my objects using the ApplicationAware upon startup of my server by not using it as an action class?
My follow question is, could I implement ApplicationAware together with ServletContextListener so that I could have it saved upon startup of server?
I've tried creating a class like this one, but application.put("languageList", languageList); gives me NullPointerException everytime I start the tomcat.
web.xml snippet
I just need the object languageList to put it in <s:select> tag.