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
anyone send me aptitude and technical placement paper of Hewitt
explain various object oriented programming fetures
can any give an exact example about, resolving the sql errorcode -305
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
What is spooling and buffering?
376,188,88,40,16,4,-2. Find wrong term in series
what is b tree
can oracle driver be directly connected with odbc driver??
IS THE SAMPLE POINT OF LPG SPHERE TANK PEFOR OR AFTER BUMP?
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
searching a B-tree indexed tree compared to B+ tree is slow..True or false
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.
CSS corp interview process and placement papers
explain different access specifiers in class
what is advantages and disadvantages of vlan?