I use collection to move the db Result Set from the database to a JSP
and then enumerate through the collection. My move to JSP was very
simple, I can't stand writing HTML or all those println's. See my 19-
October post. This should work regardless if you are using a Bean or a
Servlet.
Additionally, I write the JSP with just enough HTML to test with then
turn it over to a Designer/HTML coder to make the page "pretty".
Naturally, you may continue to produce HTML from println's in your
servlet .... but why?
----- Original Message -----
From: Eric <[EMAIL PROTECTED]>
Date: Friday, November 3, 2000 4:36 pm
Subject: jsp worth it for unknown form parameters?
> I do a _lot_ of work with servlets and many of them use some simple
> HTML templates to output variables to the user by simply replacing
> HTML comments. Lately, these variables are coming from a database and
> I'm trying to decide whether switching over to JSP is worth it for
> me. I'm especially concerned with being able to accept form
> parameters whose names I don't necessarily know. For example, I often
> have tables of form parameters that have names like "MyParam1",
> "MyParam2", etc. and I use a simple loop in a servlet to read these
> in. Is there a way to design a bean to accept parameters like this?
> What about nested ones (MyParam1Sub1, MyParam1Sub2)? Also, is there
> an easy way to display things from a database with jsp's?
>
> thanks,
> eric.
>
>
========================================================================
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets