Sumit Jindal

Greenhorn
+ Follow
since Oct 11, 2008
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 Sumit Jindal

Thanks Dee. I was also having same problem (scripting-invalid not working in DD).
I replaced my web-app spec in DD with yours, and now, scriptlets are disabled.
Regarding CATALINA_HOME,
If you go through your startup.bat or startup.sh file inside Tomcat/bin folder, you will find they are using this key to refer to the path (which depends on where you installed your tomcat) of the Tomcat folder.
So, you need to mention this path in environmental variables so that the batch file can get the actual path of your tomcat directory.

Thanks
Sumit
15 years ago
Hi,

I was trying out Cookie example from Session Mgmt chapter of HSFJ.
What I did was, created a new cookie with key=username and value=xyz. I also did a setMaxAge(5*60); on that cookie object and added that in response.
After sending the response, I checked in browser(firefox 3.0) for the cookie. The cookie was present with expiry time as expected i.e 5 minutes after current time.
Now, I made a another request to some other servlet where I checked the maxAge for that old cookie (i.e "username"). Surprisingly, getMaxAge() returned -1. I realized that this can be because the browser is sending the cookie in Header as "cookie:username=xyz" which doesn't contain any info about the max age. So, it is giving the max age by default as -1 to that cookie.
What I wanted to know is, if there is any way I can find out the original maxAge of the cookie which I had set while creating it in previous response?

Hope.. my doubt is clear.

Thanks
Sumit
15 years ago