Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Indexed Properties

 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
The getter & setter in the bean is as under :

I set my index properties in the bean in following way:

And I call the value in JSP as under :

But I keep getting this error...
In Stack trace of Bean..
java.lang.NullPointerException
at webraj.admin.setProductName(Unknown Source)
at webraj.admin.showShop(Unknown Source)...
.....
Whereas I do populate the ResultSet..
!!!
In Stack Trace of JSP
java.lang.NullPointerException
at webraj.admin.getProductName(Unknown Source)
at org.apache.jsp.shop$jsp._jspService(shop$jsp.java:219)


Hope I am clear..
TIA
MB
[ September 24, 2003: Message edited by: Malhar Barai ]
 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anyone...??
 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
still no one...!!!...
Help ME...I am really stuck at this....plzzz..
tia
MB
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where are you storing the bean populted from the result set?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic