how to maintain sessions in jsp?can you tellme the methods.

Answer Posted / asra

<%session.setAttribute("user","Murali");%>

Below statement you can use in any JSP to print the
welcome message. Start using JSP tags to better performance
and better coding.

Welcome to <%=session.getAttribute("user")%>

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I open a jsp file?

576


How clear chache and buffer of opera browser.

1941


What are the jsp lifecycle phases?

562


How can I enable session tracking for jsp pages if the browser has disabled cookies?

528


what is social transformation system? any site reference? How i get requirement gathering about for it? i wanna build website on this topic

1883






List the different scope values for the tag in jsp?

523


What is jstl core tags?

490


Explain the difference between jspwriter and servlet printwriter in jsp?

513


What are the steps for creating custom tags in jsp?

513


How to connect jsp and java file?

468


What are the two ways to include the result of another page?

1843


What is cookies in jsp?

498


Why is it not recommended to use script elements in jsp?

483


What program opens a jsp file?

500


What is difference between sendredirect and requestdispatcher?

492