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