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 Not can received value of the bean class 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
Bookmark "Not can received value of the bean class" Watch "Not can received value of the bean class" New topic
Author

Not can received value of the bean class

Gustavo Siqueira
Ranch Hand

Joined: Jun 15, 2011
Posts: 97

Hello to all!

I'm creating large projects for web with Java, using only jsp and servlet. Not know why, but I not I liked of no framework Java. I would like of to use and create my own framework, without to use for instance, spring, struts, so on.
Using my own code, I have total control about my project. There some problem in to create large projects using only jsp and servlet ? However, I'm have problems. Let's go to my problem:

Here is my class that will to connect to database:




For to receive the info of the database, I created other class for received the info:



Receiving by the jsp:



Result:

null

I cannot to receive info by the database.

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61063
    
  66

Please read this JspFaq entry. The time to be using scriptlets in JSP is long passed.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Gustavo Siqueira
Ranch Hand

Joined: Jun 15, 2011
Posts: 97

Then I will to use what ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61063
    
  66

Find a modern reference for JSP which cover the JSTL (JSP Standard Tag Library) and the EL (Expression Language). Scriptlets have been discredited for 10 years now!
Gustavo Siqueira
Ranch Hand

Joined: Jun 15, 2011
Posts: 97

Using only the class Java, I'm to do right ?
 
Consider Paul's rocket mass heater.
 
subject: Not can received value of the bean class