Hi All,
I've sample code of
jsp and
servlets. Below is my code.
Index.html
welcome.jsp
AnnotationServlet.java
Now I want to store those username and age(in .html) somewhere and I want those information in welcome.jsp. Now, I'm storing all those in session itself(In doGet method(servlet)). I think, there may be still better and good way to store. Please can anyone suggest me, with proper explanation.
2 Doubt) Also, when I get the session in servlet
line No. 27. The session value is
org.apache.catalina.session.StandardSessionFacade@69a8bf4f
. I'm expecting that session is to be empty. Because, I dint store anything until that line. Please explain me this too.
Thanks
Ramakrishna K.C