In following link(using Applets as front end of
servlets) you can find the details needed..

http://csajsp-chapters.corewebprogramming.com/CSAJSP-Chapter17.pdf

Indresh


--- Luca Ventura <[EMAIL PROTECTED]> wrote:
> Hello everybody!
>
> I would like to send a request to a servlet using an
> applet instead of an
> HTML form and the POST method.
>
> I mean...I want obtain the same effect of sending
> the following form using
> an applet:
>
> <FORM NAME="Dati_personali"  METHOD=POST >
> <INPUT TYPE="hidden" NAME="Vecchia_Login">
> <INPUT TYPE="text" NAME="E_mail" size="25"
> MAXLENGTH=30>
> ...
> </FORM>
>
> I would like to get the value of the two INPUT
> fields and send them to the
> servlet with an applet (I could modify them before
> sending them to the
> servlet, for example I could crypt them in the
> applet).
>
> The servlet shouldn't know I am sending the
> parameters through an applet
> instead of an HTML form: in fact in this case I
> could get the value of these
> parameters using always the getParameter() method.
>
> I thought to put the parameters in a Java class and
> send them using object
> serialization but in this case in the code of the
> servlet I should support
> object serialization and use readObject() method
> instead of getParameter():
> so I should write two different method to read
> parameters, the first one to
> read the parameters sent with an HTML form and the
> second one to read those
> that are sent with the applet and object
> serialization.
>
> Anyway I would like to write ONLY one method to read
> all the parameters I
> want to send: it doesn't matter if they are sent
> with an HTML form an
> applet, because the servlet shouldn't recognize the
> way they are sent.
>
> A question again: how can I obtain the same effect
> using the GET method
> instead of the POST method?
>
> Thanks a lot in advance!
>
>                               Luca
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>


__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to