Tania Sen

Greenhorn
+ Follow
since Feb 28, 2010
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
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Tania Sen


Thanks Max for all the help
Logout problem is now getting under control
7 years ago
JSP
Hi Max,
Thanks a lot for the quick reply..

Yes i can understand the concept fully now...i have one more silly question..i am sort of new to database,i am using mysql...could you tell me what type of datatype to store the time,it is told to use hidden field with a 'long' value... but i am just a bit confused about 'hidden field' ...

So i guess i have to put this checking code in every page to be secure ?
7 years ago
JSP
Hi Max,
I visited your link but i couldn't understand clearly the following

To fix this problem experienced in logoutSampleJSP2, logoutSampleJSP3's login.jsp should contain—in addition to the username and password—a hidden field called lastLogon that is dynamically initialized with a long value. This long value is obtained by calling System.currentTimeMillis() and denotes the current number of milliseconds since January 1, 1970. When the form in login.jsp is submitted, loginAction.jsp first compares the value from this field against the lastLogon field's value in the User database table. Only when the lastLogon value from the form is greater than the value in the database will it be considered a valid login.


i am just 2 weeks old in jsp /servlet
so can you explain it to me simply
7 years ago
JSP
my code

Now it works fine ,i press the back button it doesn't display the previous page,but if i hit the refresh button the browser fetches the page back....searched a lot in the google no help
The best solution i got is in here..but i couldn't understand it clearly...
7 years ago
JSP
here is the scenario..my servlet fetches the whole table which i store in an ArrayList,which i pass to a jsp page,where i run a for loop and print the contents... it is an announcement page..and i store it in a database which is printed in announcement.jsp page
Now i want that user click's "next" hyperlink and the same page reloads and displays next 10 announcements and so on...similarly i want to use a "previous" page...
i am using an arraylist
7 years ago
JSP
My netbeans is connected to mysql..it is showing all the databases ,tables etc,but when i run my project from netbeans and the servlet tries to access mysql it gives a blank page...but it is working fine when i run it separately in a browser..
I am making a student database
My database has columns as:
roll name stream year jan feb march april .... dec

now i take user input in a jsp page and pass to servlet ..I take month ,attendance, and roll as input..
my sql query in the servlet is


its not working ..it only works if i give the months name

..but the month is supplied by the user !!