O'Reilly logo

Web Technology: Theory and Practice by M. Srinivasan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6.14 A JSP EXAMPLE

There are various ways to fetch and set information through JSP. Let us consider an example which highlights various ways to retrieve information.

 

UserBee - Index.jsp—Form to accept user name

 

 

Fig. 6.10 UserBee - Index.jsp—Form to accept user name

 

It accepts a user name for which to snoop into. The control passes on to LoginServlet (line-12). Let's take a look into that Servlet.

Only the doPost method is included in the code listing shown in Figure 6.11, since other methods are not used. Nothing unusual about the code listing except that there is a reference to a Java Class (line 6), which is a Java Bean class. A Java Bean is a plain java class conforming to some ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required