In the applet, open the URL("http://myserver/mywebapp/appletSupport.do?param1=x¶m2=y"); And read the response. Alternatively, you can URL("http://myserver"); and write to the opened URL as :- GET /mywebapp/appletSupport.do?param1=x¶m2=y
This works for HTTPS also I believe. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 16, 2004 2:45 AM > To: [EMAIL PROTECTED] > Subject: Re: struts and applets > > > Ashish Kulkarni wrote: > > >Hi > >I am working on a webproject where i have designed a > >applet which communicates with the database using > >applet-servlet communication, > >The applet opens a URL connection to a servlet. > >My Servlet reads the data from applet calls the > >appropriate business classes, get data and returns > >data back to applet. > > > >If i have to replace this servlet part with struts > >Action class, how do i define it in my struts-config > >file and what will be the form and where do i forward > >it after completion. > > > >Ashish > > So you use an applet that communicates with an HTTP Servlet? > I think you > can use Struts for your purposes, but not the "usual" way in > normal web > applications (i.e. HTML+Javascript based). > 1) You can still define your action class the usual way, with > an URL and a > form-bean connected to it. > 2) To find out what your form is, take a look to the > parameters that the > applet passes to the servlet. You must know that, in fact, > every kind of > HTTP request and parameters are taken to build the form bean. > In this form > bean, every parameter is used to set the property that has > the same name > of the parameter itself. > 3) You have to forward to "null", I think. The thing that, > IMHO, is the > best one is to construct manually the HttpServletResponse, > just as you do > with your servlet. > Ciao > Antonio Petrelli > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -------------------------------------------------------- The information contained in this message is intended only for the recipient, and may be a confidential attorney-client communication or may otherwise be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, please be aware that any dissemination or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the message and deleting it from your computer. Thank you, Standard & Poor's -------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]