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 main fuction of OSPF in a internetwork? how does work of same network?
how bluetooth works?what is principle behind in it?
can i get some win vista notes
How does C pass variables to a function ?
am a textile eng. frombut with major of my course including chemical eng, subjects, can i too apply to the co.?
how to store the vacuum in tank? its possible? what are the units for measure the vacuum ?
how to write regression test case?what is the difference between Client server & web based Testing? can we able to do UI Testing in web based Testing
Why do windmills never appear stationary?
how to find out the name of the users who are currently working starting with the same characters in unix os
what is the use of fact tables in your banking project doveleped with teradata?
Explain the memory reference and register reference instructions as micor operation.
how to create user name stape by stape in cisco router {with command}
what are differences between composition and inheritance in c
A company canteen needs an automated system for its food and beverage management. The canteen receives food and beverage items from different distributors. All the non perishable items are stored in the store-room and the perishable items are put in the fridge. The manager should be able to add, delete or update food and beverage items onto the system and perishable and non perishable item details are to be stored separately. Both waiters and the cooks should be able to update the perishable items, but only the cooks should be allowed to update the non perishable items. Both cooks and waiters are not allowed to add or delete any items that are entered. identify the Schema, Table , Fields
when does the official confirmation or the offer letter for the 2012 selected candidates of HUAWEI will come??