hehe.. ok.. let's add some context..

Till now I was using a servlet to serve to the web images stored
in a database. To access the database I had the myDAO
object in the applicationContext and so it was accessible by
the servlet and actions.

Now I have added Spring to the game, and the myDAO object is
no longer in the applicationContext, as it is managed by Spring.

All my actions now extends a base class that has a setMyDAO
method, and so they get access to the myDAO object.

But what about the servlet? It will not be injected by Spring.

What is the solution?

Thank you.

Best regards.

--
Robi.



Roberto Nunnari wrote:
Hello.

What is the best way to serve images stored in database in Struts2?

action, resultType, or servlet?

Thank you.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to