This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
In my jsp I am calling a function in.js file and passing it an integer which I recieve in my jsp.
here are the two lines <html:hidden name="addressMaintenanceForm" property="location.locationId" /> on--click="loadLocationLocatorSequence('<bean:write name="addressMaintenanceForm" property="location.locationId" />');"
now instead of location.locationId (where locationId is primitive integer) I want to send location.locationKey (where locationKey is an object). Is there a way that I can send this objects String form like using toString (). I have a well written toString() method. Thanks Imad
By the way, yours was sme of the most unreadable code I've seen posted in this forum. You'll generally find that people are more willing to help if you take the time to make sure that your code is well-formatted and readable.
Muhammad Imad Qureshi
Joined: Sep 13, 2005
Thanks for your help. I am sorry when I was posting the code it dint let me post because of onClick and also askedme to change all < by <. Thats why it was too unreadable. But thanks for your advice. I will definitely check if bean:write automatically calls its tostring method. Thanks again Imad