wood burning stoves
The moose likes Struts and the fly likes Content management in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Content management in Struts" Watch "Content management in Struts" New topic

Content management in Struts

Rashid Limbada

Joined: Aug 17, 2007
Posts: 7

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.

Please help.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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.

Consultant, Sima Solutions
Chris Boldon
Ranch Hand

Joined: Aug 10, 2006
Posts: 190
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.

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 ]
Rashid Limbada

Joined: Aug 17, 2007
Posts: 7
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.
I agree. Here's the link: http://aspose.com/file-tools
subject: Content management in Struts
jQuery in Action, 3rd edition