<!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=796492009-12022010><FONT face=Arial 
color=#0000ff size=2>Hi Yogesh</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=796492009-12022010><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=796492009-12022010><FONT face=Arial 
color=#0000ff size=2>Unless you want to use hard coded file names, using 
properties such a job sounds about right.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=796492009-12022010><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=796492009-12022010><FONT face=Arial 
color=#0000ff size=2>Can you paste the complete error message? Also, please 
inform what you set the property value to, and where the tip file is 
located.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=796492009-12022010><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=796492009-12022010><FONT face=Arial 
color=#0000ff size=2>I suspect that you will need to use a JSP file 
- typically the tip_file's template (which is usually found 
as the property template-elements) - to render the content of 
your tip file. You would then include this JSP file inside your template 
code, not the tip file itself. </FONT></SPAN><SPAN 
class=796492009-12022010><FONT face=Arial color=#0000ff size=2>Note that I am 
not totally sure of this, as I rarely use the xmlpage 
myself.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=796492009-12022010><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=796492009-12022010><FONT face=Arial 
color=#0000ff size=2>Best regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=796492009-12022010><FONT face=Arial 
color=#0000ff size=2>Paul</FONT></SPAN></DIV>
<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 09:34<BR><B>To:</B> 
  opencms-dev@opencms.org<BR><B>Subject:</B> [opencms-dev] include xmlpage 
  content from template<BR></FONT><BR></DIV>
  <DIV></DIV>Dear All,<BR><BR>I have a simple template which is supposed to show 
  the page content. The template has a Tips section where I need to display 
  tips. These requirement is that the tips have to be editable at page level. 
  Tips will be HTML content(<B>xmlpage</B>). <BR><BR>The solution that I came 
  across(<B>which does not work</B>) was to define a property called as 
  <B>tip_file</B> for every page and specify a file name which needs to be shown 
  as a tip. In the template I get the property(<B>tip_file</B>) of the page and 
  make a URI to the file using the context uri and foldername and the tip 
  filename. I then include this file in the template with include method of 
  CmsJspActionElement object. When I view the file with <B>tip_file</B> property 
  set to some <B>xmlpage</B>, I get and error which says 
  <B>"/opencms/opencms/test/mytip.html"</B> is not accessible, though it is 
  available in the folder and is accessible if viewed independently.<BR><BR>Any 
  other quick and smart way of doing it?<BR><BR clear=all>-- 
  Yogesh<BR><BR>Believe with all your heart that how you live your life makes a 
  difference. --Colin Beavan  <BR></BLOCKQUOTE></BODY></HTML>