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

my PST is corrupt and can not be repaired, what do you do?

1 Answers   BMS,


write a program greater then three numbers without if, if...else,while,do..while,for,switch statement.

2 Answers   TCS,


reverse a number ( like 1234 into 4321) using malloc in C programming

0 Answers   TCY Online,


what is the meaning of vacuum balancing line at glass line or s.s reactor in pharma api industries?

1 Answers   Apicore Pharmaceuticals,


1)How to calculate AC Capacity for the Room?

0 Answers  






I am some what lagging in talking English but i love to do job as an software engineer what will i do to improve my communication skills? please give me answer..........

1 Answers  


Net app interview questions ============================ . Storage Fundamentals: - what is Raid? What are different kind of Raids? - Difference between all of Raids , Advantage of one raid over other - What are FCP & ISCSI, Difference between them. - FC Topologies, Iscsi commands - How to mount a Lun on Windows/Linux - NFS and CIFS - Difference between SAN, NAS and DAS - Different Backup methodologies, Snapshot, mirror, Disaster Recovery, High Availability, Cluster concepts 2. Network Fundamentals: - TCP/IP and ISO/OSI layers - What is DHCP, DNS, SNMP, Router, Hub, Switch, HTTPS , HTTP, telnet , ssh, rsh - Different SNMP versions (V1, V2, V3) - SNMP traps - Ipv4 and Ipv6 addressing 3. Database: - SQL queries, Joins (may ask you to write queries with complex joins) - Aggregate functions - Schemas, Tables, views (create, delete, alter, drop etc) 4. Testing - Bug tracking process, Types of Bugs - Difference between priority and Severity of Bug - Your best bug , what will you do when your bug is not fixed/rejected etc. - What is Functionality/Sanity/Stress/Upgrade & revert/Performance/negative/Release test/regression tests. How you have done these in your past projects. - Black box testing, grey box testing - May ask to write test cases on a given scenario - What is test plan and test summary/strategy document. Different sections in these documents. - SDLC, Test Lifecycle and approach to test a product (Given a product what different kind of testing you will do) 5. Perl ( in addition, you may be asked to write scripts on below areas) - Regular expressions - File/Directory Handling - Scalars, Arrays and Hashes - Packages and Modules - Use and require statements - Go through Net::Telnet, Net::SNMP, Net::SSH modules in perl

0 Answers   NetApp,


Write a test case plan for a typical banking application which involves functionalities like Balance enquiry, deposit, fund transfer etc. Make your assumptions and mention the same in your answer sheet.

0 Answers  


i have studied my Btech up to 5years, is any problem with duration of the year.if the us embassy interviewer ask me why you have got 5 years to complete your btech,can you please give me answer.And i got less percentage.

1 Answers   US Consulate,


can you provide me uniken pvt ltd. technical interview question and answer?

0 Answers  


can any one please tell me what is mean by back papers,back log,historical standing ????????? this mean history of arrears is it correct or not.........

0 Answers   HCL,


CAN ANYBODY CAN SEND ME HEWITT PLACEMENT PAPERS(APTITUDE AND TECHNICAL).

31 Answers   Ericsson, Hewitt, TCS,


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16632)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • 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)