Hi All,
I have some kind of complex situation. I am working on a web site where people arranges events. There are a set of public pages which are specific to a particular event. The owner of that event can ask us to customize the
jsp pages for them. So each event has its own set of jsp pages in the eventNamed folder. My application is
struts 2.0 based. Normal way of this to achieve would be to add the new folder and jsps to the project and then make appropraite actions and action mappings in struts.xml. That way, its easy. But in that case we will have to restart our web server in order to reflect the new jsps and actions upon a new event creation. We do not want a restart of the server. So is there anyway that action class takes the jsps from appropriate eventNamed folder based on some input.
The web structure is like below.
Web Application.
First Event
intro.jsp
Second Event
intro.jsp
So if I calculate, that the event id FirstEvent, then the jsps should be from FirstEvent folder and vice versa.
Remember that event creation is not manual but it is automated through the application by copying all the jsps to the new Event named folder.
I hope I have explained it well.
Thanks in advance.