K
kevin
hi there,
i'm using the JFreeReport library to make PDF's from sql data, and
while it was placed inline into a frameset from JSP by a bean function
all was well. I moved the code to a servlet in a popup window, and now
i get (no matter *what* i try) two requests back to back for the data
(which beingh in a temp table is gone second try and i get no output).
the jsp builds a javascript entry when the servlet is ready to display
in the
data entry screen like
<%if (some local boolean) { %>
<SCRIPT language="JavaScript"
window.open("myservlet","report" "window parameters");
</SCRIPT>
<%}%>
I've tried
1 <EMBED src='myservlet' > with an intermediate page (called
crappyie.html)
2 renaming the servlet ref to servletref.pdf in web.xml
3 adding response.setHeader("Cache-Control", "\"no-cache\"");
4 adding response.setHeader("Cache-Control", "\"must-revalidate\"");
5 pulling my hair out
i did a full scan (by hand & using tools) of the headers coming in,
and all is the same except the first one has language header ...
doGet
header accept value */*
header accept-language value ie-ee,en-gb;q=0.5
header accept-encoding value gzip, deflate
header user-agent value Mozilla/4.0 (compatible; MSIE 6.0; Windows 98;
..NET CLR 1.0.3705; .NET CLR 1.1.4322)
header host value 192.168.254.99:8080
header connection value Keep-Alive
header cookie value JSESSIONID=539EB1780479A5F087E830765187DB44
content type null length -1
doGet
header accept value */*
header accept-encoding value gzip, deflate
header header user-agent value Mozilla/4.0 (compatible; MSIE 6.0;
Windows 98; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
header host value 192.168.254.99:8080
header connection value Keep-Alive
header cookie value JSESSIONID=539EB1780479A5F087E830765187DB44
content type null length -1
I've run out of ideas except poking random values into the header to
see if one will stop the thing repeating. Anyone got a better idea?
i'm using the JFreeReport library to make PDF's from sql data, and
while it was placed inline into a frameset from JSP by a bean function
all was well. I moved the code to a servlet in a popup window, and now
i get (no matter *what* i try) two requests back to back for the data
(which beingh in a temp table is gone second try and i get no output).
the jsp builds a javascript entry when the servlet is ready to display
in the
data entry screen like
<%if (some local boolean) { %>
<SCRIPT language="JavaScript"
window.open("myservlet","report" "window parameters");
</SCRIPT>
<%}%>
I've tried
1 <EMBED src='myservlet' > with an intermediate page (called
crappyie.html)
2 renaming the servlet ref to servletref.pdf in web.xml
3 adding response.setHeader("Cache-Control", "\"no-cache\"");
4 adding response.setHeader("Cache-Control", "\"must-revalidate\"");
5 pulling my hair out
i did a full scan (by hand & using tools) of the headers coming in,
and all is the same except the first one has language header ...
doGet
header accept value */*
header accept-language value ie-ee,en-gb;q=0.5
header accept-encoding value gzip, deflate
header user-agent value Mozilla/4.0 (compatible; MSIE 6.0; Windows 98;
..NET CLR 1.0.3705; .NET CLR 1.1.4322)
header host value 192.168.254.99:8080
header connection value Keep-Alive
header cookie value JSESSIONID=539EB1780479A5F087E830765187DB44
content type null length -1
doGet
header accept value */*
header accept-encoding value gzip, deflate
header header user-agent value Mozilla/4.0 (compatible; MSIE 6.0;
Windows 98; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
header host value 192.168.254.99:8080
header connection value Keep-Alive
header cookie value JSESSIONID=539EB1780479A5F087E830765187DB44
content type null length -1
I've run out of ideas except poking random values into the header to
see if one will stop the thing repeating. Anyone got a better idea?