This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Presentation/Business logic" Watch "Presentation/Business logic" New topic
Author

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"!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Presentation/Business logic
 
Similar Threads
Image scalling for j2me mobiles.
Uploading an Image File
problem with images in web app
Image scaling/encoding
Combining Binary and Character data