Hi Anjali,
The simplest way to do this would be just to integrate the images from magnolia
using URLs.
This could be done something like this:
- In the same Tomcat, install both your magnolia public instance, and your
Struts webapp.
- Install the struts webapp to "ROOT" context (or some other context-name of
your choice).
- Install your magnolia (public) instance to: /magnolia (or some other
context-name of your choice).
- Within the struts webapp you can now use URLs of the form:
/magnolia/dms-static/e8eaf2e8-1d57-49d0-863e-1b299eae690e/mydocument.png
Or
/magnolia/dms/path/to/mydocument/mydocument.png
Or
/magnolia/.imaging/stk/mysite/myvariation/path/to/mydocument/mydocument.png
And it should all work as expected.
If you need to access the JCR data itself (for example to read the metadata
properties of the images), then things are a little more complicated. In this
case you would have to integrate your struts app within the magnolia webapp. Or
another possibility might be to use the JNDI-Based JCR Repository configuration
to access the same JCR from both webapps.
Hope that helps to get you started...
Regards from Vienna,
Richard
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]]
Im Auftrag von Anjali <born innocent> (via Magnolia Forums)
Gesendet: Mittwoch, 21. November 2012 13:46
An: Magnolia User List
Betreff: [magnolia-user] Retrieving images from Magnolia CMS by a J2EE Web
applicationlication
My web project runs on Java and in the front end I use JSP tags.I use struts
framework.
I wish to use Magnolis CMS for retrieving images.
I do not want to change the whole site into Magnolia templates or STK and my
web application runs on struts framework.
I need only images to be extracted from Magnolia CMS using UUID without making
my whole site as a Magnolia template.
Whether it can be achieved by using magnolia API in my seperate web application
that runs on struts framework?
Kindly help me . Waiting for positive response.
Thanks !
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=da8a64fd-150e-4211-89d8-610283e4b8df
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------