Hi,

>1. Where can I find some write-up on JSP recommended design framework i.e.
>how we should design our web application using JSP such that it's logic
>(business process) and presentation (templates) are cleanly separated?

This group is good for starters. Read up in JavaWorld, search for JSP
related topics on the net, look for MVC (Model View Controller) stuff as well.


>2. Which JSP engine should I use?  JSWDK, JRUN, JavaWebServer, iPlanet
>WebServer etc?

We use IIS/JRUN, but JRUN is known to be buggy at times. ServletExec I hear
is very good. I use Orion Application Server for my development machine
because its fast, easy to setup, and supports the latest specs. Its also a
100% java app.

>3. Where else can I find more online tutorials on JSP?

www.servlets.com may have some stuff.

>4. Must we use JavaBeans (components) in JSP i.e. is there such a thing as
>in to not use components (classes) in JSP (passing data from JSP file to
>another)?

This I am not sure about. I know I use JavaBeans to display dynamic
content. The <jsp:useBean> tag is the only tag I know of that allows you to
use java based classes. However, since JSP pages are compiled into
servlets, you can insert Java code in your JSP page. Its not recommended
since it wont separate the logic from the presentation in this manner. Its
very possible JSP engines will support other types of languages in the future.

>5. What about security in JSP?  Is it thru the use of session concept?  How
>can I use it?  Please help me by providing me with some links.

Security, threading, sessions..its the same as servlets. JSP pages are
servlets..you just design them as if they were HTML pages. The JSP engine
compiles them the first time they are accessed into a servlet. It saves you
the trouble of using the PrintWriter method to print a ton of HTML stuff,
creating a bean(s), getting the bean data, etc.

Go for Model 1 (every page is a JSP page, that uses a JavaBean for dynamic
data) over Model 2, if you want something quick and easy to setup and work
with. Model 2 states that all requests go to a single command servlet (or
it could be multiple servlets derived from a specific one) that then does
the logic and forwards the response to the .jsp page to view it. Its job is
to create a bean it stores in the session, and the JSP page uses the bean
to display the dynamic content.



Kevin Duffey
Software Engineer
[EMAIL PROTECTED]

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to