aspose file tools*
The moose likes JSP and the fly likes Old image repets for new image in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Old image repets for new image in JSP" Watch "Old image repets for new image in JSP" New topic
Author

Old image repets for new image in JSP

sandeep lokhande
Ranch Hand

Joined: Jan 25, 2010
Posts: 118

I am making a reporting web-application using Jasper report,
with struts,

in the form, I give input by some Drop-down boxes etc. after pressing submit button , in the same page , the report is appended in bottom of JSP page,
by including HTML page generated,


Its works fine for first time,

But second time onwards whenever we change the input for second Report,
The second HTML images are not get replaces in my JSP page, till we refresh the page.

After refreshing the page it shows new image report properly.

I thought the request is got repeated and thus browser may save the state of the page,
for that i have appended a random number to request URL so that pretend to be request change.
But that also wont Work.

Is it a problem of browser cache?

Please suggest me the solution.

Thank you in advance.




Thanks and Regards,
Sandeep Lokhande.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Isn't <%-- a JSP comment?

In any case, assuming that's just a... typo? it's a static include and compiled into the servlet. Try a dynamic include.
sandeep lokhande
Ranch Hand

Joined: Jan 25, 2010
Posts: 118

David Newton wrote:Isn't <%-- a JSP comment?

In any case, assuming that's just a... typo? it's a static include and compiled into the servlet. Try a dynamic include.


Sir,
I don't really understood what do you mean by Dynamic include?

i have tried

img tag but also wont work,
Still need to refresh after new inputs aer made.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I don't see anything.

In any case, search the web for JSP dynamic versus static includes.
sandeep lokhande
Ranch Hand

Joined: Jan 25, 2010
Posts: 118

David Newton wrote:I don't see anything.

In any case, search the web for JSP dynamic versus static includes.

okey, thanks :D .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Old image repets for new image in JSP