How to use Java Beans in JSP?

How to use Java Beans in JSP?

Hi,

I have developed a employee bean in Java:

public class Employee{

private String name;
private String code;

.....

}

Please tell me how I can use Employee Java bean in JSP page?

Thanks

View Answers

December 25, 2010 at 4:59 PM

Hi,

Read at Java Bean in JSP.

Thanks


December 25, 2010 at 5:09 PM

hi dude your qus is not clear any way iam giving so sol find it.....this code is to display the employee table vaues.. u hav to write the code for db connection in dbconnection method in javabean class and also for dbvalues to get the values..try once if u not i will give u complete prg...

<%sample.getdbconnection();%> <% sample.getdavalues();%> //dbconnection() and dbvalues() are methods in javabean classprint("code sample");

Ads









Related Tutorials/Questions & Answers:
how to create own tld and use it in jspx file
how to create own tld and use it in jspx file
Advertisements
How to use Java Beans in JSP?
JSP1
JSP2
ModuleNotFoundError: No module named 'jspp'
ModuleNotFoundError: No module named 'JSPy'
how to write jsps and databasetables,umldiagrams in fuelmanagement system project
How to display data in jsp from dao using java beans?
How to access Enterprise Beans
Maven dependency for org.springframework - spring-beans version 5.2.14.RELEASE is released. Learn to use spring-beans version 5.2.14.RELEASE in Maven based Java projects
Maven dependency for org.springframework - spring-beans version 5.2.15.RELEASE is released. Learn to use spring-beans version 5.2.15.RELEASE in Maven based Java projects
Maven dependency for org.springframework - spring-beans version 5.3.4 is released. Learn to use spring-beans version 5.3.4 in Maven based Java projects
Maven dependency for org.springframework - spring-beans version 5.3.5 is released. Learn to use spring-beans version 5.3.5 in Maven based Java projects
Maven dependency for org.springframework - spring-beans version 5.3.7 is released. Learn to use spring-beans version 5.3.7 in Maven based Java projects
Maven dependency for org.springframework - spring-beans version 5.3.8 is released. Learn to use spring-beans version 5.3.8 in Maven based Java projects
Maven dependency for org.springframework - spring-beans version 5.2.16.RELEASE is released. Learn to use spring-beans version 5.2.16.RELEASE in Maven based Java projects
Maven dependency for org.springframework - spring-beans version 4.3.27.RELEASE is released. Learn to use spring-beans version 4.3.27.RELEASE in Maven based Java projects
Maven dependency for org.springframework - spring-beans version 4.3.28.RELEASE is released. Learn to use spring-beans version 4.3.28.RELEASE in Maven based Java projects
Maven dependency for org.springframework - spring-beans version 4.3.30.RELEASE is released. Learn to use spring-beans version 4.3.30.RELEASE in Maven based Java projects
Maven dependency for org.springframework - spring-beans version 5.0.16.RELEASE is released. Learn to use spring-beans version 5.0.16.RELEASE in Maven based Java projects
Maven dependency for org.springframework - spring-beans version 5.0.18.RELEASE is released. Learn to use spring-beans version 5.0.18.RELEASE in Maven based Java projects
Maven dependency for org.springframework - spring-beans version 5.0.19.RELEASE is released. Learn to use spring-beans version 5.0.19.RELEASE in Maven based Java projects
Maven dependency for org.springframework - spring-beans version 5.1.13.RELEASE is released. Learn to use spring-beans version 5.1.13.RELEASE in Maven based Java projects
Maven dependency for org.springframework - spring-beans version 5.1.14.RELEASE is released. Learn to use spring-beans version 5.1.14.RELEASE in Maven based Java projects
Maven dependency for org.springframework - spring-beans version 5.1.16.RELEASE is released. Learn to use spring-beans version 5.1.16.RELEASE in Maven based Java projects
Maven dependency for org.springframework - spring-beans version 5.1.17.RELEASE is released. Learn to use spring-beans version 5.1.17.RELEASE in Maven based Java projects
Maven dependency for org.springframework - spring-beans version 5.1.19.RELEASE is released. Learn to use spring-beans version 5.1.19.RELEASE in Maven based Java projects
Maven dependency for org.springframework - spring-beans version 5.1.20.RELEASE is released. Learn to use spring-beans version 5.1.20.RELEASE in Maven based Java projects
Maven dependency for org.springframework - spring-beans version 5.2.4.RELEASE is released. Learn to use spring-beans version 5.2.4.RELEASE in Maven based Java projects
Maven dependency for org.springframework - spring-beans version 5.2.5.RELEASE is released. Learn to use spring-beans version 5.2.5.RELEASE in Maven based Java projects

Ads