Prasad Krishnegowda wrote:where is this attribute set?
It might be the case that, on login failure userToken is set in session, since its not null, authorized becomes true, now, since authorized its true, path variable is not set properly..
Prasad Krishnegowda wrote:Your code needs lot of refactoring, first accessing database from Servlets, a strict no no..
It would help if you learn Spring Security, take a look at it once..
However, is the session attribute path set properly? Did you try printing it, what's the result you got.?
Prasad Krishnegowda wrote:When login is successful, you create a new session or get an existing session? If you get an existing session, on login failure what are you setting in session, is this variable cleared on successful login?
Hi Prasad,
this is my code.
AuthenticationFilter.java
and Login.java
please help me.
Thanks.
nitss bhavsar wrote:hello Jeanne,
First of all thanks for your immediate reply..
1.what i want it to do-
a.first student should enter his/her details(like name,age,address,city,state..etc)
b.scores of previous years(like 10th,12th,CET,diploma(second year direct admission)).
c.should have three branches(engineering IT,Comps,Electronics)
d.cut off for each branch.
e.should have all the required documents for admission.
f.it should be offline.
g.if student satisfy all the criteria then he is valid candidate for admit.
2.what i want to have in database
a.i need to use jdbc (Oracle db)
b.database should have details of the valid candidate who is eligible to admit.
c.his/her name,branch selected,scores,all documents are there.etc
3.Screens should be like (not exactly like this but somewhat..but it should be offline and need to use swing for UI)
https://www.elbowspace.com/FRHformexample18.htm
thanks,