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]