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 getting string representation from java object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "getting string representation from java object" Watch "getting string representation from java object" New topic
Author

getting string representation from java object

steve kelly
Greenhorn

Joined: Feb 15, 2012
Posts: 25
OK this ones got me scratching my head and I would think its an easy one. I have this chunk of code below. The "getExpandedRows" is working correctly. The "view" is a java viewModel object. Its getting a list of strings. All this works.
My problem is how do I get the actual string value? Right now the alert always pops up as "[Object]" I want the string value from "eachRow" that is in the java object. What am I doing wrong?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60055
    
  65

Showing us the server code for a JavaScript issue isn't very helpful. What's this actually look like once it hits the browser? That's what would be helpful.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting string representation from java object
 
Similar Threads
does excel support utf-8 encoding?
passing xml to jsp/java
using OGNL
How to display dynamic columns in h:dataTable ?
Clear arraylist data in jsp using Ajax