Please come in....

jabber (jabber)
URLConnection has a method #setRequestProperty(?, ?). You can use it to send the parameter from Java Application(Client) to the Servlet(Server). I suggest you look into the examples in Java Servlets by Karl Moss (it is a red cover book, published by mcGraw Hill). See pages 93--99. You can find the book in most bookstore. For the example code, you can download it from I do believe I have helped you because you do not use the browser as the client. So you need to work at a lower level than doGet and doPost. Good luck, my pal.

2001-8-24 -04:00

回到话题: 请教一个JAVA问题,如何在URLconnection 里设置象HTML PAGE里的<input type="text" name="search">的参数使得在SERVLET里的HttpRequest.getParameter("search")能取到.

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论