Hi KAL,
Actually a bean is a class. The only differenc e being that a bean has a
standard interface and a standard structure. The best thing to do is to go
to the java.sun site and look at the docs for the JavaBean Architecture
documentation.
Basically a bean has getter and setter methods for each property in a jsp
file and the bean also has a class constructor which takes no arguments.
Hope this helps
GH.
----- Original Message -----
From: "kal inuganti" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 23, 2000 11:41 AM
Subject: offtopic:HTML/JSP/Bean/XML
> Hi all
>
> Happy Thanksgiving!
>
> I have a small problem at hand and wanted to check if anybody could help
me
> with it. I have a html form that submits a string to a JSP. The JSP then
> calls a BEAN that needs to check if that particular string is found in a
> particular XML file and then return the result to the HTML throught the
jsp.
> I have a java class file that can do the search locally but I am not sure
of
> how to convert this class file to a bean. can someone tell me how I can go
> about converting this class to bean.
>
> This class takes the XML file name as a parameter and then it parses the
XML
> file. After that it just needs to do String comparison if this text
exists.
> (in my example, the user input from the HTML form can be compared with the
> string kal and check if it works.)
>
> It would be great if someone can provide some tips regarding Java Beans.
>
> My Java file (Students.java)is located at
> http://24.181.167.18:8080/Students.java. You guys can look it up from
there
> and suggest how I can convert this into a bean.
>
> Thank you,
> Kalyan
>
>
____________________________________________________________________________
_________
> Get more from the Web. FREE MSN Explorer download :
http://explorer.msn.com
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html