This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
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,