Hi Robert.
Just to be clear: are you trying to import a "jsp" page/fragment or are
you trying to import a full page rendered by Magnolia?
In the first case, the <jsp:include /> should work. Caching has though
to be disabled in the case the file you want to include is dynamic.
In the second case, you should probably rethink for a moment. I guess
you don't want to import a page but you want to import the "content" of
a page. That's where magnolia comes to help with its repository.
/Roberto
Robert Weber wrote:
> Hi Roberto,
>
> I want to do the following:
>
> I want to use somethinh like an container. The Editor shall link a page
> in magnolia CMS and the page should not be linked via an <a>-tag. The
> page should be imported via JSP.
>
> I tried with <jsp:include /> but it didnt work. Therefore I found
> another solution like this:
>
> URL url = new
> URL("http://localhost:8081/magnoliaAuthor/samples/index.html");
> BufferedReader in = new BufferedReader(new
> InputStreamReader(url.openStream()));
> String str;
> while ((str = in.readLine()) != null)
> {
> out.println(str);
> }
> in.close();
>
> The Problem with this solution resulted to my question earlier. So is
> there any other way to import a page in magnolia CMS?
>
> Thanks a lot.
>
> Robert
>
>
> Roberto Cosenza schrieb:
>> Robert, Magnolia currently uses the "Basic Auth" authentication method
>> which does not allow you to send the login and password through a url.
>>
>> What do you want to do? Many http clients (as wget and curl) support
>> basic auth so you don't need a url encoded with the login and password.
>> /roberto
>>
>> Robert Weber wrote:
>>
>>> Hi,
>>>
>>> I have a simple question:
>>>
>>> I would like avoid the dialog where you type in username and password
>>> and use a url with both values in it. Can anybody tell me how does a url
>>> like this look like?
>>>
>>> I tried certain things but they didnt work i.e.:
>>>
>>> http://localhost:8081/magnoliaAuthor/?username=superuser?password=superuser
>>>
>>>
>>> thanks a lot
>>>
>>> ----------------------------------------------------------------
>>> for list details see
>>> http://www.magnolia.info/en/magnolia/developer.html
>>> ----------------------------------------------------------------
>>>
>>
>>
>> Roberto Cosenza
>> Infoflex Connect AB, Sweden
>> Tel: +46-(0)8-55576867, Fax: +46-(0)8-55576861
>>
>
>
> ----------------------------------------------------------------
> for list details see
> http://www.magnolia.info/en/magnolia/developer.html
> ----------------------------------------------------------------
--
Roberto Cosenza
ICQ 12231605, MSN & Jabber robcos AT robcos.com
Tel: +46-(0)70-4660928
Work Tel: +46-(0)8-55576860, Fax: +46-(0)8-55576861
--
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------