Then in the body of the page I have the following form:
where the user can choose between two buttons. Near the bottom of the page I have the following:
which is associated with class LoginBean, and includes the following methods:
Together with several other methods.
When the person visits the login page, as should be the case on starting a new session, if he successfully logs in, "loggedin" is set to true and the getter returns that. However, I'm having a lot of trouble going from the login page to one of the option pages and passing the parameters along with it. I can indeed store the parameters in the string "urldata" in my login page with using:
but I can't find an easy way of directing JSF to option1.jsp or option2.jsp as required.
I can go to an intermediate page called "success.jsp", and have a button that when clicked is supposed to take you to one of the options using href, but this doesn't work. Why does href only work with the index page?
I would be most grateful for some help with this. I've had to use "onklick" here as your server objects to the correct spelling.