This content has been marked as final.
Show 2 replies
-
1. Re: Automatic login upon successful user registration
thejavafreak Sep 5, 2008 8:01 PM (in response to vk101)Create your logic in the POJO and when it succeeds use the variable/flag saying that the registration succeeds in the pages.xml to redirect to the page you want.
-
2. Re: Automatic login upon successful user registration
vk101 Sep 5, 2008 8:40 PM (in response to vk101)I'd prefer not to have a successful-registration flag, for example, in the registration POJO just for the sake of getting around this issue - unless that is how you'd want to do login-after-registration even if I weren't getting the issue from my original post - is it?
Using the way I tried, I have a login method as well as a registration method which simply calls the login method at the end - simple and clean, except for the issue I'm facing.
What's causing this - what do I need to do to the EntityManager instance to see the record that it just wrote to the database?