Hi all, I am using Struts 2.1.2 with the REST plugin. I am trying to stream a byte array stored in DB as the response to a particular request.
I have mapped /* to the S2 FilterDispatcher. I have a class extending ActionSupport called ImageController, and its package is configured as an actionPackage of the FilterDispatcher. When I access http://localhost/myapp/image/1, the ImageController.show() method is invoked with id bound to 1, all as expected. But when I access http://localhost/myapp/image/1.jpg, the server returns a NOT_FOUND response. I am guessing that image/1 gets mapped to the S2 plumbing, but image/1.jpg is send to the Default Servlet which serves out static content. I understand that ignoring requests like *.jpg is done for a good reason, but how do I force a *.jpg URL to be picked up the S2 controller? I do not want all images to be picked up, just something which matches a pattern like /dbimage/*.jpg, which I can use for images stored in the DB. Thanks, Binil -- View this message in context: http://www.nabble.com/How-to-force-a-URL-not-to-go-to-the-DefaultServlet-tp19736404p19736404.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]