File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Session Scope JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Session Scope JSF" Watch "Session Scope JSF" New topic

Session Scope JSF

priya loganathan

Joined: Mar 12, 2011
Posts: 3
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. 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.

priya loganathan

Joined: Mar 12, 2011
Posts: 3
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?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

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.

An IDE is no substitute for an Intelligent Developer.
sud red

Joined: Jun 16, 2013
Posts: 1
Hi For detailed explanation with live example on JSF session scopes like view,request,session.application visit
I agree. Here's the link:
subject: Session Scope JSF
jQuery in Action, 3rd edition