Ilyas Ahamed

Greenhorn
+ Follow
since Oct 08, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ilyas Ahamed

Want to call a bean method automatically when server starts.
The approach taken is:

1. Call the servlet MyServlet at load-on-startup
2. In MyServlet.init() call the bean method after x seconds. This time is controlled by java.util.Timer and TimerTask.


Is this approach correct?
11 years ago
I have 2 urls:

http://../page1.jsp?param1=ss
http://../page1.jsp?param1=aa

I access the first url: http://../page1.jsp?param1=ss and did some operations and got the result page.

The issue is when I access the second url: http://../page1.jsp?param1=aa, it is showing the first url's result page.


Tried adding:
<%
response.setHeader(“Cache-Control“,”no-store”);
response.setHeader(“Pragma\“,”no-cache”);
response.setDateHeader (“Expires“, 0);
//prevents caching at the proxy server
%>

11 years ago
JSP