how to create session in visual web jsf page as we create in
jsp and how to maintain that jsf session in another jsp page?
<JSF=java server faces> <JSP=java server pages>
Answer Posted / john britto.s
Hi
Two ways of crating session
1.Like jsp page(ex. <%@page session="tru%>
<%=session.getAttribute("somesessionobject");
2.Another one is creating session via Managed bean
ex. HttpSession ses = ( HttpSession )
FacesContext.getCurrentInstance().getExternalContext().getSession(
true );
ses.setAttribute("someobject",someobject);
Sorry for my poor english
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
what is the PID controller?
Which one is more efficient in terms of required memory space call-by-value or call-by-referance?
what are the Types of End User in dbms?
Tell me about a time when you had too many things to do and you were required to prioritize your tasks
what is the pri request of binary search
discuss the technique for implementing high performance computing
Guys! I coplted 10th with 80% and +2 with 64% now am dng c.s.e b.tech...i want to go abroad for higher studies i want to write tofel...plZ GIVE UR SUGGESTIONS!
Write a program to count the no. of occurrence of word in given string Ex- Ram is good boy. Ram is doing good job. Ram – 2 is – 2 good – 2 boy – 1 doing –1 job – 1
what is your experience in developing technical specifications?
I have cleared SBT clerk exam and having interview on 29.I have completed my B.tech in IT.I would like to know the types of questions asked in the interview.
difference between a for loop and a while loop? what are its uses in c language?
what are the various technique used for inter process communication?
how the aeroplane protected from the lightening?
plz send me interview questions & answers of Data Structure
can any one please tell me what is mean by back papers,back log,historical standing ????????? this mean history of arrears is it correct or not.........