This "renders" the unformatted content (if you want to call it like this).
Why do you want to render a whole page? Maybe you should simply use am
iframe for this job.
/r
Robert Weber wrote:
> Hi Roberto,
>
> there are a few questions left. Sorry I am a Newbie to jsp.
>
> Does this code segment includes a fully rendered page or only the
> unformatted content? I want the fully rendered page. And could you
> please explain how this code segment exactly works?
>
> Thanks a lot.
>
> Robert
>
> Roberto Cosenza schrieb:
>> Ok, this is an fragment of a tag which I use to retrieve data from the
>> CONFIG repository. In the same way you can retrieve data from elsewhere
>>
>> HierarchyManager hm = SessionAccessControl.getHierarchyManager(request,
>>
>> ContentRepository.CONFIG);
>>
>> Content node= hm.getContent(path);
>>
>>
>>
>> ItemType type =
>> ItemType.CONTENTNODE;
>>
>> if(node != null) {
>>
>> Collection children = node.getChildren(type);
>>
>> if(children != null) {
>>
>>
>> request.setAttribute(targetVarName, children);
>>
>> }
>>
>> }
>>
>> /Roberto
>>
>> Robert Weber wrote:
>>
>>> Hi Roberto,
>>>
>>> I want to import a full page rendered by Magnolia or to say it in
>>> another way i want to display the content of that page and the editor
>>> should decide which page he wants to include. So how does this work with
>>> the repository of Magnolia?
>>>
>>> Thanks
>>>
>>> Robert
>>>
>>> Roberto Cosenza schrieb:
>>>
>>>> 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
>>>>> ----------------------------------------------------------------
>>>>>
>>>>
>>> ----------------------------------------------------------------
>>> 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
Infoflex Connect AB, Sweden
Tel: +46-(0)8-55576867, Fax: +46-(0)8-55576861
--
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
----------------------------------------------------------------