|
|
Index
| Recent Threads
| Who's Online
| User List
| Register
| Search
| Help
| |
![]() |
OpenCms Forum » List all forums » Forum: Tutorials / HowTo's for OpenCms 6 » Thread: Usage of Struts and OpenCms together... |
|
Thread Status: Normal Total posts in this thread: 22
|
[Add To My Favorites] [Watch this Thread] |
| Author |
|
|
Stranger
|
Is it possible to access the OpenCMS repository directly from a Struts Action without having to actually put the JSPs in OpenCMS, i.e. make a call directly to an OpenCMS database that may well be sitting on a different web server. e.g. a very basic JSP (excuse the bad programming practice, but trying only to get across a point) ---- index.jsp -------- <% OpenCmsRepository repository = OpenCms.initRepository(initParams); OpenCmsContent content = repository.getContent("content to get", onlineTrue); %> <html> <head><title>Testing</title></head> <body> <%= content %> </body> I realise this looks very much like JDBC kind of thing but I'm trying to establish whether or not it is in fact necessary to put my JSPs into OpenCms or whether or not I can just put the content in. Cheers, |
||
|
|
Stranger
|
HI, I am trying to integrate struts 1.2 with opencms 8. This is what I have till now 1) All jsps are in opencms 2) struts configuation file is and class files are in opencms.war/WEB-INF folder what confuses me how do I do the mapping ? How do I call an action class when the form is submitted. I have struts-config file. Thanks |
||
|
|
[Show Printable Version of Thread] |