Re: Need Help w/ MVC and Database Question #2

2002-04-09 Thread Chris Pratt

In a nutshell, Struts is a framework that implements the MVC architecture.
It also comes with a couple of tag libraries, but those are just for
convenience, the framework is really what makes up Struts.  JSTL, on the
other hand, is a collection of Custom Tags that can be used with any
framework (or no framework at all, for that matter).
(*Chris*)

- Original Message -
From: "Tom Kochanowicz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 08, 2002 9:24 PM
Subject: [JSP-INTEREST] Need Help w/ MVC and Database Question #2


> Many thanks to those who responded to my question. I have a second
question
> along the same line (kind of). What is the difference between "struts" and
> "jstl" (java standard tag library)? Is struts designed specifically for
the
> MVC architecture where jstl isn't ?
>
> Sincerely,
>
> Tom Kochanowicz
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Need Help w/ MVC and Database Question #2

2002-04-09 Thread Chen, Gin

Funny you asked, I had the same question.. this is from the Taglibs mailing
list

> Just a curiousity question. What is the advantages of using one over
> the other? For example, alot of the tags seem to be doing the same
> type of tasks. (ex. Foreach versus Iterate). Why would one pick one
> approach over another? -Tim

My impression is that Struts will eventually accommodate the standard
taglib (JSTL) and integrate well with it.  The other taglibs in Jakarta
Taglibs are essentially just separate offerings from Struts, attempting to
address different needs (or similar needs from a different perspective).

--
Shawn Bayern
Author, "JSP Standard Tag Library"  http://www.jstlbook.com
(coming this summer from Manning Publications)

---
This also:

Struts contains several different tag libraries. Some, like the 'logic'
taglib, will most likely be deprecated at some point, in favour of JSTL.
Others, such as the 'html' taglib, integrate more tightly with the Struts
framework, reducing the amount of work you have to do to hook your JSP pages
up to your ActionForm and Action instances.

If you're using Struts as your application framework, then it definitely
makes sense to use the Struts 'html' taglib. It also makes sense to look at
using JSTL for the less Struts related pieces of your pages. The two should
work together without problems.

--
Martin Cooper

-Tim

-Original Message-
From: Tom Kochanowicz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 12:25 AM
To: [EMAIL PROTECTED]
Subject: Need Help w/ MVC and Database Question #2


Many thanks to those who responded to my question. I have a second question
along the same line (kind of). What is the difference between "struts" and
"jstl" (java standard tag library)? Is struts designed specifically for the
MVC architecture where jstl isn't ?

Sincerely,

Tom Kochanowicz

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Need Help w/ MVC and Database Question #2

2002-04-08 Thread Tom Kochanowicz

Many thanks to those who responded to my question. I have a second question
along the same line (kind of). What is the difference between "struts" and
"jstl" (java standard tag library)? Is struts designed specifically for the
MVC architecture where jstl isn't ?

Sincerely,

Tom Kochanowicz

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Need Help w/ MVC and Database

2002-04-08 Thread Mike Duffy

Check out a new Wrox book, "JSP Site Design". It has some very clear
examples.


--- Paul Copeland <[EMAIL PROTECTED]> wrote:
> The JOT Servlets framework supports MVC design approaches and
> includes a
> JDBC ResultSet Iterator class.  The JOT documentation includes
> sample
> source code for a JDBC database query Java Bean. Let me know if you
> need
> help with that.
>
> Paul Copeland, JOT Object Technologies, http://www.jotobjects.com
>
> > > From: Tom Kochanowicz [mailto:[EMAIL PROTECTED]]
> > >
> > > I am trying to do my first project with the MVC
> architecture
> > (not
> > > using
> > > struts yet). The examples I look at in books do not have a
> working
> > example
> > > that actually connects to "any" real database and they only
> show
> > examples
> > > loaded a very small amount of data. Does anyone have a "very
> simple"
> > > example
> > > of a MVC actually retreiveing data from a database (any
> database) OR
> > can
> > > point me to a link that has an example. (yes I tried google).
> >
> > You have a method on a Java class executing... you can use JDBC
> or any
> > O/R mapping tool of your choosing.  It shouldn't be very
> confusing.
> > Just extract the data from the RowSet, build JavaBeans, and hand
> those
> > off as the model to the view layer.
> >
> > It's definitely not a simple example, but the Maverick MVC
> framework
> > provides a *very* comprehensive sample J2EE application using a
> > combination of entity EJBs and direct JDBC access.  It's a
> wiki-like
> > image gallery which is actually being used in the real world.
> >
> > The url for the sample application (the Punk Image Gallery) is
> > http://mav.sourceforge.net/pig.  I highly recommend that anyone
> who is
> > daunted by Struts (which is far more complicated than it should
> be for
> > what it does) should take a look at Maverick:
> > http://mav.sourceforge.net.
> >
> > Good luck,
> > Jeff Schnitzer
> > [EMAIL PROTECTED]
> >
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Need Help w/ MVC and Database

2002-04-08 Thread Paul Copeland

The JOT Servlets framework supports MVC design approaches and includes a
JDBC ResultSet Iterator class.  The JOT documentation includes sample
source code for a JDBC database query Java Bean. Let me know if you need
help with that.

Paul Copeland, JOT Object Technologies, http://www.jotobjects.com

