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

anyone send me aptitude and technical placement paper of Hewitt

1371


explain various object oriented programming fetures

1312


can any give an exact example about, resolving the sql errorcode -305

1443


sir i m reject two time in u.s in spring intake now im taking a date of 1july-2010 in fall intake &im competed my bachlor degree(chem) in jun-2009 so what answer i give to visa officer ask me a what r u doing last 1-year bcoz i have no work expirience

1341


What is spooling and buffering?

1272






376,188,88,40,16,4,-2. Find wrong term in series

3849


what is b tree

1574


can oracle driver be directly connected with odbc driver??

1270


IS THE SAMPLE POINT OF LPG SPHERE TANK PEFOR OR AFTER BUMP?

1596


i want to knw about what is lead,survey, oppertuinty , questionary,sales order,quotation,marketng conecpts in deatil and how it works in SAP CRM. Please send to my email- id as soon as possible. Thanks in Advance . :) nimi.nimisha1@gmail.com

1664


searching a B-tree indexed tree compared to B+ tree is slow..True or false

1852


Write a program in ā€˜Cā€™ that will accept 10 numbers from the user, sort them & then perform the binary search. The searching number will be arithmetic mean of the 10 numbers accepted from the user. Write the sort() & binSearch() functions for performing the sorting & binary search. Also create display function() for displaying the list. Sort() function will use selection sort and only receive one argument (Single char type)as type of sorting i.e. ascending (a) or descending (d). Display the list after sorting using a display() function. binSearch() function will accept one argument as a number to be search & return null or the index position of that number in the array. display() function is non argument non return type function. It will simply display the list row-wise. Program should use these functions by displaying the appropriate message for found or not found.

1892


CSS corp interview process and placement papers

1491


explain different access specifiers in class

1648


what is advantages and disadvantages of vlan?

3713