Problem getting sample to work

"Adrian Klingel" <[email protected]> Sat, 3 Apr 2004 18:28:07 -0500
Newsgroups gmane.comp.java.jpublish.devel
Organization Exaweb
Message-ID <[email protected]>
This is a multi-part message in MIME format.

------=_NextPart_000_0020_01C419A9.69B7B0F0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

I'm using JPublish 3.0b1 with FreeMarker and Beanshell, and attempting to
get a sample application to run.  I first deployed the jpublish-empty.war
file, created by bean classes and Beanshell scripts.

 

I've got all the necessary files set up (basic.html, jpublish.xml,
index.html, index.xml) and I've got the files in their appropriate places.
However, when I attempt to access the index.html page, I see the FreeMarker
(or maybe it's Velocity, I don't know) references in my basic.html.  The
page title is referenced using $page.title, and that is working correctly.
However, none of the $content stuff is being interpreted - it's just the
call itself that is seen in the browser.

 

Does anyone have an idea why a $page attribute would get interpreted, and
not a $content attribute?

 

Thanks very much,

Adrian Klingel

 


------=_NextPart_000_0020_01C419A9.69B7B0F0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I&#8217;m using JPublish 3.0b1 with FreeMarker and =
Beanshell,
and attempting to get a sample application to run.&nbsp; I first =
deployed the jpublish-empty.war
file, created by bean classes and Beanshell scripts.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I&#8217;ve got all the necessary files set up =
(basic.html, jpublish.xml,
index.html, index.xml) and I&#8217;ve got the files in their appropriate
places.&nbsp; However, when I attempt to access the index.html page, I =
see the FreeMarker
(or maybe it&#8217;s Velocity, I don&#8217;t know) references in my =
basic.html.&nbsp;
The page title is referenced using $page.title, and that is working =
correctly.&nbsp;
However, none of the $content stuff is being interpreted &#8211; =
it&#8217;s
just the call itself that is seen in the browser.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Does anyone have an idea why a $page attribute would =
get
interpreted, and not a $content attribute?</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Thanks very much,</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Adrian Klingel</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0020_01C419A9.69B7B0F0--




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click