You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Tom Jerry <to...@gmail.com> on 2006/09/19 09:45:15 UTC

struts - JDBC - EJB

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.

Re: struts - JDBC - EJB

Posted by Ted Husted <hu...@apache.org>.
On 9/19/06, Ted Husted <hu...@apache.org> wrote:
> The SASH-Safari site demonstrates using a Struts/Apache/Spring/Hibernate stack.
>
> * http://ibatis.apache.org/javadownloads.html

Oops, the clipboard stuck: * http://swik.net/SASH-Safari

-T.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: struts - JDBC - EJB

Posted by Ted Husted <hu...@apache.org>.
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 <to...@gmail.com> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org