Questions tagged [struts2-rest-plugin]

The REST Plugin provides high level support for the implementation of RESTful resource based web applications

The REST Plugin provides high level support for the implementation of RESTful resource based web applications.

The REST plugin can cooperate with the Convention Plugin to support a zero configuration approach to declaring your actions and results, but you can always use the REST plugin with XML style configuration if you like.

REST plugin official documentation

21 questions
1
vote
1 answer

Custom function with additional argument using Struts 2 REST plugin

Is there anyway to have additional arguments in the URL of a Struts2 REST plugin controller? For example, I have: public class PersonController() implements ModelDriven { private Integer id; ... public String comment() { ...…
0
votes
1 answer

Need to Send HTTP-error-500 when an Exception occurs

I have designed a RESTful backend using struts2-rest-plugin. My front-end is Ember.js CRUD app. When I try to create a new record with duplicate ID my server is showing an exception. How do I send it as HTTP-error-code-500 to my ember.js app?
0
votes
1 answer

Stream file through Struts2 Rest

I need to stream file with Struts2 REST. Although it stream fine, Web Server throws error: Exception processing the result.: java.io.IOException: UT010029: Stream is closed Here is the Action code: public HttpHeaders index() { try { …
userYuri
  • 57
  • 4
0
votes
1 answer

ConfigurationException: Method send for action message is not allowed using Struts 2 and REST plugin

I am using Struts 2.5.14.1 and Struts REST plugin. Everything seems to work fine except the custom methods. The index(), show(), and other default methods work. But when I give some different custom method, It doesn't seem to work and throws an…
Anand Raja
  • 121
  • 5
0
votes
1 answer

Struts web application and web services together

I have a web application in Struts and Hibernate that is working correctly. We are also on the app development, and we are planning to configure both RESTful web services and web application URLs in one single struts.xml. For web application the…
1
2