This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes IllegalArgumentException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "IllegalArgumentException " Watch "IllegalArgumentException " New topic
Author

IllegalArgumentException

Muhammad Imad Qureshi
Ranch Hand

Joined: Sep 13, 2005
Posts: 238
Hi

I am getting following exception in my jsp.

Servlet.service() for servlet action threw exception
java.lang.IllegalArgumentException: Null property value for 'locationKey'

I get this exception when I click "save" button on my jsp. locationKey itself is an object of class "LocationKey" and a member of class "Location".

this is how I pass it to jsp

<html:hidden name="addressMaintenanceForm" property="location.locationKey" />
<html:hidden name="addressMaintenanceForm" property="location.locationKey.phoneNumber.number" />
<html:hidden name="addressMaintenanceForm" property="location.locationKey.phoneNumber.exchange" />
<html:hidden name="addressMaintenanceForm" property="location.locationKey.phoneNumber.areaCode" />
<html:hidden name="addressMaintenanceForm" property="location.locationKey.phoneNumber.extension" />

phoneNumber is an object and member of LocationKey and then phoneNumber has strings "number", exchange, areaCode and extension.

Can anyone please help.
Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: IllegalArgumentException
 
Similar Threads
save indexed properties
[SPRING] Java Bean doesn't get prepared
html:hidden
getting value in logic iterate
example Code from Spring In Action