FW: Problem getting sample to work
"Adrian Klingel" <[email protected]> Sat, 3 Apr 2004 18:41:53 -0500
| Newsgroups | gmane.comp.java.jpublish.devel |
|---|---|
| Organization | Exaweb |
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. ------=_NextPart_000_0027_01C419AB.706ADC90 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Please disregard, I've figured out that I named the repository incorrectly in jpublish.xml. I had originally called it "content_repository", after what is stated in the Tutorial, which I believe may be from a previous version. Thanks, Adrian Klingel -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Adrian Klingel Sent: Saturday, April 03, 2004 6:28 PM To: [email protected] Subject: [JPublish-developer] Problem getting sample to work 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_0027_01C419AB.706ADC90 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> <!-- /* Font Definitions */ @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* 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;} span.EmailStyle18 {font-family:Arial; color:navy;} @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 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>Please disregard, I’ve = figured out that I named the repository incorrectly in jpublish.xml. I had = originally called it “content_repository”, after what is stated in the = Tutorial, which I believe may be from a previous version.</span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'> </span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>Thanks,</span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>Adrian Klingel</span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'> </span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'> </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DTahoma><span = style=3D'font-size:10.0pt; font-family:Tahoma'>-----Original Message-----<br> <b><span style=3D'font-weight:bold'>From:</span></b> [email protected] [mailto:[email protected]] <b><span style=3D'font-weight:bold'>On Behalf Of </span></b>Adrian Klingel<br> <b><span style=3D'font-weight:bold'>Sent:</span></b> </span></font><font = size=3D2 face=3DTahoma><span = style=3D'font-size:10.0pt;font-family:Tahoma'>Saturday, April 03, 2004</span></font><font size=3D2 face=3DTahoma><span = style=3D'font-size:10.0pt; font-family:Tahoma'> </span></font><font size=3D2 face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>6:28 = PM</span></font><font size=3D2 face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'><br> <b><span style=3D'font-weight:bold'>To:</span></b> [email protected]<br> <b><span style=3D'font-weight:bold'>Subject:</span></b> = [JPublish-developer] Problem getting sample to work</span></font></p> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span = style=3D'font-size: 12.0pt'> </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>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.</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>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.</span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> </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'> </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'> </span></font></p> </div> </body> </html> ------=_NextPart_000_0027_01C419AB.706ADC90-- ------------------------------------------------------- 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