If I understand you right you think about using Struts controller for your swing application, or, perhaps, share controller functionality between swing and web applications.
Struts is not useful for such purpose – it 100% coupled to web, Servlet technology and HTTP.
You can consider using some other implementation of universal controller, less coupled to web, like Exadel (see http://www.exadel.com/products_products1.htm) In general your idea is attractive to me. You can share significant portion of controller functionality between different presentation channels, actually making separate layer of your application – “business functions layer”. For now it is recommended to do anyway, but you usually use EJB or just special Java classes for business functions. Why not use universal controllers? May be Struts is not right tool for that, but this is problem of Struts, the idea itself is attractive!
-- Igor Shabalov Exadel Inc. www.exadel.com
On Wed, 26 Mar 2003 12:24:23 +0100, <[EMAIL PROTECTED]> wrote:
Hi,
If you are using HTTP with Swing client, what protocol u are planning to use?Otherwise, like u said, how can u retrieve the Data on the server?
I think U need to define a protocol for object transfer...
Have a look at SOAP...
And basically I think the idea of having a swing client for a Struts layer seems a bit difficult to digest for me...
Can you not access the model layer directly from The swing client?But then all the flow control logic will have to be implemented...
Any ideas folks??
regards, Shirish
-----Original Message----- From: Mondkar,Paresh [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 11:59 AM To: 'Struts Users Mailing List' Subject: Struts and Swing Client
Hi, We are developing an application with Swings as the client. We are going to talk to the server using HTTP where struts is implemented.
Client Code Hashtable hash = new Hashtable(); hash.put("name", "kiran"); hash.put("password", "justdoit"); OutputStream outputStream = conn.getOutputStream() ; ObjectOutputStream objectOutputStream = new ObjectOutputStream(outputStream); objectOutputStream.writeObject(hash);
We are not sure how to retrieve this object at the server side as when we put this object into the request using ObjectOutputStream it does not have any id.
Also we are not sure how to return the control back to the client. return (aMapping.findForward("success")); <action path="/test" type="test.TestAction"> <forward name="success" path="???????????"/> </action> How do we map it in struts-config.xml file
Thanx & Regds, Paresh.
____________________________________________
Confidential: This electronic message and all contents contain information
from Syntel, Inc. which may be privileged, confidential or otherwise
protected from disclosure. The information is intended to be for the
addressee only. If you are not the addressee, any disclosure, copy,
distribution or use of the contents of this message is prohibited. If you
have received this electronic message in error, please notify the sender
immediately and destroy the original message and all copies.
--------------------------------------------------------------------- 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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

