Rajat Raina

Greenhorn
+ Follow
since Feb 17, 2009
Merit badge: grant badges
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 Rajat Raina

You can you a session listener as when you try to request from the browser a new session will be created and then you can check if it is from login page or else you can redirect it to login page.
13 years ago
JSP
Yes if the session is not invalidated then the same session id is used if you send a request from the same window but if you login from a new window a new seesion id is created thus creating a new session.
13 years ago
Thanks Bauke
It worked the way you told but I still have a doubt. The request stored in the List can be saved as an attribute of session so that the List can be used mutiple times.I am a bit confused on this. That is way i have used that that session getting/setting.
13 years ago
JSP
I am trying to upload an image from the jsp page. I want to store the same image with three names. For the first time the image is stored but it gives a NullPointer Exception at FileItem write method second time in the loop.
Please help.....
Code is

There is a NullPointerException at line 13 second time in the loop
13 years ago
JSP
I am trying to upload an image from jsp page. I can save it to any drive of my system but i am not able to store it inside my project directory structure. I am using struts.
Please help.......
In new file i want the path of my project folder not c drive.
Code is
13 years ago
JSP
You can set the max size of your file more than 1KB.
The function is setSizeMax(size) but for this you have to use DiskFileUpload.
13 years ago
This problem is particularly when i am saving the file in Office 2007 format while its working fine if i store it in 2003 format.
Please help......
13 years ago
JSP
Front controller is a good option
To be specific you can use struts framework
13 years ago
Are you sure this is a problem of encoding because the problem is strange: if i write in text box it takes quotes and other special characters also but not when i copy the data from an excel sheet to the text box.
and which tag is used for encding in web.xml.
13 years ago
JSP
I am trying to copy paste some data from an excel sheet to a text area in jsp page and storing it to database but it is not reading the special characters when i next time retrive it from database and display it on the page instead it shows a ? instead of the character.
e.g. i input "JAVA" bt next time i retrive it is shows ?JAVA?
13 years ago
JSP