I am using RESTEasy in my project but I'm not that familiar with it. I need to use RESTEasy to return to a JSP page.
For example, I send a request to the server, the server processes the request then returns to a JSP page. How can I do this?
I am using RESTEasy in my project but I'm not that familiar with it. I need to use RESTEasy to return to a JSP page.
For example, I send a request to the server, the server processes the request then returns to a JSP page. How can I do this?
There is a plugin for RESTEasy that seems do do what you are asking: HTMLEasy. Slowly, there are features from it integrated into RESTEasy, mainly the View component.
As an alternative I think you can also borrow some ideas form another JAX-RS implementation, like Jersey, who has a Viewable class that can forward to a JSP based on a custom MessageBodyWriter (see these classes for how it's implemented:ViewableMessageBodyWriter and JSPTemplateProcessor).
And if the above looks a little bit heavy then have a look at this post for a simple solution.