How do you connect to a servlet without a post or get method in a form tag?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Adam_Lotrowski
Posted On:   Wednesday, October 24, 2001 05:22 PM

I would like to connect to a servlet from a frame tag or javascript function.
Rather than using the typical



public void doPost(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException{



What type of method would I set up?

Re: How do you connect to a servlet without a post or get method in a form tag?

Posted By:   Alex_Chaffee  
Posted On:   Saturday, October 27, 2001 07:41 AM

You can also use click here -- clicking on a link sends a GET, which would get processed by doGet.

Re: How do you connect to a servlet without a post or get method in a form tag?

Posted By:   Bozidar_Dangubic  
Posted On:   Thursday, October 25, 2001 05:05 AM

cannot. you have to POST or GET. remember that servlet is request/response mechanism. you send it a request and it gives you a response. now, remember that the underlying protocol is http. ask yourself, how can I send a request in http? your choices are GET and POST. there are others but they won't help you either. so the answer to your question is you cannot.
About | Sitemap | Contact