This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes jsp bean problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

jsp bean problem

mitforu patel
Greenhorn

Joined: Jan 13, 2010
Posts: 11
hii......
I am using eclipse IDE and i am trying a simple application.
this is a simple bean class ....


and a jsp that uses it is :



so i should get 100 as out put .... but i m getting 0...........can any one help me out with this problem?
thank you.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.

You can go back and change your post to add code tags by clicking the button on your post.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Why do you think that it should be 100?
mitforu patel
Greenhorn

Joined: Jan 13, 2010
Posts: 11
i have set the value of x and that value i m calling.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Please do not post the same question more than once. I'm closing this post because the other post has more details.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jsp bean problem