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 does complexity means in an algorithim?? how it is calcutaed?
hiiiiiiii to all am going to prepare J.T.O (BSNL)posts am studying B.Tech final year cse........ but its all about electronic subjects....so tell me where can i get previous papers? give me some sites plzzzzzz.........
Write a nonrecursive routine to reverse a singly linked list in O(N) time.
hi,i just want to know the best institute to learn oracle in bangalore because i am doing my BE there?
sir now i am studying B.Tech final year so now i am eligible for writing group 1 and 2 or not?
When to use Stub and Not So Stubby Area? 10. How to get the external routes without making area Not So Stubby?
Iam preparing for Visakhapatnam Management Trainee 2009 entrance exam.. If anybody have Visakhapatnam Management Trainee Interview questions Pls forward to my mail id srikanth.avanthi@gmail.com .. It is kindly request..
sir ,,kindly provide me 10 year old solved question papers of gate ,i am from CS. branch...
what is your experience with computer-aided design software.
How will a tester be sure that He’s covered the entire functionality in his Test case and not missed out anything?
to acheve the IP 65 protection class does it is mandatory to apply silicon grease?
who are egoless programmers?
what is total power generation capacity in india at present (as on 12-12-2011)
the controller valve fisher error: travel ??? not output input ok
#include