i have 2 servlets called signup.java and submitfavourite.java
i am trying to pass a variable username from signup to submitfavourite like this...
code for signup.java
code for submitfavourite.java
but in my database i am getting null instead of username means session.getAttribute("uname") is returning null. i also tried this by request.getAttribute but that is also returning null.
please help me why it is returning null..
Please properly indent your code when posting, unindented code is very hard to read. Also you should be following established naming conventions for Java. Class names should be Signup and SubmitFavourite,