This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Cache Problem in Browser -Firefox" Watch "Cache Problem in Browser -Firefox" New topic

Cache Problem in Browser -Firefox

Monoj Roy
Ranch Hand

Joined: Oct 10, 2007
Posts: 98

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 .

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 ;
where URL contains the data .
I agree. Here's the link:
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