Search code examples
strutsstruts-config

how to calling a custom interceptor before index.jsp(welcome) page loaded in struts 2 application


there is any way in Struts 2 that works like a ServletContextListener? The reason why I'm trying to do this is I do have some values that would be fetched from the DB and I want these values to available in my application home page when ever home page is laoded


Solution

  • i solved my problem create index file in webContent folder and set index and create a action in struts.xml with name index.