Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not can received value of the bean class

 
Gustavo Siqueira
Ranch Hand
Posts: 97
C++ Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64970
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read this JspFaq entry. The time to be using scriptlets in JSP is long passed.
 
Gustavo Siqueira
Ranch Hand
Posts: 97
C++ Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then I will to use what ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64970
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 97
C++ Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using only the class Java, I'm to do right ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic