Most of what you're wanting to do doesn't involve Stripes, but here's
what the Stripes part will look like:
public class ImageActionBean extends BaseActionBean {
/* Properties, getters, and setters go here */
protected InputStream retrieveAndConvertImage() {
// Do whatever you need to do
}
@DefaultHandler public Resolution go() {
InputStream image = retrieveAndConvertImage();
return new StreamingResoluton("image/png", image);
}
}
-Ben
feh wrote:
Hi folks.
My approach may be completely wrong here, but I want to write a little app
that converts jpg images to png images, using stripes. Think of it as a
image conversion proxy.
So, the flow is:
1) request for image comes to my app
2) my app makes http request of another server, retrieving a jpg
3) my app converts the image to a png
4) my app sends response to original request, sending back the png
I've been using stripes for quite a while, but it's always been in a more
conventional manner (form processing, ForwardResolutions to jsp pages, etc).
How would I go about using stripes in this manner?
Thanks!
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users