jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes Presentation/Business logic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Presentation/Business logic" Watch "Presentation/Business logic" New topic

Presentation/Business logic

Tonny Tssagovic
Ranch Hand

Joined: Dec 30, 2003
Posts: 226
Hello guys?
I have an app that returns an image depending on the client's capabilities.
SO far the client sends its desired scale, and the Servlet forwards this scale to other objects which retrieve /generate the image and then change it to desired scale/encoding and returns it to the Servlet as a byte array that is sent back to the client.
Now, this functionality is presentation stuff, and I would like to take this step (image encoding/scaling) to the presentation layer. I have read that JSPs are better suited for text, and that would be nice if I had some text data and several JSPs to encode them for each kind of client, but in this case it is an image that has to be tailored to the client's preferences
Any ideas? Should there be code to change the image size inside the JSP (or even servlet)? Doesn't this make it confusing?
Any thoughts will be appreciated"!
I agree. Here's the link: http://aspose.com/file-tools
subject: Presentation/Business logic
It's not a secret anymore!