views:

33

answers:

3

Hi I have one jsp which accepts avlue from textbox and passes it to another jsp page when button is clicked. Then by getting this value I have written one query which works perfectly. Gives the output and generates the proper report. But now i wants to bookmark this generated report. Can anyone tell me what i have to do for this thing?

A: 

While you generate the asynchronous content, you should change the hash, the part of the url after the # mark. Then you can bookmark this page. On page load, check the hash, and load the proper content if it is necessary.

erenon
+1  A: 

If the second page is invoked via a GET, then you simply have to use your browser to save the URL to your favourites - if it's invoked via a POST, then this isn't directly possible.

There are some workarounds, but using GET is the simplest option.

EDIT: Also, if the operation is 'read-only' - i.e. it simply requests data and doesn't affect any long-term data storage values, the the HTTP spec reccomends using GET anyway.

belugabob
A: 

Hi i have used get methods and i can save bookmark on IE but its not working on Mozilla Firefox.. Please help. Do i have to change something in settings? But normal other bookmarks are working..

kl18