Professional Documents
Culture Documents
Source code:
package Beans; //Beans is the name of the package under which
the beans class file is placed
Save the above code with name MyBean.java and compile the MyBean.java.
Now by running athe above jsp file you can directly access the Bean you just
created and getting the bean property data using it's instance .
5>> Start the Tomcat Server and type the following URL,
http://localhost:8080/examples/jsp/MyBeanTest.jsp
output : Hello
Iam an Indian
By getting this ouput from the above files indicates you succeded in the
Bean usage under Tomcat 6.0+.
Find more at
http://www.NaiduMCA.co.cc and
http://www.docstoc.com/profile/StudentPowerMCA
Access more and Learn more.
Thank you.