K
kssk
I have got a jsp form which consist of name, phone, email, etc.
I want to use session tracking in servlet:
In servlet my code are like:
String gn=session.setAttribute("gn",request.getParameter("givenname"));
String email=session.setAttribute("em","email");
..
..
..
..
and so on and In jsp
I get session value by
String given=session.getAttribute("gn");
My program work properly but I would like to reduce the code as I have
to write setAttribute for all the detail.
Does anyone help me?
I want to use session tracking in servlet:
In servlet my code are like:
String gn=session.setAttribute("gn",request.getParameter("givenname"));
String email=session.setAttribute("em","email");
..
..
..
..
and so on and In jsp
I get session value by
String given=session.getAttribute("gn");
My program work properly but I would like to reduce the code as I have
to write setAttribute for all the detail.
Does anyone help me?