I am creating an activation, triggered after clicking an URL in an e-mail from registration.
I would like to execute my bean Activate.java immediately, instead of creating an xhtml page with something like #{validate}.
I do not need any xhtml file because the user will be redirected to login.
What is the best way of achieving this?
Note, I am using JSF 2.0.
Use a servlet.
This will be invoked when you call
http://localhost:8080/contextpath/activate?key=42.You’ll only miss JSF validation facility as possible with
<f:viewParam>. What do you want to do if key is missing or invalid?