On Thu, Jul 15, 2010 at 16:42, Kevin Wright <kev.lee.wri...@gmail.com> wrote:
>> You can use JPA entities as
>> the model, Session beans to provide REST endpoints (controller), and HTML
>> with JavaScript (dojo, jquery, etc) to provide the view.
>> [...]
> You think this is a simple solution?

I tried something completely out-of-mainstream (I guess) in the last 2 hours:

I used the simple http server that comes with Java 6 and implemented a handler.
>From there I take the url that has been used for the request.
If that url contains for example "/edit/" I build a filename with
.html extension
I look into my application folder into an appropriate subfolder and
load the html.
Then I could replace some variables if I like with something I get
from a database or so.
Last but not least I dump it to the response.

Now I can start Open Office and voi-la I have a WYSIWYG Web GUI editor
for the form.
In Open Office I can even set the form action url, form control names and so on.
There I can set to use other urls containing e.g. "/update/" when
submitting the form.

For urls containing "/update/" for example I can do the appropriate
work directly in my little http server code.

Finished is my tiny little web framework including GUI editor.
No extra web server, no extra application server, no extra framework.

And response of that thing is in an instant!

OK, might not scale well, the Open Office generated html will be nice
and blablabla, but who cares - a simple solution was asked. What do
you think?

-- 
Martin Wildam

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javapo...@googlegroups.com.
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to