Additionally, there aren't many other rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
bear JavaRanch Sheriff
Joined: Jan 05, 2007
10qs 4 advice.It is ok but at present i need only a simple procedure to write jsp code for doing operations on database using java beans
You can write the JDBC code in a java class to connect to your DB and place it under WEB-INF/classes. Remember that javabeans dont have a main() method. You have to write the getter and setter methods in the javabean, in which you will be setting those properties which you desire to persist to the DB. When the user submits the fields to be entered, the control has to go to another jsp or a servlet, wherein you will be retrieving those fields with req.getParameter(). Now in the same jsp/servlet you have to use the jsp action <jsp: useBean id="" class=""> and call the setter methods and the method that makes JDBC connection.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com