RE: My first contact with StrutsCX

"Bertrand Martel" <[email protected]>
Newsgroups gmane.comp.java.strutscx.user
Message-ID <[email protected]>
> Thanks for your comments on StrutsCX. Very helpful!

You are welcome !

> BTW, what advantages do you see in replacing the actual checkBeanContent
with a Castor 
> XML solution? One disadvantage I see, is the 1.1 MB size of Castor XML
JAR.

Well Castor is a (the most ?) powerfull way of mapping XML to JavaBean. With
a nice XSD editor (XMLSPy for instance) you build your Schemas. From the
same file (the XSD) you can build your beans (for logic layer) and your XSL
(for presentation layer). Castor will respect the XSD when marshalling (an
attribute of a node will be serialize as is, etc). Moreover, you benefit
from the Castor checking/validating system. Why don't you provide a "Castor"
way of serializing and people interesting in this process will change their
configuration file (strutscx-config.xml) and add the castor.jar file.

> I followed your suggestion and added the 
> ss.setSystemId(url.toString()); line to the 
> createXSLTemplate() method of the StrutsCXStandardTransformer. 

Great ! I forgot to mention that the setSystemId() method should also be set
in the URIResolver to the Source returned by the resolve() method. If the
included/imported XSL (which URI is resolved from the URIResolver) contains
as well a "<!DOCTYPE ...>" then we need the SystemId to be set.

Regars,

Bertrand.



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.