hi all,
i am new to the JSP technology...and i have doubts about how to
proceed in writing JSP pages:
is it better to use beans or use normal classes that i instantiate in the
JSP page???
i mean that
it is better to do like this:
<%@ page import ='mypackage.MyBean' %>
<jsp:useBean id='mybean' class='mypackage.mybean'>
...
...
<% if request .....%>
mybean.doSomeWork()
..
or is it better to do like this:
<%@ page import='mypackage.*' %>
<% MyBean bean = new MyBean(); %>
<% if request..... %>
bean.doSomeWork()
????
i heard that there was a prev version of JSP..
all the tutorials that i have read use the first approach...but i faced also
code like the second approach..
can anyone explain me which is better and why???
regards
marco
===========================================================================
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