On 10/22/07, Martin Cooper <[EMAIL PROTECTED]> wrote:
> On 10/21/07, Don Brown <[EMAIL PROTECTED]> wrote:
> >
> > [...]
> > Which reminds me, this plugin is targeted towards HTML-based web apps
> > that want to expose their information in machine-readable ways (XML
> > and JSON),
>
>
> I presume you mean DOM-based apps; some of us don't use HTML any more. ;-)

HTML = text format that you want to manually generate using jsp,
velocity, or freemarker

> but another thing I'm thinking about is how to better
> > support the case where XML and JSON are the primary formats, but you'd
> > want a simple, automatic XHTML view to make testing and debugging
> > easier. For this, you'd want XHTML to be generated by the framework
> > from the data without needing to write custom templates.  Still
> > thinking how exactly that would work, but it would be a huge
> > productivity tool to have an automatic XHTML view of your app during
> > the early stages of development.
>
>
> I was right with you up to here, but I'm not sure I get the part about
> XHTML. Are you just talking about a quick way for a human to look at the
> response? For XML and JSON responses, I would think you'd want to use the
> appropriate unit test tools (e.g. xmlunit and jsunit).

The use case I have in mind is early on during development, where you
want to interact with your services easily.  For automated testing,
obviously, there are better solutions, and there are tools like curl
where you can test your services, but it would be easiest to have a
simple browser interface, particularly for submitting data.  Again,
not critical, but would be useful during development.  The command
line tool curl, for example, needs a lot of text just to post an xml
document.

Don

>
> --
> Martin Cooper
>
>
> Don
> >
> > >
> > > Matt
> > >
> > > [1] http://www.theserverside.com/news/thread.tss?thread_id=47213
> > > [2] http://memeagora.blogspot.com/2006/12/polyglot-programming.html
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to