Seems reasonable to me.
Also, somebody should write a tag to use JAXB (aka. adelard); I'll see
if the core team @ sun has any cycles, if not, perhaps somebody at
jakarta-taglibs will.
You can also use a tag that applies a transformation to an XML source.
Concepts on XML & JSP interaction can be found at:
http://java.sun.com/products/jsp/html/JSPXML.html. Some may be even
useful :-)
- eduard/o
Craig Tataryn wrote:
>
> >
> > The Struts functionality assumes you are working with data that is presented as
> > JavaBeans. It sounds like you are faced with a situation where your data is
> > actually presented to you as XML.
> >
> > If so, you might explore some of the technologies for creating Java objects out
> > of XML-formatted data. One such project is Castor at
> > <http://castor.exolab.org>.
> >
> > Even if none of that works out, using Struts to manage your control flow is
> > still a good idea :-).
> >
> > Craig McClanahan
>
> If you need a really quick and dirty one (for prototyping lets say), I already made
> an XML->JavaBean builder. Currently it only reads an XML file and infers what the
> resulting bean should look like and then spits it out. I've been meaning to
> explore sucking in a DTD instead of the actual XML to do this, but I haven't gotten
> around to it yet :( I've also got one in the works that just reads an XML file and
> dynamically creates getters/setters at runtime. I'm sure this has been done
> before, but how else does one learn right :)
>
> Let me know if you want it.
>
> <tataryn:craig status="tired"/>
>
> --
> I've been trying to change the world for years, but they just won't give me the
> source code....