Hello folks,
I posted this thread in java sun, and still waiting "any" response(actually still waiting any response for any of my questions), but, anyway:
During my free time I'm in the process of re-writing a web app I coded in the near past.
It's an online magazine builder, basically, this tool uses a database to store the articles being edited before they are ready for production. Once the whole bunch of articles are ready for the public, a kind of routine DB 2 XML is called and generates a XML version of this current magazine issue, then another routine is called(kind of XML 2 HTML, using SAX) and generates the whole .jsp version(paged version, printer friendly version and table of contents with all related links between them) of the entire magazine issue. Then another routine is called in order to transform the XML <article> element in pdf version using jakarta fop.
Now, I decided to produce static .jsp version of the articles to release the DB Server from serve static contents since once the articles are done, it is very unprobable that they will change, anyway if the articles changes, they could be generated again to any version. But it will be uncommon from fix articles every week, so this way the response time would be a lot lesser than read the articles from DB.
While using struts I have found a limitation in order to achieve this goal, and it is related to the following policy:
1) Not all articles are public for all users These means that I'm using struts action mapping roles to tell the my custom struts processor to avoid unauthorized user from read article "x".
The point is that I can use the same approach I used in the old version: process the "policy" in jsp file, but this is not a MVC approach, this is not a struts approach. BUT what alternative or solution does Struts can give? I mean, since a lot of jsp files are created, they are in a "hidden" directory, they can only be accessed through Struts actions, but since the files are new, how can I set up the struts's configuration "structure" at runtime and without restarting the server, and serializing the configuration structure?
It would be pretty nice that a dinamocally created .jsp could be associated to an action mapping and an action class.
Any suggestion, ideas, discussion, proposal?
Regards,
OO
P.S. Sorry about my english
I posted this thread in java sun, and still waiting "any" response(actually still waiting any response for any of my questions), but, anyway:
During my free time I'm in the process of re-writing a web app I coded in the near past.
It's an online magazine builder, basically, this tool uses a database to store the articles being edited before they are ready for production. Once the whole bunch of articles are ready for the public, a kind of routine DB 2 XML is called and generates a XML version of this current magazine issue, then another routine is called(kind of XML 2 HTML, using SAX) and generates the whole .jsp version(paged version, printer friendly version and table of contents with all related links between them) of the entire magazine issue. Then another routine is called in order to transform the XML <article> element in pdf version using jakarta fop.
Now, I decided to produce static .jsp version of the articles to release the DB Server from serve static contents since once the articles are done, it is very unprobable that they will change, anyway if the articles changes, they could be generated again to any version. But it will be uncommon from fix articles every week, so this way the response time would be a lot lesser than read the articles from DB.
While using struts I have found a limitation in order to achieve this goal, and it is related to the following policy:
1) Not all articles are public for all users These means that I'm using struts action mapping roles to tell the my custom struts processor to avoid unauthorized user from read article "x".
The point is that I can use the same approach I used in the old version: process the "policy" in jsp file, but this is not a MVC approach, this is not a struts approach. BUT what alternative or solution does Struts can give? I mean, since a lot of jsp files are created, they are in a "hidden" directory, they can only be accessed through Struts actions, but since the files are new, how can I set up the struts's configuration "structure" at runtime and without restarting the server, and serializing the configuration structure?
It would be pretty nice that a dinamocally created .jsp could be associated to an action mapping and an action class.
Any suggestion, ideas, discussion, proposal?
Regards,
OO
P.S. Sorry about my english