How to use Java Beans in JSP?

Ads
 

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 use Java Beans in JSP?
how to create own tld and use it in jspx file
Advertisements
how to create own tld and use it in jspx file
JSP1
JSP2
How to use charAt() method in Java?
How to create and use Array in Java?
How to display data in jsp from dao using java beans?
how to use marathi keyboard in java programming?
how to use foreign key in java
ModuleNotFoundError: No module named 'jspp'
ModuleNotFoundError: No module named 'JSPy'
How to access Enterprise Beans
how to write jsps and databasetables,umldiagrams in fuelmanagement system project
How can i Change Button Label Value Randomly in VIRTUAL KEYBOARD using JAVA or Net Beans ???
How can i Change Button Label Value Randomly in VIRTUAL KEYBOARD using JAVA or Net Beans ???
how to use Excel Templet to write excel file using java.
how to use Excel Template to write excel file using java
Pojo and java beans
How I get a variable from java script to use it in the scriptlet of jsp.
how to make use of jerry's java image processing filter in java application?is there anyway to do this?
how to use javascript in jsf - Java Server Faces Questions
java beans - JSP-Servlet
How to use Java?
How to use for loop in jsp
how to use setAttribute
How to use Servlet and Ajax?
How to use Apache POI?
How to use AT Commands with J2ME?
How do I use JGraph to create a MST(minimum spanning tree) using java?
how to use calender in php

Ads