From: Adam R. <ad...@ex...> - 2010-04-09 15:16:11
|
>Tried to deploy these in eXist but jsps do not seem to be supported Indeed, we dont natively support JSP. > I just found that the XQueryURLRewrite outputs html the > hardcoded way. That also not quite what i like. Wouldn't it be better > to have a general xquery handle that? Or did i miss something? I am not entirely familiar with XQueryURLRewrite but would like to help, can you elaborate on what you mean by "outputs html the harcoded way". > Thanks, > > Joern > > On Fri, Apr 9, 2010 at 12:19 AM, Joern Turner > <joe...@go...> wrote: >> Hi guys, >> >> we have completed a first running integration of the betterform XForms >> engine into eXist 1.4.0. >> >> Please note that this is really a first proof-of-concept and surely >> needs some fine-tuning and further input from the eXist experts. We >> appreciate any input that improves the integration. >> >> Installation: >> We assume that you have a running standard installation of eXist 1.4.0. >> >> Attached is a small zip file (<10k) that needs to be copied and >> expanded to EXIST_HOME/extensions. >> >> Important: this file is attached as betterform.zap file. Most >> listservers reject .zip files. To use it please rename to >> betterform.zip and expand it. This will create the directory >> 'betterform' in extensions and create a few files. This are the files >> to bootstrap the actual installation (see below). >> >> In the newly created directory 'betterform' there will be a build.xml >> with 2 targets >> "install" to integrate the betterform engine into eXist. It will >> download a zip file from our server that contains a tailored version >> of betterform. >> This will be unpacked to >> EXIST_HOME/extensions/betterform/target/betterform. Forms, resources >> and config files from this source are copied to their appropriate >> locations in >> - EXIST_HOME/webapp/forms (static XForms) >> - EXIST_HOME/webapp/resources (betterform scripts, styles, transforms etc.) >> - EXIST_HOME/webapp/xquery (xpGuess.xql - the only xquery demo for now) >> - EXIST_HOME/webapp/WEB-INF (betterform config files) >> >> After that a XSLT adds the necessary configuration to the existing >> web.xml (a server restart is necessary). The original web.xml will be >> saved for later deinstallation. >> >> One ugly thing here is that eXist AND betterform have a directory >> named 'resources' and these get merged in the during the copying. We >> have to sort that out in a next step though deinstallation still >> should work correctly. >> >> Finally we create a start.config in EXIST_HOME/ and add the betterform >> extension to the classpath. >> >> To remove betterform from the current installation simply call "ant >> uninstall" and you're done. This will delete all formerly created >> files from below EXIST_HOME/webapp and restore the old web.xml >> >> >> To try it >> ----------- >> after installation (re)start your server and try these URLs: >> - http://localhost:8080/exist/forms/demo/registration.xhtml shows one >> of our demo forms as an example for a static document >> - http://localhost:8080/exist/xquery/xfGuess.xql is a variant of the >> standard eXist guess.xql sample translated in XForms to show the >> creation of a XForms document in XQuery. >> >> There one important point to note: notice the line >> request:set-attribute("betterform.filter.parseResponseBody", "true"), >> >> This will signal the XFormsFilter to act upon the response from the >> XQuery and create a XForms session. This flag MUST be set explicitly >> otherwise the response will not be treated as XForms and simply be >> passed through. >> >> Suggestions and comments highly appreciated. >> >> Have fun, >> >> Joern >> > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |