Reviews :

Building a sample Web App with STRUTS Part 2 :

We will create "emp" bean which makes easy for us to access individual properties in our jsp page. As seen last time, using NetBeans IDE it is very simple to create this bean. Create new java bean in testapp folder name it as EmpBean, declare three fields , shortname, firstname and lastname. Select these fields in the 'tree view' in the explorer window in NetBeans, right click - to select tools - "Generate r/w property for field". Save and compile the file. This is how the final code will look like:
public class EmpBean extends Object implements java.io.Serializable {
    
   protected String shortname;
   protected String firstname;
   protected String lastname;
    
   /** Getter for property firstname.
    * @return Value of property firstname.
    *
    */
   public java.lang.String getFirstname() {
       return firstname;
   }   
      
   /** Setter for property firstname.
    * @param firstname New value of property firstname.
    *
    */
   public void setFirstname(java.lang.String firstname) {
       this.firstname = firstname;
   }
   
   /** Getter for property lastname.
    * @return Value of property lastname.
    *
    */
   public java.lang.String getLastname() {
       return lastname;
   }
   
   /** Setter for property lastname.
    * @param lastname New value of property lastname.
    *
    */
   public void setLastname(java.lang.String lastname) {
       this.lastname = lastname;
   }
   
   /** Getter for property shortname.
    * @return Value of property shortname.
    *
    */
   public java.lang.String getShortname() {
       return shortname;
   }
   
   /** Setter for property shortname.
    * @param shortname New value of property shortname.
    *
    */
   public void setShortname(java.lang.String shortname) {
       this.shortname = shortname;
   }
   
}

In TestActionHandler add the following import statements:

	import java.sql.*;
	import java.util.ArrayList;
	import javax.sql.*;
	import javax.servlet.ServletContext;
	import javax.servlet.RequestDispatcher;
	import javax.servlet.ServletException;
This will prepare our Action class (TestActionHandler) to write the database access code.

How to Add Java Applets to Your Site

New on the Java Boutique:

New Review:

Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling API boasts simplicity, ease-of-integration, a well-rounded feature set, and it's free!

New Applet:

Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA sequences into three useful formats.

Elsewhere on internet.com:

WebDeveloper Java
Lots of Java information on webdeveloper.com

WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.

ScriptSearch Java
Hundreds of free Java code files to download.

jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.