• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Content management in Struts

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

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.
Thanks
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Rashid Limbada
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic