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>



how to create session in visual web jsf page as we create in jsp and how to maintain that jsf sessi..

Answer / 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

More Engineering AllOther Interview Questions

Modal vs Modaless in VB??

0 Answers  


Hi, what is the meaning of DOCUMENTUM,how and what testers have to do with it?

0 Answers  


safety valve calculation?

0 Answers   HEG,


I am going to HAL Online test for Computer Science. Can you please mail me the model question papers ?

0 Answers   HAL,


to print greatest of two integers without using >,<,=.

0 Answers  






What is the meaning of int p(char*a);

0 Answers  


MILITARY ENGINEER SERVICES

1 Answers   ASD Lab, MES,


why u r shifting from engineering to other field ?

0 Answers   HSBC,


i need NIC written test paper or give me any idea about written exam.Plz send me at smileever8@gmail.com

0 Answers   NIC,


what is the difference between error,exception,bug,defect,fault..?

0 Answers  


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

0 Answers   Accenture,


What is the aim of Value Engineering?

0 Answers   BPCL Bharat Petroleum,


Categories
  • Civil Engineering Interview Questions Civil Engineering (5084)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16631)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1094)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)