•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 430,108 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,180 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 480 | Replies: 0
![]() |
•
•
Join Date: Feb 2008
Posts: 40
Reputation:
Rep Power: 1
Solved Threads: 0
Hi I have built a web site using Struts/Tiles... in one of the tiles i got iframe in which I load a XML file from the server
like this
<iframe name="showXml" frameborder="no" src="filename.xml" width="100%" height="100%" ></iframe>
the problem is that after I'm updating the file in other Tile (and the file is really being updated on the server) the web page is being reload and the iframe also, But... the shown Xml file is old and not updated...
If i close FF/IE and reopen it again I will see the updated file...
My question is what I need to do so the Updated Xml file will be shown (and not the old one) ?
I did try several things:
" response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
response.setDateHeader ("Expires", 0);
"
and tried putting it in HTML META tags
also tried <% session.invalidate(); %>
but nothing works.....
Any Ideas?
Thanks ahead!
like this
<iframe name="showXml" frameborder="no" src="filename.xml" width="100%" height="100%" ></iframe>
the problem is that after I'm updating the file in other Tile (and the file is really being updated on the server) the web page is being reload and the iframe also, But... the shown Xml file is old and not updated...
If i close FF/IE and reopen it again I will see the updated file...
My question is what I need to do so the Updated Xml file will be shown (and not the old one) ?
I did try several things:
" response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
response.setDateHeader ("Expires", 0);
"
and tried putting it in HTML META tags
also tried <% session.invalidate(); %>
but nothing works.....
Any Ideas?
Thanks ahead!
![]() |
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Previous Thread: Mathematical operators
- Next Thread: MySQL Datasource in jsp


Linear Mode