Joshua wrote:

I'm new to this project. Reading through the documentation I came across a statement that
WW, unlike Struts, is not based on the Servlet API and so can be used in a java Swing
application. Assuming I have not misread the documentation statement, can someone who
has actually done this give me a pointer on how to do it?

Sure, I'm using it for a Swing-applet. Just register the server-side dispatcher in web.xml like so:
<servlet>
<servlet-name>dispatch</servlet-name>
<servlet-class>webwork.dispatcher.ClientServletDispatcher</servlet-class>
</servlet>


and use the ClientDispatcher in your Swing application to execute actions. You create them and populate them (by calling setters) yourself. Giving it to the ClientDispatcher will send it to the server for execution, and then it will be sent back when execute() is done so you can extract the result from it.

That's pretty much all there is to it. Any questions?

/Rickard

--
Rickard Öberg
[EMAIL PROTECTED]
Senselogic

Got blog? I do. http://dreambean.com



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to