0 Replies Latest reply on Oct 4, 2004 9:07 PM by erict2004

    Servlet -> SessionBean(stateless) -> EntityBeans(with pics)

    erict2004

      Hi all,

      I'm looking for some sample code showing a servlet accessing a SessionBean accessing an EntiyBean(s) that contains a jpg or a bmp.

      From what I can tell, one shouldn't directly access entity beans in a servlet. So, should there be a getter and setter in the session bean that accesses the EntiyBean's properties?

      Also, where I'll be allowing the user to upload multiple jpg's or bmp's, should there be any considerations to how these pics are accessed? I.e, if during a session the user would like to see the next page of photos that the user previously uploaded, how should the context be stored - client side, server side or both somehow? And, how should this code look in the sevlet and session beans?

      Thanks,
      Eric