This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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"!