Re: [Hypercontent-users] Hello World Type Application-using hypercontent
Brought to you by:
alexvigdor
From: al <al...@bi...> - 2006-09-06 19:09:17
|
On Tue, 5 Sep 2006 23:47:40 -0700 (PDT), tom tom wrote > I want to get a quick hello world type demo > (prototype) using Hypercontent. Can't I get that > through using HTML and images etc. Is it mandotary > that it should always go with XML,DTDs and XSLTs. You do not have to use XML, DTDs and XSL if all you want is plain WYSIWYG HTML. > > I made a simple project definition but it failed. > > Also it complain about 'You are not authorized to do > this operation', Is there any place these been > documented (steps)to get a simple project going on > HyperContent. For more info on configuring permissions, see http://hypercontent.sourceforge.net/help/project/permissions.html There are some other good documents in that section to help you get started, but some pages are unfortunately still blank. > > My intention is to demonstrte, HyperContent 2.0 with > CAS and uPortal. > > I created new project, and login as admin user. > > What is the support for the jsp pages, can we have > jsp > pages, will it render? There is not currently a JSP renderer in HyperContent. > <resource-directory path="/html" label="htmlfiles"> > <content type="text/html"/> > <output content-type="text/html" /> > </resource-directory> You're very close! The missing key here is a wildcard in the pattern. <resource-directory path="/html/*.html" label="Html File" publish="true"> <content type="text/html"/> </resource-directory> Note that with publish="true", you do not have to specify an output if you just want the raw file output. You would need an output if you wanted to perform any processing, or change the content type retured from the server. This is handy for DTDs, for example, since browser don't recognize their content type. <resource-directory label="DTD" path="/config/dtd/*" publish="false"> <content type="application/xml-dtd" /> <output basedir="/" content-type="text/plain" /> </resource-directory> File patterns are similar to ant patterns; you could also specify your path as "/**/*.html", and this would allow users to put HTML files in any directory at any level. Cheers, Alex |