struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Duske" <>
Subject RE: img store/retrieve
Date Fri, 06 Dec 2002 10:12:14 GMT

> This is a simple CRUD page, but the entity has an image property.
> I  retrieve
> the View Object from the RDBMS and populate the ActionForm from it.
> I think that the image should not be stored in the VO. Am I right?

What does CRUD mean? What does VO mean?

> Where should I store the image if I have to display it on the
> page? I cannot
> store in request, as the browser creates a new request for each
> img on the
> page afaik. I'm not keen on storing it in the session since I
> prefer to store
> small amount of data in session scope.

Maybe in a temp directory within your webapp?

> What is the best practice implementing this? Or the suggested
> one? Or at least
> the least painful one?

My suggestion: Don't store images in a database if you can avoid it. In most
cases it's messy, slow, and really bad practice.

Best regards

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message