I am new to Chiba and investigating how to use it in the application that I
am developing.
My application's architecture is to have my enterprise server use servlets
and JSPs to serve XForms/XHTML documents, style sheets, and XML documents
specific to my enterprise. The server would server these documents to an
XForms aware browser.
Now, of course, I don't have an XForms aware browser... So I was planning
to put the Chiba servlet between a standard browser and my enterprise
server. Chiba would act as a black box translator, talking XHTML (and
javascript?) to the browser, and appearing as an XForms aware browser to the
enterprise server.
Is this how Chiba is intended to be used? If not could someone please
direct me to documentation of how Chiba is intended to be used?
If this is how Chiba is intended to be used, it does not appear to work...
The Chiba ServletAdapter expects that the XForm specified by the "form="
parameter specifies the relative path name of a File located underneath the
Chiba directory.
For example, if the Chiba war file is deployed at: C:\Program Files\Apache
Group\Tomcat 4.1\webapps
The URL:
http://localhost:8080/chiba-0.9.4/XFormsServlet?form=/forms/hello.xhtml
currently tells Chiba to use the XForm located at: C:\Program Files\Apache
Group\Tomcat 4.1\webapps\chiba-0.9.4\forms\hello.xhtml
I would expect/prefer that that URL would tell Chiba to use the XForm
located at: http://localhost:8080/forms/hello.xhtml
Further, I would expect/prefer that the URL:
http://localhost:8080/chiba-0.9.4/XFormsServlet?form=http://myhost:7001/myap
p/myform.xhtml
would tell Chiba to use the XForm located at
http://myhost:7001/myapp/myform.xhtml
(I'm not sure that that is a syntactically well formed URL, but you get the
idea.)
As currently implemented, the only way to get Chiba to do anything useful is
to alter the Chiba war file, either to add your own forms to the file, or to
create a servlet that can access forms that are not located in the war file.
I would appreciate any feedback to help me understand how Chiba is meant to
be used.
Thanks,
-- Dan Lange
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|