HttpRequest « API « JSP-Servlet Q&A





1. ArrayIndexOutOfBoundsException in XMLEntityScanner.peekChar reading XML from HttpRequest    stackoverflow.com

I'm reading XML data from the HttpServletRequest in my servlets doPost() and passing the Reader from req.getReader() to a JAXB unmarshaller. I've tried a couple of different input XMLs but I ...

2. Mimic an HTTPRequest and HTTPResponse object in Java    stackoverflow.com

How do I mimic an HTTPServletRequest and HTTPServletResponse object. The reason is I want to test the behaviour of some servlets. I know JUnit probably provides this functionality but I don't know ...

3. Thoughts on passing HttpRequest and HttpResponse to service layer?    stackoverflow.com

I have a CommerceService module to help with common order processing functionality, which includes things like payment authorization through providers like Authorize.net, Paypal, and Google Checkout. It provides a simple interface ...

4. about HttpRequest    coderanch.com

5. HttpRequest returns Corrupt Data    coderanch.com

Hi, I have a page where the User can enter Japanese (or multi-lingual) data in a Textbox and submit the form. On Form submission, I am calling a Servlet which retrieves the Data from the request. Here,I am getting mangled/corrupt data. I gather that most of the web containers interpret the non-ascii/ japanese characters using the default encoding (ISO_8859_1), which produces ...

8. HttpRequest carry-over    coderanch.com

9. Can javax.servlet.http.httprequest do a https connection?    forums.oracle.com

The application server is what supports HTTPS. Most common Java application servers support SSL (the protocol implied by https). However, you may well find it to be more difficult to configure than you anticipate. Assuming that you have appropriately configured your server, the javax.servlet.http.HttpServletRequest will behave in the normal manner. Short answer: Yes.