Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Professional JSP Chapter 5


Message #1 by "Sasi" <sasisundar@h...> on Sun, 8 Oct 2000 18:21:13 +0100
Hi All!

Thanks for your suggestions. Now, I am trying one more option. In the
example program, Catalog.java is filling the catalog with some fixed
values. Instead I am trying to load the data from my FORM [3 hidden
variables].

I am doing this using the foll. method:

 1. In my Product.Jsp program I am listing out all the products available
by Product Category. I am reading the data from Oracle 8i Database.
 2. When the user clicks on the 'Add to Shopping Cart' button, I am
calling Scart.Jsp program which in turn calls the Catalog bean.
3. In the Catalog bean I am trying to add this selected Product into it,
so during checkout I will know all the products that the user has
selected.

The FORM [hidden] variables are passing the value to the Scart.jsp
properly [using request.getParameter method]. When I give the same method
in the Catalog bean the values are getting lost and I am getting
NullPointerException error.

Any suggestion please.  

tks

  Return to Index