Some teams do try to specialize, but the underlying purpose is
"separation of concerns".

As the website says:  "Web applications based on JavaServer Pages
sometimes commingle database code, page design code, and control flow
code. In practice, we find that unless these concerns are separated,
larger applications become difficult to maintain.

"One way to separate concerns in a software application is to use a
Model-View-Controller (MVC) architecture. The Model represents the
business or database code, the View represents the page design code,
and the Controller represents the navigational code. The Struts
framework is designed to help developers create web applications that
utilize a MVC architecture. "

A key phrase is "larger appilications". For a small five-page
application maintained by a single person, using a MVC design may not
be worth the effort. With a larger application of fifty or five
hundred pages, a MVC design is very much worth the effort.

An interesting example of using a database with Struts is the iBATIS
petstore example.

* http://ibatis.apache.org/javadownloads.html

The SASH-Safari site demonstrates using a Struts/Apache/Spring/Hibernate stack.

* http://ibatis.apache.org/javadownloads.html

I've never, ever used EJBs myself, so I can't be of any help on that score.

-- HTH, Ted.
* http://www.husted.com/struts/

-Ted.


On 9/19/06, Tom Jerry <[EMAIL PROTECTED]> wrote:
what is the actual purpose of struts ? is it that one person will be devoted
to developing beans while the other will be involved in designing ? Would
you please give me a sample appln that uses EJB with Oracle (SQL Plus)
database.. a small one.. I dont know how to start off with it.



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

Reply via email to