Meaningless Drivel is fun!
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


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
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
Ranch Hand

Joined: Feb 15, 2012
Posts: 47
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: 63334
    
  70

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
 
It's not a secret anymore!