aspose file tools*
The moose likes JSP and the fly likes Indexed Properties Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Indexed Properties" Watch "Indexed Properties" New topic
Author

Indexed Properties

Malhar Barai
Author
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
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
SOA & Java Book
Malhar Barai
Author
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
anyone...??
Malhar Barai
Author
Ranch Hand

Joined: Aug 17, 2001
Posts: 399
still no one...!!!...
Help ME...I am really stuck at this....plzzz..
tia
MB
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Where are you storing the bean populted from the result set?


Groovy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Indexed Properties