I am fairly new to Struts and I would like to know if it is possible to integrate a struts application with Joomla. By this I mean that I would like to use Joomla for my front page (for content management) and struts everywhere else. Is it possible to have a menu on the joomla page which links to the struts app and likewise, this menu should have a "home" button which in turn links to the Joomla page.
If this is not possible, how do I manage content in a struts application. My app will be packaged as an EAR and loaded to a JBoss server. I will have links on my front page which will display data in HTML. How would I be able to upload html files so that they can be linked to from the front page without including them in the source and repackaging the EAR. I will constantly need to upload HTML files to the server. Is there a command in Struts which allows JBoss to upload the files into the WEB-INF directory.
There's no reason a pure HTML application and a Struts application can't work together. You can have links in one that point to the other. Just make sure that the links contain the full path including the "http://" because the context will not be shared between the two applications.
Most of my web application utilize some sort of dynamic content editing. There is nothing worse than having to rebuild and redeploy just for a content change.
I store my text in a database and have a dynamic content action which accepts of parameter of page id, article id, etc. I then return the content to be displayed on the page. This method works well with tiles.
I have also had great success creating my own tag library to do the dirty work. Makes it clean and manageable.
It sounds like the only reason you want to use a CMS is to manage content on a single page. This seems like overkill to me, like buying a car for air conditioning.
EDIT: You could also create an upload servlet to upload html files and link to them by creating an entry in the database. [ September 24, 2007: Message edited by: Chris Boldon ]
Joined: Aug 17, 2007
Thanks Merril and Chris.
Chris, you are right in that I only want to manage content on a single page and I think that your suggestions will really help. Thanks once again.