http « HTTP « JSP-Servlet Q&A





1. How can something like BOSH be implemented using Java Servlets    stackoverflow.com

BOSH (Bidirectional-streams Over Synchronous HTTP) is a sneaky way of implementing 2-way client-server communication in situations where true server-push is not allowed, most obviously to let a server push ...

2. Execute code after Http resonse is sent    stackoverflow.com

In a Java web application, is there any way to execute some code after and depending on the HttpServletResponse that has been sent to the client? Thanks in advance.

3. C/C++ libraries for HTTP programming    stackoverflow.com

What well known C/C++ libraries are out there that could allow one to implement servlets, or at least provide most of the essentials for dealing with HTTP/CGI protocols such as http ...

4. Getting server name during servlet initialization    stackoverflow.com

I know the request object has a function to get the server name. (i.e. HttpServletRequest.getServerName() ) What if I need the same functionality inside the initialization of a servlet? How do I ...

5. Sending data to servlet over httpo using java DefaultHttpClient    stackoverflow.com

I am sending some binary data ([byte[]) (using the java DefaultHttpclient) to the servlet running on a apache tomcat server. My question is do I need to worry about machine endianness ...

6. Delivering unzipped file through servlet without unzipping on server first    stackoverflow.com

On the network where I have my web server there is a machine that has many zipped pdf files (zipped using java.util.zip) and I can access these files through HTTP. When ...

7. How to get the anchor name in HTTP GET?    stackoverflow.com

In a Java web project, how can I get (if possible) the "HTTP anchor" part in a URL request? For example, when the request URL is http://localhost:8080/servlet/page.htm?param1=value1&param2=value2#section I want ...

8. Java HTTP receiver    stackoverflow.com

I am trying to make a Java program, a servlet specifically to act as a receiver for an uploaded file, which the user used RNIF 1.1 transport protocol for uploading the ...

9. Calling Servlet from Servlet    stackoverflow.com

I would like to call a servlet from another servlet doing two things

  1. setting the content type to "multipart/form-data"
  2. seting the method to "POST".
This is very easy to do from a from, ...





10. How to route from Camel servlet component to http component?    stackoverflow.com

I'm trying to configure a multicast route that receives an HTTP POST and POSTs it to multiple instances of a service. From reading the documentation, and playing with the camel-example-servlet-tomcat, it looks ...

11. Http Tunneling with servlets ...    coderanch.com

12. javax.servlet.http.*    coderanch.com

The same TimeS.java file compiles on one machine and does not compile on a second machine. The classpath is : set CLASSPATH=C:\J2SDKEE1.3\LIB;C:\jdk1.3.0_02\jre\lib;C:\jdk1.3.0_02\lib;. Why does it compile on 1 machine and does not compile on another? C:\orion\default-web-app\WEB-INF\classes>javac -classpath %CPATH% TimeS.java TimeS.java:26: package javax.servlet does not exist import javax.servlet.*; ^ TimeS.java:27: package javax.servlet.http does not exist import javax.servlet.http.*; ^

13. Servlets(networking & http)    coderanch.com

Hi, We are writing a search engine, which takes information from other search engines. For this we need to send information to server side scripts of other web sites. We accomplished this using GET method, but how to do it, when the server side script on the other site is expecting data from POST method. Finally, is it legal to take ...

14. HTTP servlet problem    coderanch.com

Thanks guys. Unfortunately, I'd already tried shutting down and restarting Tomcat - before I posted my first message - since I knew about this bug. The new line of code never got displayed. Before trying Ganesh's code, I would like to first understand why my original code is not displayed completely. Any suggestions/advice are/is welcome. Thanks, Sanjeev

15. sun.servlet.http.HttpOutputStream    coderanch.com

16. non-http servlets    coderanch.com





17. Non http servlets    coderanch.com

20. Servlets + File Upload + HTTP    coderanch.com

22. HTTP tunneling between to a servlet    coderanch.com

23. servlet to http    coderanch.com

Do you mean your servlets return data in XML format? Because servlets return data in any format you want. Now, if you do have a problem with rendering XML as nice HTML, just apply XSLT to the returned document. If that is not enough, you may have to change your servlets to actually return exactly what you want.

24. HTTP Vesion Implemented by Servlet 2.3    coderanch.com

26. Http servlet    coderanch.com

27. Non Http Servlet    coderanch.com

28. javax.servlet.http.* missing?    coderanch.com

29. Not able to run servlet-HTTP status404    coderanch.com

this the output of prompt which shows the many errors when i startup Tomcat.. Jan 7, 2009 1:44:52 PM org.apache.catalina.core.AprLifecycleListener lifecyc ent INFO: The Apache Tomcat Native library which allows optimal performance in p ction environments was not found on the java.library.path: D:\Java\jdk1.5.0_ in;.;D:\WINDOWS\system32;D:\WINDOWS;D:\Java\jdk1.5.0_06\bin;D:\Java\JSDK2.0\ Jan 7, 2009 1:44:52 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Jan 7, 2009 1:44:53 ...

30. HTTP Trace call through servlets    coderanch.com

31. servlet 3.0 startAsync + http pipeline    coderanch.com

32. Are multiple http servlets possible ?    coderanch.com

34. Run servlet in HTTP server    forums.oracle.com

You can't. You have to run it in a servlet container. Which may well also be an HTTP server, of course. Anyways, the only way to answer this question properly is "deploy it". Every container has a different mechanism for doing this, so choose one and read the documentation, or a tutorial, on it. First step, though, would probably be to ...

35. Problem with HTTP/1.0 in calling a servlet?    forums.oracle.com

36. javax.servlet.http.*;    forums.oracle.com

37. servlet when http server doesn't exist    forums.oracle.com

The solution was already given to you in Reply 1. You need an application server. Tomcat is an application server. But there are others, so it is not required. Apache (assuming you mean the HTTP server and not one of the other dozens of Apache-branded products) is not an application server so it is neither required nor useful.