• Post Reply Bookmark Topic Watch Topic
  • New Topic

Request in Java Class

 
Joseph Smithern
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my Tomcat 4.1.27 container (with no struts), I am trying to pass a form value to a JavaBean but I keep getting NullPointerException on the web page when I call the JavaBean.

Here is my attempt and need advise on the best way to fetch the lastname value in my below Java class:

Please advise.
 
Bupjae Lee
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you didn't initialize request field in the constructor.
[ April 03, 2008: Message edited by: Bupjae Lee ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!