Re: Tag List

2003-02-18 Thread Mark R. Diggory
Just to be clear, I was responding to a user with an interest in 
convering the demo example in the Webservices tutorial into JSLT. A very 
specific and small application. We're on the Taglibs listserv. I saw 
several people tell him to use heavier frameworks external to this 
project. I just wanted to provide him with answer he asked for and could 
"easily do" in one JSP page with JSTL.

***

That said, I agree with you on many points. I have no problem with MVC 
itself, I'll look over maverick more to see if I feel the same way about 
it that I do about Struts.

I primarily struggle with the whole issue of having "too much 
configuration" mapping going on.

1.) I have this great Tomcat JSP Servlet Container that works quite 
elegantly. Like an http server, you know what url's are going to lead to 
your JSP's simply by thier location on the filesystem.  Quite nice, easy 
to use. You've got the Context,Session,Request,Response objects to store 
things in when you need to. Its easy to get used to. And you got custom 
tags to push your model back behind the presentation.

2.) Then you have frameworks like struts that introduce another "level" 
of configuration into the picture. You end up with web.xml and struts 
config.xml files in your web application. You end up tracing through 
them trying to setup all this stuff. What if you want to use Cocoon too, 
now you've got a whole other config to deal with on top of your current 
config. ouch... A whole other realm of complexity.

This is all too much for a small application.


Schnitzer, Jeff wrote:
Aside from that, the main problem with pages that submit back to
themselves is that they confuse the hell out of designers.  My designers
would be bewildered by all that business logic, whether it be in tags or
scriptlets.



Granted that is a "pro" for the use of a framework that breaks the 
presentation off of the model. I would never suggest that is not a 
benifit when you have designers to contend with. Or larger applications 
to work with.

...at which point what you have is a lightweight MVC framework.  In
fact, this is pretty much exactly what Maverick does.  It's what Struts
does too, except that Struts does it with 100 times more code...


Yes, and mine does it simply by using a JSP as Controller instead of a 
bunch of servlets and a config file. A simple solution for his request.


Any webapp of a more than trivial nature ends up with a significant
amount of "framework"; it's just a question of whether you use existing
software or craft your own.  That said, I believe frameworks should be
minimalist, modular, and focused on a narrow goal - which is why my
fellow developers and I gave up on Struts, WebWork, etc and wrote
Maverick.


True...

Cheers :-)
Mark




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




RE: Tag List

2003-02-18 Thread Schnitzer, Jeff
> From: Mark R. Diggory [mailto:[EMAIL PROTECTED]]
> 
> Is this kinda what you mean? Are you trying to add the
> search/edit/remove/add functionality to the jsp page? This could
easily
> be captured with forms which submit back to the jsp plus a choose
block
> to designate which operation is being performed. I bet this'll really
> irk those Struts/Maveric MVC folks out there with its use of the JSP
> page as both the Controller and View. But it is relatively easy to
> accomplish using JSTL without such "heavy" MVC frameworks.
> 
> Here is the example:
>
> [...]

If you plan on using JSTL as a programming language, you're going to run
out of rope rather quickly.  Yeah, the basic constructs are there -
assignment, iteration, conditionals - but Java it is not.  What about
file access, or image manipulation, or remote procedure calls, or any of
the 50 million other things people do in their business logic?  After
you write custom tags for all of that what you end up with is an ugly,
untyped, interpreted programming language.  IMHO, in any nontrivial web
application, JSTL is best treated as a templating language.

Aside from that, the main problem with pages that submit back to
themselves is that they confuse the hell out of designers.  My designers
would be bewildered by all that business logic, whether it be in tags or
scriptlets.

> If you want to encapsulate the functions for adding/removing/editing
> the content and not have them in this "View/Controller", you could
> include them from separate JSP's or Servlets. or likewise submit the
> forms directly to those JSP's or Servlets  and then redirect back to
> this jsp once the work was done.

...at which point what you have is a lightweight MVC framework.  In
fact, this is pretty much exactly what Maverick does.  It's what Struts
does too, except that Struts does it with 100 times more code...

> It stays pretty independent and light without too much dependency on
> any particular framework other than the JSP/JSTL tags. Which results
in
> less research and development effort  to accomplish the same task. All
> you need to know is JSP/JSTL.

Any webapp of a more than trivial nature ends up with a significant
amount of "framework"; it's just a question of whether you use existing
software or craft your own.  That said, I believe frameworks should be
minimalist, modular, and focused on a narrow goal - which is why my
fellow developers and I gave up on Struts, WebWork, etc and wrote
Maverick.

Jeff Schnitzer
[EMAIL PROTECTED]
The Maverick MVC Framework:  http://mav.sourceforge.net

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




RE: Tag List

2003-02-18 Thread Shawn Bayern
Just as interesting historical background...

The terms "model 1" and "model 2" actually come from an old version of the
JSP specification that describes two models of web-application
development:  the first model ("model 1") sends requests directly to JSP
pages, whereas the second ("model 2") sends requests to servlets, which
forward to JSP pages as necessary.

