There are 2 options you could solve your problem.
- You could override you doGet method with the following
ody....{ doPost(servletConfig);}
- You could call a Javascript function in your HTML with a call to an empy
form to which you would submit in the last comand of the js function.
i would choose the first one.
regards,
marcelo d'Amorim
----- Original Message -----
From: Carmine Lucarelli <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 07, 2000 6:15 AM
Subject: Re: calling a servlet containing doPost method by clicking a
hyperLink
> If I type in the URL of one of my servlets in the address bar of IE, it
executes
> fine. So I don't think one needs to click a submit button on a form to
access
> servlets. I'm using Domino, so I'm not sure if this differs between
> webservers...
> Oh yeah, code one or the other of your service methods to call the other.
>
>
> carmine
> [EMAIL PROTECTED]
>
>
>
>
>
> rajavardhan <[EMAIL PROTECTED]> on 06/02/2000 07:11:10 AM
>
> Please respond to "A mailing list for discussion about Sun Microsystem's
Java
> Servlet API Technology." <[EMAIL PROTECTED]>
>
> To: [EMAIL PROTECTED]
> cc: (bcc: Carmine Lucarelli/CENTRAL/CIML)
> Subject: calling a servlet containing doPost method by clicking a
hyperLink
>
>
>
> hai friends
> iam facing a problem in calling a servlet containing a
> doPost method from clicking a hyperlink in a html page. How can i set
> method = post when i was calling a servlet from a hyperlink.
> when Iam using doGet in servlet iam able to call the servlet.
>
> any help appreciated
>
>
> thanks in advance
> rajavardhan.
>
>
___________________________________________________________________________
> 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
>
>
___________________________________________________________________________
> 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
>
___________________________________________________________________________
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