Great example David.

FYI, I have used JavaBeans quite a bit as data classes for jsp's to render.
It is a good separation of the model/view.

Mike

-> -----Original Message-----
-> From: David Pinnington [mailto:[EMAIL PROTECTED]]
-> Sent: Tuesday, June 12, 2001 1:16 PM
-> To: [EMAIL PROTECTED]
-> Subject: Re: Jsp + Beans...
->
->
-> yes that is possible.
->
-> you should note that JavaBeans used from JSPs would *NOT*
-> normally have
-> any GUI portion - i.e. you would simply be calling the get /
-> set methods
-> on properties (using the JavaBean 'pattern' - and i use the
-> word pattern
-> lightly!) and calling methods on the beans.
->
-> For an AWT app most beans tend to be visual (but they don't
-> have to be).
->
-> If you want to use the same set of beans for both i suggest
-> you be very
-> careful to design your presentation layer such that you
-> actually have 2
-> layers:
->
-> - a layer for actually doing the display (this would either
-> be JSPs or
-> AWT depending on which app you want to build) - and this
-> layer would be
-> different for AWT / JSP.
->
-> - a layer of JavaBeans to 'support' the actual presentation
-> (AWT / Jsp)
-> layer - it is this piece you would re-use as per your
-> original question.
->
-> davep
->
-> Bayu Nurcahyono wrote:
-> >
-> > Hello All...
-> >
-> > I'm New in Jsp and this mailing List... First I want to
-> Introduce my self,
-> > I'm bayu from Indonesia.
-> >
-> > I want to design beans so it can be used for =
-> >
-> >         1.      jsp with : <jsp:useBean id=""/>
-> >         2.      awt app for win32 ..
-> >
-> > Is that possible ?
-> >
-> > Thanks
-> > Bayu
-> >
-> >
-> =============================================================
-> ==============
-> > To unsubscribe: mailto [EMAIL PROTECTED] with body:
-> "signoff JSP-INTEREST".
-> > For digest: mailto [EMAIL PROTECTED] with body: "set
-> JSP-INTEREST DIGEST".
-> > 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".
-> For digest: mailto [EMAIL PROTECTED] with body: "set
-> JSP-INTEREST DIGEST".
-> 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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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