wood burning stoves*
The moose likes Servlets and the fly likes database connectivity and Beans on Java Web Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "database connectivity and Beans on Java Web Server" Watch "database connectivity and Beans on Java Web Server" New topic
Author

database connectivity and Beans on Java Web Server

Advait Chitalia
Greenhorn

Joined: Mar 24, 2001
Posts: 13
Hi!
I am trying to run a JSP site on Java Web Server-- The jsp support is available. But the JSP files which require JDBC connectivity are not running --they give an error as follows:
************
500 Internal Server Error
Java Server Page Translation Error
Error during compilation :
check.java:96: Method setAttribute(java.lang.String, java.lang.String) not found in interface javax.servlet.http.HttpSession.
***********
Also, my beans(java class files) that are stored under 'servlet' directory on the Java Web Server are not working, the beans used to establish a database connection and fetch some data are not able to do so.
Suresh Selvaraj
Ranch Hand

Joined: Nov 14, 2000
Posts: 104
Hi,
With version 2.1 of Servlet API, you may have to use
putValue(String name, Object obj) instead of
setAttribute(String name, Object obj) and getValue(String name) instead of getAttribute(String name).
Regards,
Suresh Selvaraj

Suresh Selvaraj, (author of JQuiz)<br />SCJP2<br /><a href="http://www.decontconsulting.com" target="_blank" rel="nofollow">www.decontconsulting.com</a>
 
 
subject: database connectivity and Beans on Java Web Server
 
Similar Threads
Flex to database
EJB Server Exception
jdbc connection with mysql on unix
Regrading Java Beans
what to do after graduation?