Model-View-Controller (MVC) is a design pattern that a "model 2" web
application will often resemble.

Shawn

On Tue, 18 Feb 2003, Schnitzer, Jeff wrote:

> So far the best explanation I have found of "MVC" aka "Model-2" is on
> Sun's site:
> 
> http://developer.java.sun.com/developer/onlineTraining/JSPIntro/contents
> .html#JSPIntro4
> 
> Sun calls the pattern "Model-2", but there is enough similarity to the
> Smalltalk pattern that the term "MVC" has been (arguably
> mis-)appropriated.
> 
> Jeff Schnitzer
> [EMAIL PROTECTED]
> The Maverick MVC Framework:  http://mav.sourceforge.net
> 
> > -Original Message-----
> > From: Scott Taylor [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, February 16, 2003 7:43 AM
> > To: Tag Libraries Users List
> > Subject: Re: Tag List
> > 
> > Thanks I will look at Maverick. Why is Maverick and Struts considerd
> MVC,
> > when the idea of JSP is part of MVC?
> > 
> > Scott
> > 
> > 
> > - Original Message -
> > From: "Schnitzer, Jeff" <[EMAIL PROTECTED]>
> > To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> > Sent: Friday, February 14, 2003 8:19 PM
> > Subject: RE: Tag List
> > 
> > 
> > Yes, if you're using JSTL then you will be a whole lot better off with
> > an "MVC" framework like Struts or Maverick.  I recommend Maverick -
> it's
> > considerably simpler than Struts, yet offers more features.  Also,
> > unlike most other similar frameworks (Struts, WebWork, etc), Maverick
> > never started out with a now-crufty set of specialized set of JSP tags
> -
> > JSTL works great.
> > 
> > The core distribution includes a sample application that uses JSTL.
> > 
> > http://mav.sourceforge.net
> > 
> > Jeff Schnitzer
> > [EMAIL PROTECTED]
> > (yes, I'm the lead developer of Maverick)
> > 
> > > - Original Message -
> > > From: "Scott Taylor" <[EMAIL PROTECTED]>
> > > To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> > > Sent: Friday, February 14, 2003 10:23 AM
> > > Subject: Re: Tag List
> > >
> > >
> > > > Thanks...how about an entry form?
> > > >
> > > > Also, if I want to do JSP's easier are Struts better?
> > > >
> > > > I will get the book though
> > > >
> > > > Thanks
> > > >
> > > > Scott
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Eddie Barna" <[EMAIL PROTECTED]>
> > > > To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> > > > Sent: Friday, February 14, 2003 6:01 PM
> > > > Subject: Re: Tag List
> > > >
> > > >
> > > > > You can pass the value from your search form to the page which
> you
> > > have
> > > > > listed in your email.  For example:  You have a search form with
> a
> > > text
> > > > box
> > > > > titled search
> > > > >
> > > > > Here's what the page that queries the db would look like now
> > > > >
> > > > > > 
> > > > > > SELECT * FROM CD WHERE CDTITLE = ?
> > > > > 
> > > > > > 
> > > > > You can also expand on this by using the OR statement in your
> > query.
> > > For
> > > > > example:
> > > > >
> > > > > > 
> > > > > > SELECT * FROM CD WHERE CDTITLE = ? OR ARTIST = ?
> > > > > 
> > > > > 
> > > > > > 
> > > > >
> > > > > For every condition in your query you must add a 
> tag.
> > > > >
> > > > > Hope this helps.  I really do recomend that you get Shawn
> Bayern's
> > > book
> > > > > titled JSTL in Action.  It explains all this in great detail,
> plus
> > > > > everything else.
> > > > >
> > > > 

RE: Tag List

2003-02-18 Thread Schnitzer, Jeff
So far the best explanation I have found of "MVC" aka "Model-2" is on
Sun's site:

http://developer.java.sun.com/developer/onlineTraining/JSPIntro/contents
.html#JSPIntro4

Sun calls the pattern "Model-2", but there is enough similarity to the
Smalltalk pattern that the term "MVC" has been (arguably
mis-)appropriated.

Jeff Schnitzer
[EMAIL PROTECTED]
The Maverick MVC Framework:  http://mav.sourceforge.net

> -Original Message-
> From: Scott Taylor [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, February 16, 2003 7:43 AM
> To: Tag Libraries Users List
> Subject: Re: Tag List
> 
> Thanks I will look at Maverick. Why is Maverick and Struts considerd
MVC,
> when the idea of JSP is part of MVC?
> 
> Scott
> 
> 
> - Original Message -
> From: "Schnitzer, Jeff" <[EMAIL PROTECTED]>
> To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> Sent: Friday, February 14, 2003 8:19 PM
> Subject: RE: Tag List
> 
> 
> Yes, if you're using JSTL then you will be a whole lot better off with
> an "MVC" framework like Struts or Maverick.  I recommend Maverick -
it's
> considerably simpler than Struts, yet offers more features.  Also,
> unlike most other similar frameworks (Struts, WebWork, etc), Maverick
> never started out with a now-crufty set of specialized set of JSP tags
-
> JSTL works great.
> 
> The core distribution includes a sample application that uses JSTL.
> 
> http://mav.sourceforge.net
> 
> Jeff Schnitzer
> [EMAIL PROTECTED]
> (yes, I'm the lead developer of Maverick)
> 
> > - Original Message -
> > From: "Scott Taylor" <[EMAIL PROTECTED]>
> > To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> > Sent: Friday, February 14, 2003 10:23 AM
> > Subject: Re: Tag List
> >
> >
> > > Thanks...how about an entry form?
> > >
> > > Also, if I want to do JSP's easier are Struts better?
> > >
> > > I will get the book though
> > >
> > > Thanks
> > >
> > > Scott
> > >
> > >
> > > - Original Message -
> > > From: "Eddie Barna" <[EMAIL PROTECTED]>
> > > To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> > > Sent: Friday, February 14, 2003 6:01 PM
> > > Subject: Re: Tag List
> > >
> > >
> > > > You can pass the value from your search form to the page which
you
> > have
> > > > listed in your email.  For example:  You have a search form with
a
> > text
> > > box
> > > > titled search
> > > >
> > > > Here's what the page that queries the db would look like now
> > > >
> > > > > 
> > > > > SELECT * FROM CD WHERE CDTITLE = ?
> > > > 
> > > > > 
> > > > You can also expand on this by using the OR statement in your
> query.
> > For
> > > > example:
> > > >
> > > > > 
> > > > > SELECT * FROM CD WHERE CDTITLE = ? OR ARTIST = ?
> > > > 
> > > > 
> > > > > 
> > > >
> > > > For every condition in your query you must add a 
tag.
> > > >
> > > > Hope this helps.  I really do recomend that you get Shawn
Bayern's
> > book
> > > > titled JSTL in Action.  It explains all this in great detail,
plus
> > > > everything else.
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Scott Taylor" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Friday, February 14, 2003 9:31 AM
> > > > Subject: Tag List
> > > >
> > > >
> > > > > I am trying to find a list of tags to help me modify the CD
Shop
> > Cart
> > > web
> > > > > application from Sun One.
> > > > >
> > > > > For example, how do I insert tags that provide a search form
> (and
> > entry
> > > > > form) rather than simply list everything.
> > > > >
> > > > > Here is what the code looks like so far:
> > > > >
> > > > > <%@page contentType="text/html"%>
> > > > > 
> > > > > CD Catalog List
> > > > > <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
> > > > > <%@ taglib prefix="sql" uri="http://java.s

Re: Tag List

2003-02-17 Thread Mark R. Diggory
No, I just wrote this as a breif example into the email, Some sections 
were not "finished" (ie have ...) I was primarily trying to show a rough 
layout of a jsp that could handle the different conditions that might 
occur in your case example. You'd have to flesh out the sql queries and 
updates.

Therer are some sql:update tags that are left open in the choose block, 
those are probibly causing the nesting error.

Cheers,
Mark


Scott Taylor wrote:
Mark

Am I able to simply overwrite my existing JSP with what you have below?
Because I tried to compile it in Netbeans and got:

ProductList.jsp [-1:-1] End of content reached while more parsing required:
tag nesting error?
Errors compiling ProductList.

Scott

- Original Message -
From: "Mark R. Diggory" <[EMAIL PROTECTED]>
To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
Sent: Sunday, February 16, 2003 9:34 PM
Subject: Re: Tag List




Scott,

Is this kinda what you mean? Are you trying to add the
search/edit/remove/add functionality to the jsp page? This could easily
be captured with forms which submit back to the jsp plus a choose block
to designate which operation is being performed. I bet this'll really
irk those Struts/Maveric MVC folks out there with its use of the JSP
page as both the Controller and View. But it is relatively easy to
accomplish using JSTL without such "heavy" MVC frameworks.

Here is the example:

<%@page contentType="text/html"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql"; %>



<%-- conditional logic and sql manipulation --%>

   
   ... sql tags to support the add request
   

   ... sql tags to support the remove request
   
   
   ... sql tags to support the edit request
   


<%-- query to load the html page contents --%>

   
<%-- EXPAND YOUR QUERY WITH SEARCH TERMS HERE --%>
<%--
use some conditional logic on the request
parameters to deside how the query should
be augmented
   --%>
   
   

   
   
   
   SELECT * FROM CD

   


<%-- page with forms to add/edit/remove the contents --%>

CD Catalog List

 CD Catalog List 


 
 
 

 




 
   ID
   CD Title
   Artist
   Country
   Price
   Command
 


 
   
 


 


 





 



   
   
   
  

   
   
 

Add new entry

  
 
 
 
 
 
 






If you want to encapsulate the functions for adding/removing/editing
the content and not have them in this "View/Controller", you could
include them from separate JSP's or Servlets. or likewise submit the
forms directly to those JSP's or Servlets  and then redirect back to
this jsp once the work was done.



It stays pretty independent and light without too much dependency on
any particular framework other than the JSP/JSTL tags. Which results in
less research and development effort  to accomplish the same task. All
you need to know is JSP/JSTL.



-Mark





Eddie Barna wrote:



You can pass the value from your search form to the page which you have
listed in your email.  For example:  You have a search form with a text


box


titled search

Here's what the page that queries the db would look like now






  SELECT * FROM CD WHERE CDTITLE = ?












You can also expand on this by using the OR statement in your query.  For
example:






  SELECT * FROM CD WHERE CDTITLE = ? OR ARTIST = ?













For every condition in your query you must add a  tag.

Hope this helps.  I really do recomend that you get Shawn Bayern's book
titled JSTL in Action.  It explains all this in great detail, plus
everything else.


- Original Message -
From: "Scott Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 9:31 AM
Subject: Tag List






I am trying to find a list of tags to help me modify the CD Shop Cart


web


application from Sun One.

For example, how do I insert tags that provide a search form (and entry
form) rather than simply list everything.

Here is what the code looks like so far:

<%@page contentType="text/html"%>

CD Catalog List
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql"; %>

 CD Catalog List 



  SELECT * FROM CD




  ID
  CD Title
  Artist
  Country
  Price




  
  
  
  
  
  
  
">
">
">




  
  






Regards

Scott


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





---

Re: Tag List

2003-02-17 Thread Scott Taylor
Mark

Am I able to simply overwrite my existing JSP with what you have below?
Because I tried to compile it in Netbeans and got:

ProductList.jsp [-1:-1] End of content reached while more parsing required:
tag nesting error?
Errors compiling ProductList.

Scott

- Original Message -
From: "Mark R. Diggory" <[EMAIL PROTECTED]>
To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
Sent: Sunday, February 16, 2003 9:34 PM
Subject: Re: Tag List


> Scott,
>
> Is this kinda what you mean? Are you trying to add the
> search/edit/remove/add functionality to the jsp page? This could easily
> be captured with forms which submit back to the jsp plus a choose block
> to designate which operation is being performed. I bet this'll really
> irk those Struts/Maveric MVC folks out there with its use of the JSP
> page as both the Controller and View. But it is relatively easy to
> accomplish using JSTL without such "heavy" MVC frameworks.
>
> Here is the example:
>
> <%@page contentType="text/html"%>
>
> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
> <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql"; %>
>
> url="jdbc:postgresql://localhost:5432/recruitment"
>driver="org.postgresql.Driver"
>user="scott" password="" />
>
> <%-- conditional logic and sql manipulation --%>
> 
> 
> ... sql tags to support the add request
> 
> 
> ... sql tags to support the remove request
> 
> 
> ... sql tags to support the edit request
> 
> 
>
> <%-- query to load the html page contents --%>
> 
> 
> <%-- EXPAND YOUR QUERY WITH SEARCH TERMS HERE --%>
> <%--
>  use some conditional logic on the request
>  parameters to deside how the query should
>  be augmented
> --%>
> 
> 
> 
> 
> 
> 
> SELECT * FROM CD
> 
> 
> 
>
> <%-- page with forms to add/edit/remove the contents --%>
> 
> CD Catalog List
> 
>  CD Catalog List 
>
> 
>   
>   
>   
> 
>   
> 
> 
>
> 
>   
> ID
> CD Title
> Artist
> Country
> Price
> Command
>   
>
> 
>   
> 
>   
>   
>   
> 
>   
> 
> 
> 
> 
>
>  
> 
> 
>   
> 
> Add new entry
> 
>
>   
>   
>   
>   
>   
>   
> 
> 
> 
> 
> 
>
> If you want to encapsulate the functions for adding/removing/editing
> the content and not have them in this "View/Controller", you could
> include them from separate JSP's or Servlets. or likewise submit the
> forms directly to those JSP's or Servlets  and then redirect back to
> this jsp once the work was done.
>
>
>
> It stays pretty independent and light without too much dependency on
> any particular framework other than the JSP/JSTL tags. Which results in
> less research and development effort  to accomplish the same task. All
> you need to know is JSP/JSTL.
>
>
>
> -Mark
>
> >
> >
>
> Eddie Barna wrote:
>
> >You can pass the value from your search form to the page which you have
> >listed in your email.  For example:  You have a search form with a text
box
> >titled search
> >
> >Here's what the page that queries the db would look like now
> >
> >
> >
> >>
> >>SELECT * FROM CD WHERE CDTITLE = ?
> >>
> >>
> >
> >
> >
> >>
> >>
> >>
> >You can also expand on this by using the OR statement in your query.  For
> >example:
> >
> >
> >
> >>
> >>SELECT * FROM CD WHERE CDTITLE = ? OR ARTIST = ?
> >>
> >>
> >
> >
> >
> >
> >>
> >>
> >>
> >
> >For every condition in your query you must add a  tag.
> >
> >Hope this helps.  I really do recomend that you get Shawn Bayern's book
> >titled JSTL in Action.  It explains all this in great detail, plus
> >everything else.
> >
> >
> >- Original Message -
> >From: "Scott Taylor" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Friday, February 14, 2003 9:31 AM
> >Subject: Tag List
> >
> >
> >
> >
> >>I am 

Re: Tag List

2003-02-16 Thread Mark R. Diggory
Scott,

Is this kinda what you mean? Are you trying to add the 
search/edit/remove/add functionality to the jsp page? This could easily 
be captured with forms which submit back to the jsp plus a choose block 
to designate which operation is being performed. I bet this'll really 
irk those Struts/Maveric MVC folks out there with its use of the JSP 
page as both the Controller and View. But it is relatively easy to 
accomplish using JSTL without such "heavy" MVC frameworks.

Here is the example:

<%@page contentType="text/html"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql"; %>


  url="jdbc:postgresql://localhost:5432/recruitment"
  driver="org.postgresql.Driver"
  user="scott" password="" />

<%-- conditional logic and sql manipulation --%>

   
   ... sql tags to support the add request
   
	
   ... sql tags to support the remove request
   
   
   ... sql tags to support the edit request
   


<%-- query to load the html page contents --%>

   
	<%-- EXPAND YOUR QUERY WITH SEARCH TERMS HERE --%>
	<%-- 
use some conditional logic on the request 
parameters to deside how the query should 
be augmented
   --%>
   
   	
	
   
   
   	
   	SELECT * FROM CD
	
   


<%-- page with forms to add/edit/remove the contents --%>

CD Catalog List

 CD Catalog List 


 	
 	
 	
	
 	
	



 
   ID
   CD Title
   Artist
   Country
   Price
   Command
 


 
   
 	
 	
 	
	
 	
	
   
   
   	
	   
	   
   	
   
 

Add new entry

  
 
 
 
 
 
 






If you want to encapsulate the functions for adding/removing/editing
the content and not have them in this "View/Controller", you could
include them from separate JSP's or Servlets. or likewise submit the
forms directly to those JSP's or Servlets  and then redirect back to
this jsp once the work was done.



It stays pretty independent and light without too much dependency on
any particular framework other than the JSP/JSTL tags. Which results in
less research and development effort  to accomplish the same task. All
you need to know is JSP/JSTL.



-Mark

 


Eddie Barna wrote:


You can pass the value from your search form to the page which you have
listed in your email.  For example:  You have a search form with a text box
titled search

Here's what the page that queries the db would look like now

 


   SELECT * FROM CD WHERE CDTITLE = ?
   


 


   

You can also expand on this by using the OR statement in your query.  For
example:

 


   SELECT * FROM CD WHERE CDTITLE = ? OR ARTIST = ?
   



 


   


For every condition in your query you must add a  tag.

Hope this helps.  I really do recomend that you get Shawn Bayern's book
titled JSTL in Action.  It explains all this in great detail, plus
everything else.


- Original Message -
From: "Scott Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 9:31 AM
Subject: Tag List


 

I am trying to find a list of tags to help me modify the CD Shop Cart web
application from Sun One.

For example, how do I insert tags that provide a search form (and entry
form) rather than simply list everything.

Here is what the code looks like so far:

<%@page contentType="text/html"%>

CD Catalog List
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql"; %>

 CD Catalog List 

  url="jdbc:postgresql://localhost:5432/recruitment"
  driver="org.postgresql.Driver"
  user="scott" password="" />


   SELECT * FROM CD



 
   ID
   CD Title
   Artist
   Country
   Price
 


 
   
   
   
   
   
   
   
 ">
 ">
 ">
 

 
   
   
 





Regards

Scott


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



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

 




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




Re: Tag List

2003-02-16 Thread Scott Taylor
Thanks I will look at Maverick. Why is Maverick and Struts considerd MVC,
when the idea of JSP is part of MVC?

Scott


- Original Message -
From: "Schnitzer, Jeff" <[EMAIL PROTECTED]>
To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 8:19 PM
Subject: RE: Tag List


Yes, if you're using JSTL then you will be a whole lot better off with
an "MVC" framework like Struts or Maverick.  I recommend Maverick - it's
considerably simpler than Struts, yet offers more features.  Also,
unlike most other similar frameworks (Struts, WebWork, etc), Maverick
never started out with a now-crufty set of specialized set of JSP tags -
JSTL works great.

The core distribution includes a sample application that uses JSTL.

http://mav.sourceforge.net

Jeff Schnitzer
[EMAIL PROTECTED]
(yes, I'm the lead developer of Maverick)

> - Original Message -
> From: "Scott Taylor" <[EMAIL PROTECTED]>
> To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> Sent: Friday, February 14, 2003 10:23 AM
> Subject: Re: Tag List
>
>
> > Thanks...how about an entry form?
> >
> > Also, if I want to do JSP's easier are Struts better?
> >
> > I will get the book though
> >
> > Thanks
> >
> > Scott
> >
> >
> > ----- Original Message -
> > From: "Eddie Barna" <[EMAIL PROTECTED]>
> > To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> > Sent: Friday, February 14, 2003 6:01 PM
> > Subject: Re: Tag List
> >
> >
> > > You can pass the value from your search form to the page which you
> have
> > > listed in your email.  For example:  You have a search form with a
> text
> > box
> > > titled search
> > >
> > > Here's what the page that queries the db would look like now
> > >
> > > > 
> > > > SELECT * FROM CD WHERE CDTITLE = ?
> > > 
> > > > 
> > > You can also expand on this by using the OR statement in your
query.
> For
> > > example:
> > >
> > > > 
> > > > SELECT * FROM CD WHERE CDTITLE = ? OR ARTIST = ?
> > > 
> > > 
> > > > 
> > >
> > > For every condition in your query you must add a  tag.
> > >
> > > Hope this helps.  I really do recomend that you get Shawn Bayern's
> book
> > > titled JSTL in Action.  It explains all this in great detail, plus
> > > everything else.
> > >
> > >
> > > - Original Message -
> > > From: "Scott Taylor" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Friday, February 14, 2003 9:31 AM
> > > Subject: Tag List
> > >
> > >
> > > > I am trying to find a list of tags to help me modify the CD Shop
> Cart
> > web
> > > > application from Sun One.
> > > >
> > > > For example, how do I insert tags that provide a search form
(and
> entry
> > > > form) rather than simply list everything.
> > > >
> > > > Here is what the code looks like so far:
> > > >
> > > > <%@page contentType="text/html"%>
> > > > 
> > > > CD Catalog List
> > > > <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
> > > > <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql"; %>
> > > > 
> > > >  CD Catalog List 
> > > >  > > >url="jdbc:postgresql://localhost:5432/recruitment"
> > > >driver="org.postgresql.Driver"
> > > >user="scott" password="" />
> > > >
> > > > 
> > > > SELECT * FROM CD
> > > > 
> > > >
> > > > 
> > > >   
> > > > ID
> > > > CD Title
> > > > Artist
> > > > Country
> > > > Price
> > > >   
> > > >
> > > > 
> > > >   
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >   ">
> > > >   ">
> > > >   ">
> > > >   
> > > > 
> > > > 
> > > >   
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > > Regards
> > > >
> > > > Scott
> > > >
> > > >
> > > >

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


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


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




Re: Tag List

2003-02-16 Thread Scott Taylor
Yes I want to enter into the database using a form

Scott


- Original Message -
From: "Eddie Barna" <[EMAIL PROTECTED]>
To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 6:46 PM
Subject: Re: Tag List


> Are you trying to do an entry form that stores the data in the db?  Please
> clarify.
>
> As for Struts:  I am not familiar with those.  I am actually not that
> familiar with JSP itself.  That is why i decided to start with JSTL (it
> makes things easier).  Sorry.
>
> Eddie B.
>
> - Original Message -
> From: "Scott Taylor" <[EMAIL PROTECTED]>
> To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> Sent: Friday, February 14, 2003 10:23 AM
> Subject: Re: Tag List
>
>
> > Thanks...how about an entry form?
> >
> > Also, if I want to do JSP's easier are Struts better?
> >
> > I will get the book though
> >
> > Thanks
> >
> > Scott
> >
> >
> > ----- Original Message -
> > From: "Eddie Barna" <[EMAIL PROTECTED]>
> > To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> > Sent: Friday, February 14, 2003 6:01 PM
> > Subject: Re: Tag List
> >
> >
> > > You can pass the value from your search form to the page which you
have
> > > listed in your email.  For example:  You have a search form with a
text
> > box
> > > titled search
> > >
> > > Here's what the page that queries the db would look like now
> > >
> > > > 
> > > > SELECT * FROM CD WHERE CDTITLE = ?
> > > 
> > > > 
> > > You can also expand on this by using the OR statement in your query.
> For
> > > example:
> > >
> > > > 
> > > > SELECT * FROM CD WHERE CDTITLE = ? OR ARTIST = ?
> > > 
> > > 
> > > > 
> > >
> > > For every condition in your query you must add a  tag.
> > >
> > > Hope this helps.  I really do recomend that you get Shawn Bayern's
book
> > > titled JSTL in Action.  It explains all this in great detail, plus
> > > everything else.
> > >
> > >
> > > - Original Message -
> > > From: "Scott Taylor" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Friday, February 14, 2003 9:31 AM
> > > Subject: Tag List
> > >
> > >
> > > > I am trying to find a list of tags to help me modify the CD Shop
Cart
> > web
> > > > application from Sun One.
> > > >
> > > > For example, how do I insert tags that provide a search form (and
> entry
> > > > form) rather than simply list everything.
> > > >
> > > > Here is what the code looks like so far:
> > > >
> > > > <%@page contentType="text/html"%>
> > > > 
> > > > CD Catalog List
> > > > <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
> > > > <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql"; %>
> > > > 
> > > >  CD Catalog List 
> > > >  > > >url="jdbc:postgresql://localhost:5432/recruitment"
> > > >driver="org.postgresql.Driver"
> > > >user="scott" password="" />
> > > >
> > > > 
> > > > SELECT * FROM CD
> > > > 
> > > >
> > > > 
> > > >   
> > > > ID
> > > > CD Title
> > > > Artist
> > > > Country
> > > > Price
> > > >   
> > > >
> > > > 
> > > >   
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >   ">
> > > >   ">
> > > >   ">
> > > >   
> > > > 
> > > > 
> > > >   
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > > Regards
> > > >
> > > > Scott
> > > >
> > > >
> > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
[EMAIL PROTECTED]
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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




RE: Tag List

2003-02-14 Thread Schnitzer, Jeff
Yes, if you're using JSTL then you will be a whole lot better off with
an "MVC" framework like Struts or Maverick.  I recommend Maverick - it's
considerably simpler than Struts, yet offers more features.  Also,
unlike most other similar frameworks (Struts, WebWork, etc), Maverick
never started out with a now-crufty set of specialized set of JSP tags -
JSTL works great.

The core distribution includes a sample application that uses JSTL.

http://mav.sourceforge.net

Jeff Schnitzer
[EMAIL PROTECTED]
(yes, I'm the lead developer of Maverick)

> - Original Message -
> From: "Scott Taylor" <[EMAIL PROTECTED]>
> To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> Sent: Friday, February 14, 2003 10:23 AM
> Subject: Re: Tag List
> 
> 
> > Thanks...how about an entry form?
> >
> > Also, if I want to do JSP's easier are Struts better?
> >
> > I will get the book though
> >
> > Thanks
> >
> > Scott
> >
> >
> > - Original Message -
> > From: "Eddie Barna" <[EMAIL PROTECTED]>
> > To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> > Sent: Friday, February 14, 2003 6:01 PM
> > Subject: Re: Tag List
> >
> >
> > > You can pass the value from your search form to the page which you
> have
> > > listed in your email.  For example:  You have a search form with a
> text
> > box
> > > titled search
> > >
> > > Here's what the page that queries the db would look like now
> > >
> > > > 
> > > > SELECT * FROM CD WHERE CDTITLE = ?
> > > 
> > > > 
> > > You can also expand on this by using the OR statement in your
query.
> For
> > > example:
> > >
> > > > 
> > > > SELECT * FROM CD WHERE CDTITLE = ? OR ARTIST = ?
> > > 
> > > 
> > > > 
> > >
> > > For every condition in your query you must add a  tag.
> > >
> > > Hope this helps.  I really do recomend that you get Shawn Bayern's
> book
> > > titled JSTL in Action.  It explains all this in great detail, plus
> > > everything else.
> > >
> > >
> > > - Original Message -
> > > From: "Scott Taylor" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Friday, February 14, 2003 9:31 AM
> > > Subject: Tag List
> > >
> > >
> > > > I am trying to find a list of tags to help me modify the CD Shop
> Cart
> > web
> > > > application from Sun One.
> > > >
> > > > For example, how do I insert tags that provide a search form
(and
> entry
> > > > form) rather than simply list everything.
> > > >
> > > > Here is what the code looks like so far:
> > > >
> > > > <%@page contentType="text/html"%>
> > > > 
> > > > CD Catalog List
> > > > <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
> > > > <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql"; %>
> > > > 
> > > >  CD Catalog List 
> > > >  > > >url="jdbc:postgresql://localhost:5432/recruitment"
> > > >driver="org.postgresql.Driver"
> > > >user="scott" password="" />
> > > >
> > > > 
> > > > SELECT * FROM CD
> > > > 
> > > >
> > > > 
> > > >   
> > > > ID
> > > > CD Title
> > > > Artist
> > > > Country
> > > > Price
> > > >   
> > > >
> > > > 
> > > >   
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >   ">
> > > >   ">
> > > >   ">
> > > >   
> > > > 
> > > > 
> > > >   
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > > Regards
> > > >
> > > > Scott
> > > >
> > > >
> > > >

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


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




Re: Tag List

2003-02-14 Thread Eddie Barna
Are you trying to do an entry form that stores the data in the db?  Please
clarify.

As for Struts:  I am not familiar with those.  I am actually not that
familiar with JSP itself.  That is why i decided to start with JSTL (it
makes things easier).  Sorry.

Eddie B.

- Original Message -
From: "Scott Taylor" <[EMAIL PROTECTED]>
To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 10:23 AM
Subject: Re: Tag List


> Thanks...how about an entry form?
>
> Also, if I want to do JSP's easier are Struts better?
>
> I will get the book though
>
> Thanks
>
> Scott
>
>
> - Original Message -
> From: "Eddie Barna" <[EMAIL PROTECTED]>
> To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> Sent: Friday, February 14, 2003 6:01 PM
> Subject: Re: Tag List
>
>
> > You can pass the value from your search form to the page which you have
> > listed in your email.  For example:  You have a search form with a text
> box
> > titled search
> >
> > Here's what the page that queries the db would look like now
> >
> > > 
> > > SELECT * FROM CD WHERE CDTITLE = ?
> > 
> > > 
> > You can also expand on this by using the OR statement in your query.
For
> > example:
> >
> > > 
> > > SELECT * FROM CD WHERE CDTITLE = ? OR ARTIST = ?
> > 
> > 
> > > 
> >
> > For every condition in your query you must add a  tag.
> >
> > Hope this helps.  I really do recomend that you get Shawn Bayern's book
> > titled JSTL in Action.  It explains all this in great detail, plus
> > everything else.
> >
> >
> > - Original Message -
> > From: "Scott Taylor" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, February 14, 2003 9:31 AM
> > Subject: Tag List
> >
> >
> > > I am trying to find a list of tags to help me modify the CD Shop Cart
> web
> > > application from Sun One.
> > >
> > > For example, how do I insert tags that provide a search form (and
entry
> > > form) rather than simply list everything.
> > >
> > > Here is what the code looks like so far:
> > >
> > > <%@page contentType="text/html"%>
> > > 
> > > CD Catalog List
> > > <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
> > > <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql"; %>
> > > 
> > >  CD Catalog List 
> > >  > >url="jdbc:postgresql://localhost:5432/recruitment"
> > >driver="org.postgresql.Driver"
> > >user="scott" password="" />
> > >
> > > 
> > > SELECT * FROM CD
> > > 
> > >
> > > 
> > >   
> > > ID
> > > CD Title
> > > Artist
> > > Country
> > > Price
> > >   
> > >
> > > 
> > >   
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >   ">
> > >   ">
> > >   ">
> > >   
> > > 
> > > 
> > >   
> > > 
> > > 
> > > 
> > > 
> > >
> > > Regards
> > >
> > > Scott
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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




Re: Tag List

2003-02-14 Thread Scott Taylor
Thanks...how about an entry form?

Also, if I want to do JSP's easier are Struts better?

I will get the book though

Thanks

Scott


- Original Message -
From: "Eddie Barna" <[EMAIL PROTECTED]>
To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 6:01 PM
Subject: Re: Tag List


> You can pass the value from your search form to the page which you have
> listed in your email.  For example:  You have a search form with a text
box
> titled search
>
> Here's what the page that queries the db would look like now
>
> > 
> > SELECT * FROM CD WHERE CDTITLE = ?
> 
> > 
> You can also expand on this by using the OR statement in your query.  For
> example:
>
> > 
> > SELECT * FROM CD WHERE CDTITLE = ? OR ARTIST = ?
> 
> 
> > 
>
> For every condition in your query you must add a  tag.
>
> Hope this helps.  I really do recomend that you get Shawn Bayern's book
> titled JSTL in Action.  It explains all this in great detail, plus
> everything else.
>
>
> - Original Message -
> From: "Scott Taylor" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, February 14, 2003 9:31 AM
> Subject: Tag List
>
>
> > I am trying to find a list of tags to help me modify the CD Shop Cart
web
> > application from Sun One.
> >
> > For example, how do I insert tags that provide a search form (and entry
> > form) rather than simply list everything.
> >
> > Here is what the code looks like so far:
> >
> > <%@page contentType="text/html"%>
> > 
> > CD Catalog List
> > <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
> > <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql"; %>
> > 
> >  CD Catalog List 
> >  >url="jdbc:postgresql://localhost:5432/recruitment"
> >driver="org.postgresql.Driver"
> >user="scott" password="" />
> >
> > 
> > SELECT * FROM CD
> > 
> >
> > 
> >   
> > ID
> > CD Title
> > Artist
> > Country
> > Price
> >   
> >
> > 
> >   
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >   ">
> >   ">
> >   ">
> >   
> > 
> > 
> >   
> > 
> > 
> > 
> > 
> >
> > Regards
> >
> > Scott
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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




Re: Tag List

2003-02-14 Thread Eddie Barna
You can pass the value from your search form to the page which you have
listed in your email.  For example:  You have a search form with a text box
titled search

Here's what the page that queries the db would look like now

> 
> SELECT * FROM CD WHERE CDTITLE = ?

> 
You can also expand on this by using the OR statement in your query.  For
example:

> 
> SELECT * FROM CD WHERE CDTITLE = ? OR ARTIST = ?


> 

For every condition in your query you must add a  tag.

Hope this helps.  I really do recomend that you get Shawn Bayern's book
titled JSTL in Action.  It explains all this in great detail, plus
everything else.


- Original Message -
From: "Scott Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 9:31 AM
Subject: Tag List


> I am trying to find a list of tags to help me modify the CD Shop Cart web
> application from Sun One.
>
> For example, how do I insert tags that provide a search form (and entry
> form) rather than simply list everything.
>
> Here is what the code looks like so far:
>
> <%@page contentType="text/html"%>
> 
> CD Catalog List
> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
> <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql"; %>
> 
>  CD Catalog List 
> url="jdbc:postgresql://localhost:5432/recruitment"
>driver="org.postgresql.Driver"
>user="scott" password="" />
>
> 
> SELECT * FROM CD
> 
>
> 
>   
> ID
> CD Title
> Artist
> Country
> Price
>   
>
> 
>   
> 
> 
> 
> 
> 
> 
> 
>   ">
>   ">
>   ">
>   
> 
> 
>   
> 
> 
> 
> 
>
> Regards
>
> Scott
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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