[opencms-dev] How to access an external URL stored in Pointer-Object via API??

Asnidren s.prousteau at eurelis.com
Tue Jan 27 11:31:14 CET 2009


I'm on OpenCms705 and I do this:
 byte[] bytes =
cms.getCmsObject().readFile((String)pageContext.getAttribute("rssreader_url")).getContents();
 String url = new String(bytes);




Peter Henningsen wrote:
> 
> Hi Georgi,
> 
> No, my Problem is: 
> How do I use the API to get the URL that someone stored in OpenCms
> (version7.0 ,Link Object)?
> 
> Generating the html-output is no problem, as soo as I have the String!
> 
> Regards,
> Peter
> 
> -----------------------------------
> Hello, Peter.
> 
> If you want redirect by jsp, write something like this:
> 
> <%
> response.sendRedirect("http://opencms.org");
> %>
> 
> Best regards
> Georgi
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 
> 

-- 
View this message in context: http://www.nabble.com/Re%3A-How-to-access-an-external-URL-stored-in-Pointer-Object-via-API---tp15780080p21682895.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list