This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages 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: 8933
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