Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Old image repets for new image in JSP

 
sandeep lokhande
Ranch Hand
Posts: 120
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.



 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 120
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see anything.

In any case, search the web for JSP dynamic versus static includes.
 
sandeep lokhande
Ranch Hand
Posts: 120
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:I don't see anything.

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

okey, thanks :D .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic