File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 8898

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
 
Similar Threads
Struts1: Nested/Indexed properties issue
Cannot get Struts 2 to Work
JPA returning collection of type PersistentBag instead of ArrayList
shopping cart prob
populating drop down list from database table