It seems to me that unless you are using custom tags or want to develop
them to define a templating engine. Someone like the one in the J2EE
blueprints and therefore reuse pages etc. Moving to JSP won't buy you
anything. It certainly won't help you get data from the database any
better and IMHO that isn't the job of JSP anyway. You could use JSP to
plug in bean objects that are populated from a servlet. So create your
beans your Data containers in a servlet and then use RequestDispatcher and
throw these across to JSP. This will save you a lot of printlns ... As for
form parameters the same thing with servlets is available in JSP.

Take a good look at Jakarta struts for a way to bind form parameters to
data beans.

On Fri, 3 Nov 2000, Eric wrote:

> 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

Reply via email to