[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[Home]
Re: How do you write a quick bean for JSP servlets??
- To: gnujsp@gjt.org
- Subject: Re: How do you write a quick bean for JSP servlets??
- From: Martin Krivosik <krivosik@vuje.sk>
- Date: Tue, 09 Feb 1999 10:59:18 +0100
- Organization: vuje Trnava a.s., Slovakia
Hi,
>> I am just starting up with GNUJSP, and want to get some simple
>> "soup-to-nuts" examples (template, servlet, bean code) of a javaservlet that
>> uses JDBC and the GNUJSP for HTML display....
>>
>> In particular, I want to see the java bean code that is used to interface
>> between the servlet and JSP template....Can anyone provide insight on how to
>> write a quick bean to accomplish the servlet -> JSP template
>> interaction? ---OR do I need to jump into complicated bean development
>> books?
>
>It is not so complicated. A bean is nothing more than a class that
>implements java.io.Serializable. Methods to access properties should
>table the form of
>
>public void setNameOfProperty(datatype value)
>public datatype getNameOfProperty
>
>Finally, to instantiate a bean use the instantiate method in the
>java.beans.Beans class.
I would like som simple or more more sofisticated example too.
Isn't somewhere on the Net tutorial or a bit more complex example
how to get work jsp-bean-servlet?
Examples in jsp Specification 0.91 are to simple.
I need functional source to better understand it.
I thing it is missing in gnujsp distribution.
martin
--
Martin Krivosik
VUJE Trnava a.s.
(Nuclear Power Plants Research Institute Trnava Inc.)
(The division of information technologies)
Okruzna 5, 918 64 Trnava
Slovakia