Hi,

I am totally new to J2EE/EJB and Struts - so perhaps this is the wrong
place to ask. In this case I would like to know where I should ask my
question or what I should've read before again asking silly questions.
:-)

I have to use a Sun One Application Server and a PostGreSQL database for
a project. And I am sure that I want to use Struts because of the whole
MVC thing. I would like to know how I should access data in a
appropriate way. I think I want to use CMP and I am wondering where or
how I should address the database. Do I have to create a JDBC ressource
on the Sun One Application Server or do I have to define a datasource
using Struts DataSource manager?

I thought of something like:


          ------ Controller ------------ Actions
          |    (ActionServlet)              |
          |          |                      |
Client ----          |                      |
          |          |                      |
          |          |                      |
          ------ View (JSPs) - - - - - - Model (Beans) ------ PostGreSQL
DB

And on the Model part of this simple ascii art I think it would be nice
to have something like:

Action ---
         |
         --- business logic bean ---
              (use a facade?)      |
                                   --- data representaion (entity beans)

Is this approach okay? Back to my question stated above: How do I get
the entity  beans "connected" to the database? Is struts independent of
this question? Should I try to do this by reading Sun's AppServer
documentation? ;)

Thanks in regards,

Steffen Gransow

----------------
newbie questioner



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

Reply via email to