It's not a secret anymore!
The moose likes Java in General and the fly likes set Value in attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "set Value in attribute " Watch "set Value in attribute " New topic

set Value in attribute

Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 646

I am setting an atribute as an integer. After that I retrieve that value from my JSP, and after that using I try to send it to Google Charts but it doesn't shows my value but when I use some thing like ['Browser', 1] it works.

Any idea?

Winston Gutkowski

Joined: Mar 17, 2011
Posts: 8837

Angus Ferguson wrote:Any idea?


Why?: because you haven't given us enough information.


Bats fly at night, 'cause they aren't we. And if we tried, we'd hit a tree -- Ogden Nash (or should've been).
Articles by Winston can be found here
Steve Luke

Joined: Jan 28, 2003
Posts: 4181

More details please. What is document? What type does getElementById() return? What happens when there is no element with that ID?

Paul Clapham

Joined: Oct 14, 2005
Posts: 19853

This code looks like Javascript, but the original post mentions JSP.

I see that the OP has been given a link (in another thread) to the standard article about the lifecycle of a web application's request and how JSP and Javascript can't communicate the way you might guess if you didn't know anything about that, so instead of moving the thread to the Javascript forum, I'm just going to leave it here to die.
I agree. Here's the link:
subject: set Value in attribute
It's not a secret anymore!