This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of DevSecOps Adventures: A Game-Changing Approach with Chocolate, LEGO, and Coaching Games and have Dana Pylayeva on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Session Scope JSF

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,
I am doing a project in java ee. I use xhtml and managed bean for the web application interface.I want to check whether the email id value which the user enters in the login page comes to the next corresponding page. How do I do that?

I have attached the files. index.xhtml is the login page where user gives the input, reserve is the page where the user gets to see after loggin in. UserInfoBean.java is the corresponding java managed bean file for index.xhtml.

Would really appreciate some help on this.

I couldnt attach the xhtml file. Pasting it here.
index.xhtml
---------------



Thanks
 
priya loganathan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
on the previous post, in jsp there is getParameter,setAttribute and getAttribute. what I need is achieved through this. any idea how to do it in jsf?
 
Saloon Keeper
Posts: 28222
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I see you found the "code" button but didn't know how to work it properly, so I fixed your post so I could read it. To use the code button, highlight the code (or data) text and then click the "Code" button. Attachments are not necessary for code or XML.

JSF is really about manipulating beans, not working with pages. Pages are just the View in JSF's MVC architecture. SO when you fill in a JSF form and fire off an action, JSF will validate the input, and if the input is valid, it will automatically invoke the "set" methods for the form's properties. Then it will invoke your action method which can do whatever it needs to do with the assurance that the bean's properties were updated from the form inputs and that the properties are valid according to the validation restrictions placed on the form.

Other than that, all I can say is don't use user-written login screens in production apps. They're insecure.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi For detailed explanation with live example on JSF session scopes like view,request,session.application visit
http://java-recent.blogspot.com
 
It's a tiny ad only because the water is so cold.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic