I’m working on Spring MVC with richfaces.
Is there a way to call a method in a managed bean Controller from URL?
e.g: website.com/somecontroller/somemethod?x=1
I tried @RequestMapping but didn’t work.
Thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When the browser client want to access to an URL, the managed beans declared in the page will be created, the constructor and
@PostConstructmethods will be invoked server side.You can recover the parameters using
@ManagedPropertyas proposed by BalusC (as he says, the JSF-ish way):If that answer doesn’t fit for your needs, you can recover the request object and get the parameters one by one, as stated in the question: