[opencms-dev] Integrating OpenCMS with Struts -- How to
Cory Hubert
clhubert at gmail.com
Fri Dec 10 00:45:44 CET 2004
I concur with Paul. Don't bother with the sourceforge opencms-struts project.
To use struts in unison with opencms is very simple.
Everything is the same EXCEPT!
* Your jsps are in opencms
* In your struts-config.xml, when your doing a forward include the
opencms servlet and the full path to the file within the VFS. So all
your forwards to jsp's would begin with
/opencms/directories-in-vfs/the-file-in-vfs.jsp. Remember that
opencms is "JUST" a servlet. So your really doing a forward to the
opencmsservlet with parameters (sorta). The paramaters being the path
to the file in the vfs.
Setup your web.xml with both the opencms servlet and the struts
servlet. Put in all the tag libraries that you need from both. And
that's it, you'll have all the advantages of managing your pages in
opencms and all the mvc capabilites of struts.
The struts-opencms sourceforge project was attempting to put actions,
actionforms, and all the configs files and jars in the VFS. IMHO I
don't think that's a good idea.
The approach I mentioned, just puts the JSPs in the VFS so it requires
NO code changes to OpenCMS or Struts.
Hope that helps.
On Thu, 09 Dec 2004 08:23:57 -0300, Ritchie Warsito <ritchiew at spymac.com> wrote:
> Thank you Paul. I have found the topics.
> But still it wasn't really clear for me on how to accomplish this so I hope
> Corey will read this and shed some light on it.
>
> Gr,
> Ritchie
>
> Paul D. Bain wrote:
>
>
> At 02:42 PM 12/8/2004, Ritchie Warsito wrote:
>
>
> I have a struts application and there's gonna be a need voor CMS (users
> editting pages and stuff).
> I found the OpencmsStruts project on sourceforge, but that hasn't been
> updated in quite a while.
> I think that that project has been abandoned.
>
>
> So does anyone have experience with that project or their own tryings with
> integrating openCMS with Struts and can help me out here?
> Ritchie,
>
> Cory Hubert claims that his team was able to integrate Struts with
> OpenCMS. See his email dated 14 May 2004, "WYSIWYG editors," which explains
> how to do so.
>
> -- Paul Bain
> ________________________________
> _______________________________________________ This mail is send to you
> from the opencms-dev mailing list To change your list options, or to
> unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>
More information about the opencms-dev
mailing list