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


Please Help Members By Posting Answers For Below Questions

what is JAR file,JNI,JFC??

1952


i want questions only on code part like general logics in c and java

1421


WHAT IS DIFFERENCE BETWEEN ART & VECTOR QUANTISATION BASED ON THEIR APPLICATION IN NEURAL NETWORK

1326


Derive the equation that links voltage, charge and capacitance.

720


Please send the details and fee for Intools training course..I would like to do the course in second week of jUNE 2010.

1755






nohup sort employees > list 2 > error out & what will happen?

2914


how to cable size by Amp with example

2185


i want to do oracle certification..could any one pleas tell me what is the level 1 certification exam in oracle? how do we get dumps?

1540


what are the efficient way or solutions to avoid ABEND=S04C.

5998


what is the quantity of cement and sand in 1 sq.m (mortar ratio ) a, 1:4 b, 1:3 c, 1:6

1562


int main() { int d = 10; int m = 2; int y = 3603; int c = 0; int val; val = ( d + m + y + (y/4) + c) % 7; cout << val; return 0; }

1183


How would Nvidia increase the core clock speed anymore?

1663


what is a Additional domain ? what is a child domain?

2360


what is the formula/ ratio for hollow block? considering to a 40 kgs of portland cement.

1392


Explain i.d.e. for visual c++?

1651