servlets

Passing parameters from one to other servlet using POST

How do I pass parameters from ServletOne to ServletTwo using a HTTP POST through URL? For example: http://localhost/ServletOne?username=test If the passing of parameters is successful, a JSON text will appear in the JSP page. ...

Java App to receive http PUT and Get request

Hi there, I am looking for advice on how to go about writing a small and simple application that will receive http GET and http PUT request, process the data (simple text files) and respond. I have all ready done this using threads and sockets but there must be a simpler and more efficient way. Also when I run my application using ...

Is it possible to invoke a javaScript server side ?

greetings all i was wondering if it's possible to send some javaScript code in the response of a controller meaning that i want to invoke a javaScript but not from the jsp (from server side) something like: var d = new Date(); var gmtHours = -d.getTimezoneOffset()/60; var tz=gmtHours; window.location="page?tz="+tz; what do you think g...

JAVA servlets - open message popup

I want to user HttpServletResponse object to compose a response that will tell the browser client to open a popup with some message - how can i do that? ...