Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

when export data to Excel, page doesn't refersh itsself!  RSS feed

 
luxica peng
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,everybody.
I'm working in a web app,this is my problem:
A & B are jsp pages;
the page B output data into excel;its only code is
"<% response.setContentType("application/vnd.ms-excel;charset=GBK"); %>
<%=session.getAttribute("repContent")%>"
The page A open a window that links to the page B;
" <a href="excel.jsp" target="_blank">Link to B</a>"
My vister squence is below:
1.>A---->link to B;this viste is successful,then keep window B open.
2.>viste A again,this make session data change(I tracked this by println);----->link to B;this option open a new window,and its content should be refersh by session data;but it still be same with last Window B.
if when I finish step.1;close the window B;this problem does't appear;
I think the reason maybe the browers doesn't refersh data really;so I try resolve this by JavaScript;but can't get a B window's handler in A;
Can anyone give me some advise! thanks first
--------------------
SCJP 1.4; SCWCD 1.4
[ June 02, 2005: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"fei peng my last name",

We're pleased to have you here with us on the Ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender
 
luxica peng
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi bear;
sorry;I don't mean to do this;when regieste;my profile has been used;so I use this unnormal ID.

[ June 02, 2005: Message edited by: luxica peng ]
[ June 02, 2005: Message edited by: luxica peng ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!