Hello
I have a
jsp in which i'm posting some data to a
servlet. After execution, Servlet code returns either success or failure message by replacing the jsp.
Now i want customize the message i'm getting from servlet without changing the servlet code as i DO NOT have access to the servlet code. I mean i do not want to replace the jsp with the output of a servlet, rather i just want to give an alert to the user saying that whether its success or failure and leave the jsp as it is.
Tried to capture the output of a servlet using URLConnection object, but it does not seem to work. I need to capture the output ONLY AFTER submitting the jsp to a servlet.
I'm not sure where should i put my code (using URLConnection) to captute the output of a servlet after posting to a servlet.