Actually, it's best to let the DB worry about it. Why pull data out of the DB that's not going to be viewed? See the JSP FAQ for a discussion of paging.Elizabeth Wilson wrote:Though, I like the idea of paging, wish I'd thought of that myself. Any clues on how to go about that? Seems like caching would be needed to allow paging back and forth.
Same deal. You create a link in the JSP. Sending the binary to the JSP is useless -- there's nothing to do with it there. Whether it's an image or a link, it references a servlet that will stream the binary data in the appropriate format.Thanks for the point about the image tag. How about the case where I want to allow the user to click on a link to
download binary data resding in some servlet's memory somewhere?
Okay, will not try to send large amounts of data to JSP. Thank you for the guidance!
Actually, it's best to let the DB worry about it. Why pull data out of the DB that's not going to be viewed? See the JSP FAQ for a discussion of paging.
Same deal. You create a link in the JSP. Sending the binary to the JSP is useless -- there's nothing to do with it there. Whether it's an image or a link, it references a servlet that will stream the binary data in the appropriate format.
It's what the Ranch is here for!
Don't get me started about those stupid light bulbs. |