File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Indexed Properties

 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anyone...??
 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where are you storing the bean populted from the result set?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic