aspose 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
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: 61772
    
  67

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: 61772
    
  67

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 ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not can received value of the bean class