<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16981" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=501224910-12022010><FONT face=Arial
color=#0000ff size=2>Hi again Yogesh</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=501224910-12022010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=501224910-12022010><FONT face=Arial
color=#0000ff size=2>This is equivalent to the suggestion I sent just as this
message was arriving in my inbox. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=501224910-12022010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=501224910-12022010><FONT face=Arial
color=#0000ff size=2>Great that you got it working, grats!
;-)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=501224910-12022010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=501224910-12022010><FONT face=Arial
color=#0000ff size=2>Cheers,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=501224910-12022010><FONT face=Arial
color=#0000ff size=2>Paul</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>Yogesh
Mujumdar<BR><B>Sent:</B> 12. februar 2010 11:44<BR><B>To:</B> The OpenCms
mailing list<BR><B>Subject:</B> Re: [opencms-dev] include xmlpage content from
template<BR></FONT><BR></DIV>
<DIV></DIV>Done!, its working now. This is what I did.<BR><BR>In the elements
file : <B>cms.include(tfilename, "body");</B><BR><BR>and changed the
<B>tip_file</B> property from <B>/sites/default/TAIG/personal/MyTip1.html</B>
to <B>/TAIG/personal/MyTip1.html<BR><BR></B>Thanks everybody.<BR><BR
clear=all>-- Yogesh<BR><BR>Believe with all your heart that how you live your
life makes a difference. --Colin Beavan <BR><BR><BR>
<DIV class=gmail_quote>On Fri, Feb 12, 2010 at 3:32 PM, Yogesh Mujumdar <SPAN
dir=ltr><<A
href="mailto:yogesh.mujumdar@gmail.com">yogesh.mujumdar@gmail.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi
Eska,<BR><BR>That did not work.<BR><BR>I get the error
<BR><BR> javax.servlet.jsp.JspException: Error reading
resource from path "/sites/default/TAIG/personal/MyTip1.html".<BR><BR>I
changed the element file code to : <BR>
<DIV class=im><cms:template element="insider_tip"> <BR></DIV>
<DIV class=im>
<%<BR>
CmsJspActionElement cms = new CmsJspActionElement(pageContext, request,
response);
<BR></DIV>
String tfilename = cms.property("tip_file");<BR>
cms.include(tfilename);<BR>
%><BR></cms:template>
<DIV class=im><BR><BR><BR clear=all>-- Yogesh<BR><BR>Believe with all your
heart that how you live your life makes a difference. --Colin Beavan
<BR><BR><BR></DIV>
<DIV>
<DIV></DIV>
<DIV class=h5>
<DIV class=gmail_quote>On Fri, Feb 12, 2010 at 3:21 PM, Eska <SPAN
dir=ltr><<A href="mailto:sven.kiesow@interone.de"
target=_blank>sven.kiesow@interone.de</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><BR>Hi
Yogesh,<BR><BR>It seems you set the tip_file property in a wrong way. Do
not set it to<BR>
<DIV><BR>/opencms/opencms/test/mytip.html<BR><BR></DIV>but to something
like<BR><BR>/sites/abc/test/mytip.html<BR><BR>Eska<BR>
<DIV>
<DIV></DIV>
<DIV><BR><BR>yogiam wrote:<BR>><BR>> Dear All,<BR>><BR>> I
have a simple template which is supposed to show the page content.
The<BR>> template has a Tips section where I need to display tips.
These<BR>> requirement<BR>> is that the tips have to be editable at
page level. Tips will be HTML<BR>> content(*xmlpage*).<BR>><BR>>
The solution that I came across(*which does not work*) was to define
a<BR>> property called as *tip_file* for every page and specify a file
name which<BR>> needs to be shown as a tip. In the template I get the
property(*tip_file*)<BR>> of the page and make a URI to the file using
the context uri and<BR>> foldername<BR>> and the tip filename. I
then include this file in the template with<BR>> include<BR>> method
of CmsJspActionElement object. When I view the file with<BR>>
*tip_file*property set to some<BR>> *xmlpage*, I get and error which
says<BR>> *"/opencms/opencms/test/mytip.html"*is not accessible, though
it is<BR>> available in the folder and is accessible if<BR>> viewed
independently.<BR>><BR>> Any other quick and smart way of doing
it?<BR>><BR>> -- Yogesh<BR>><BR>> Believe with all your heart
that how you live your life makes a<BR>> difference.<BR>> --Colin
Beavan<BR>><BR>><BR></DIV></DIV>
<DIV>> _______________________________________________<BR>> This
mail is sent to you from the opencms-dev mailing list<BR>> To change
your list options, or to unsubscribe from the list, please visit<BR>>
<A href="http://lists.opencms.org/mailman/listinfo/opencms-dev"
target=_blank>http://lists.opencms.org/mailman/listinfo/opencms-dev</A><BR>><BR><BR></DIV><FONT
color=#888888>--<BR>View this message in context: <A
href="http://old.nabble.com/include-xmlpage-content-from-template-tp27560296p27561060.html"
target=_blank>http://old.nabble.com/include-xmlpage-content-from-template-tp27560296p27561060.html</A><BR>Sent
from the OpenCMS - Dev mailing list archive at Nabble.com.<BR></FONT>
<DIV>
<DIV></DIV>
<DIV><BR><BR>_______________________________________________<BR>This mail
is sent to you from the opencms-dev mailing list<BR>To change your list
options, or to unsubscribe from the list, please visit<BR><A
href="http://lists.opencms.org/mailman/listinfo/opencms-dev"
target=_blank>http://lists.opencms.org/mailman/listinfo/opencms-dev</A><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>