Hi Daniel,

The problem you are experiencing is that magnolia's security is rejecting the 
forwarded request. That's why you get 401 responses for the URL you're asking 
for.

There are a number of ways you can handle this scenario:

1) Keep working the way you are, but use the public instance rather than the 
author instance.
On magnolia's public instance, normally the user anonymous can see all the 
content. On the author instance normally the user anonymous can't see anything, 
and you have to log in to access the pages.
By using the public instance you also ensure that the content you receive will 
be free of any editing controls, on the author instance the content will come 
with a bunch of extra tags and javascripts for the editor.

2) Use magnolia's blossom module
The blossom module is specially designed to enable integrations between 
magnolia and J2EE Spring applications.

3) Integrate your JSPs more tightly into magnolia.
At the moment you're serving your JSPs outside of magnolia, and 
including/forwarding into magnolia for some data. Why not have magnolia serve 
your JSPs (it can!). Then you'll be operating "within" magnolia, and should be 
able to use the standard magnolia functions to include content.

Regards from Vienna,

Richard



-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Daniel Paval (via Magnolia Forums)
Gesendet: Mittwoch, 23. Oktober 2013 20:11
An: Magnolia User List
Betreff: [magnolia-user] Embed Magnolia content into existing web app

Hi,

I also posted this at 
[url]http://stackoverflow.com/questions/19545021/embed-magnolia-content-into-existing-web-app[/url].

We're trying to embed Magnolia-managed content into some of the JSPs of an 
existing web app. In Tomcat we deployed and set up a "magnoliaAuthor" context 
that runs along our existing "app" context.

So, for example, we'd like an existing JSP such as [code]/app/test.jsp[/code] 
to include a Magnolia page such as [code]/magnoliaAuthor/footer[/code] (just a 
div). In the browser the path [code]/magnoliaAuthor/footer[/code] renders fine, 
but we're facing issues when trying to include that into 
[code]/app/test.jsp[/code] using:

c:import
jsp:include
and the like, with both relative and absolute paths to 
[code]/magnoliaAuthor/footer[/code]..

At most we're getting the following:

Server returned HTTP response code: 401 for URL: 
[code]http://localhost:8080/magnoliaAuthor/footer[/code] (when an absolute URL 
is used). This seems like the request was rejected by Magnolia..

We couldn't find an exact description of how this use case should be put 
together. Any hint will be appreciated.

Thank you.

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=fae66e67-9753-4130-98ed-aeb5dfdfd746


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

Reply via email to