> > From: Tom Kochanowicz [mailto:[EMAIL PROTECTED]]
> >
> > I am trying to do my first project with the MVC architecture
> (not
> > using
> > struts yet). The examples I look at in books do not have a working
> example
> > that actually connects to "any" real database and they only show
> examples
> > loaded a very small amount of data. Does anyone have a "very simple"
> > example
> > of a MVC actually retreiveing data from a database (any database) OR
> can
> > point me to a link that has an example. (yes I tried google).
>
> You have a method on a Java class executing... you can use JDBC or any
> O/R mapping tool of your choosing.  It shouldn't be very confusing.
> Just extract the data from the RowSet, build JavaBeans, and hand those
> off as the model to the view layer.
>
> It's definitely not a simple example, but the Maverick MVC framework
> provides a *very* comprehensive sample J2EE application using a
> combination of entity EJBs and direct JDBC access.  It's a wiki-like
> image gallery which is actually being used in the real world.
>
> The url for the sample application (the Punk Image Gallery) is
> http://mav.sourceforge.net/pig.  I highly recommend that anyone who is
> daunted by Struts (which is far more complicated than it should be for
> what it does) should take a look at Maverick:
> http://mav.sourceforge.net.
>
> Good luck,
> Jeff Schnitzer
> [EMAIL PROTECTED]
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com




Re: Need Help w/ MVC and Database

2002-04-06 Thread Duffey, Kevin

 I would also recommend a very small simple MVC framework I built, called
Theseus, at www.theseus.org. Unfortanately, my job has taken up all my time
so I have not yet been able to complete the web site. I believe the basic
download is 23K or so, and it works very well. It has been used on many
professional sites (so I have heard anyways). I am available via email for
help should any be needed.


-Original Message-
From: Jeff Schnitzer
To: [EMAIL PROTECTED]
Sent: 4/6/2002 10:16 PM
Subject: Re: Need Help w/ MVC and Database

> From: Tom Kochanowicz [mailto:[EMAIL PROTECTED]]
>
> I am trying to do my first project with the MVC architecture
(not
> using
> struts yet). The examples I look at in books do not have a working
example
> that actually connects to "any" real database and they only show
examples
> loaded a very small amount of data. Does anyone have a "very simple"
> example
> of a MVC actually retreiveing data from a database (any database) OR
can
> point me to a link that has an example. (yes I tried google).

You have a method on a Java class executing... you can use JDBC or any
O/R mapping tool of your choosing.  It shouldn't be very confusing.
Just extract the data from the RowSet, build JavaBeans, and hand those
off as the model to the view layer.

It's definitely not a simple example, but the Maverick MVC framework
provides a *very* comprehensive sample J2EE application using a
combination of entity EJBs and direct JDBC access.  It's a wiki-like
image gallery which is actually being used in the real world.

The url for the sample application (the Punk Image Gallery) is
http://mav.sourceforge.net/pig.  I highly recommend that anyone who is
daunted by Struts (which is far more complicated than it should be for
what it does) should take a look at Maverick:
http://mav.sourceforge.net.

Good luck,
Jeff Schnitzer
[EMAIL PROTECTED]


==To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Need Help w/ MVC and Database

2002-04-06 Thread Jeff Schnitzer

> From: Tom Kochanowicz [mailto:[EMAIL PROTECTED]]
> 
> I am trying to do my first project with the MVC architecture
(not
> using
> struts yet). The examples I look at in books do not have a working
example
> that actually connects to "any" real database and they only show
examples
> loaded a very small amount of data. Does anyone have a "very simple"
> example
> of a MVC actually retreiveing data from a database (any database) OR
can
> point me to a link that has an example. (yes I tried google).

You have a method on a Java class executing... you can use JDBC or any
O/R mapping tool of your choosing.  It shouldn't be very confusing.
Just extract the data from the RowSet, build JavaBeans, and hand those
off as the model to the view layer.

It's definitely not a simple example, but the Maverick MVC framework
provides a *very* comprehensive sample J2EE application using a
combination of entity EJBs and direct JDBC access.  It's a wiki-like
image gallery which is actually being used in the real world.

The url for the sample application (the Punk Image Gallery) is
http://mav.sourceforge.net/pig.  I highly recommend that anyone who is
daunted by Struts (which is far more complicated than it should be for
what it does) should take a look at Maverick:
http://mav.sourceforge.net.

Good luck,
Jeff Schnitzer
[EMAIL PROTECTED]

==To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Need Help w/ MVC and Database

2002-04-05 Thread Hans Bergsten

Tom Kochanowicz wrote:

> Hello,
>
> I am trying to do my first project with the MVC architecture (not using
> struts yet). The examples I look at in books do not have a working example
> that actually connects to "any" real database and they only show examples
> loaded a very small amount of data. Does anyone have a "very simple" example
> of a MVC actually retreiveing data from a database (any database) OR can
> point me to a link that has an example. (yes I tried google).


You've been reading the wrong books ;-) I describe an MVC architecture,
using a real database (behind a JavaBeans component) in my JSP book:

   

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Need Help w/ MVC and Database

2002-04-05 Thread Tom Kochanowicz

Hello,

I am trying to do my first project with the MVC architecture (not using
struts yet). The examples I look at in books do not have a working example
that actually connects to "any" real database and they only show examples
loaded a very small amount of data. Does anyone have a "very simple" example
of a MVC actually retreiveing data from a database (any database) OR can
point me to a link that has an example. (yes I tried google).

Sincerely,

Tom K

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com