[Laszlo-dev] About Preprocessed Requests
ichan-san at im.ac.cn
Tue Sep 20 18:24:38 PDT 2005
Currelnty we aim to be implemented OpenLaszlo i18n for GUI
using Velocity, which is a Java template engine of Apache project,
on OpenLaszlo Server.
By "Preprocessed Requests" (System Admin's Guide to Deploy)
generating LZX from Velocity dynamically is quite well
such as "http://localhost:8080/lps-3.1cr2/velocity/hello.vm.lzx"
without follow's cases:
1. some tags including 'resource' attribute:
This must be added "http:" on top of resource's URL.
Otherwise server can not find the image file.
(I've found this solution on this mailing list before.)
2. '<splash>' tag
When I set :
<view resource="splash.jpg" x="250" y="200"/>
Compiler said "file not found: splash.jpg".
Then when I set :
<view resource="http:splash.jpg" x="250" y="200"/>
At this time compiler said that "unknown protocol: http".
Can anyone know how to avoid upper case 2 to compile well?
Also is this a bug or LZX's restriction for security even though it's on same localhost.
(In JSP and Groovlet it shows same errors by compiler.)
More information about the Laszlo-dev