This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Cache Problem in Browser -Firefox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Cache Problem in Browser -Firefox" Watch "Cache Problem in Browser -Firefox" New topic
Author

Cache Problem in Browser -Firefox

Monoj Roy
Ranch Hand

Joined: Oct 10, 2007
Posts: 98
Hi

BACKGROUND :
---------------------------------------------------------------------------
I have a jsp page and in it there is a blank form as follows
<form name="myForm"></form>

the rest of the page is out side the form ,We are using dojo there .

Now for the outside of myForm there is a button .

on click of the button I am providing the following code




The giveMeData() will give me a string data and I am sending that data to a servlet and user can download that data in a .csv format .
---------------------------------------------------------------------------


PROBLEM:
I can download the data correctly but

I want to be sure that the data I am sending to servlet is not a cache data ,That is each time I hit the button it will return the fresh data from the giveMeData() function . giveMeData() is collecting the data from a table
which is not editable(a dojo grid)of the jsp .Later the table becomes editable so on that time my code should run properly .
Monoj Roy
Ranch Hand

Joined: Oct 10, 2007
Posts: 98
I forget to tell you that I have added the following code in my jsp



But No luck .. Can you please help..
Monoj Roy
Ranch Hand

Joined: Oct 10, 2007
Posts: 98
Sorry once again ,Actually I have used the myForm to send the data to servlet
as follows
document.myForm.action=URL ;
document.myForm.submit();
where URL contains the data .
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Cache Problem in Browser -Firefox
 
Similar Threads
Duplicate form submission - Synchronizer Token Pattern
send appropriate row
dojo and javascript DOM issue
Help needed with DOJO and JSP
form field population done right