How to load a JSP without refreshing.

Hi there,

It is very urgent. i hope you people will help me to come out from this problem.

Consider i am having one jsp. Name isA.jsp.

In A.jsp i have used grid to select some records.

I have written one java script function to call one servlet.( Name is LLReportServlet.java)

In servlet i have to redirect to the same jsp ( i mean A.jsp)

While re directing to that jsp it got refreshed. But It should not happen.

Because i have to retain the grid values ( Selected values) once it come back to that Jsp.

Could you please tell me how to do this?

Thanks

Gurusamy

[636 byte] By [gurusamy10a] at [2007-11-27 5:54:52]
# 1
AJAX
quittea at 2007-7-12 15:49:46 > top of Java-index,Java Essentials,Java Programming...
# 2

What I'm sensing here is a lack of understanding of the request response cycle of that silly interweb thingy.

All kidding aside, remember that what's displayed in the browser is a document, and that the request / response cycle is stateless, it has no idea what went on before it and as soon as a response is received it may as well have not existed.

You can simulate what you're after in a number of ways, but some part of the jsp will have to refresh if the data under it changes or the user will never know that it happened. Through graceful handling of things like frames and divs you can arrange it so that only the relevant portion of the page is refreshed and make it look like they're getting what you're asking for but that's as close as you can get.

PS.

puckstopper31a at 2007-7-12 15:49:46 > top of Java-index,Java Essentials,Java Programming...
# 3
(AJAX)Valid point, I didn't mention it because the op didn't mention any implementation of anything but a straight jsp.PS.
puckstopper31a at 2007-7-12 15:49:46 > top of Java-index,Java Essentials,Java Programming...