my dog learned polymorphism*
The moose likes Servlets and the fly likes not able to call the class file? 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 "not able to call the class file?" Watch "not able to call the class file?" New topic
Author

not able to call the class file?

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 980
    
    2
here is my jsp code:



my servlet code to insert into dbs:




here is my class file that is in default/same package in which my servlet is:



Question:-

Why my class file is not calling by my servlet, i mean "hello" is not printed on the browser while i m inserting data, can anyone help me in this please??
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

System.out.println prints to system out which is a console or log file somewhere on your server. It is not the browser.

Also note that it is traditional for class names to begin with an uppercase letter in Java.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

Punit Jain,
Your post was moved to a new topic.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: not able to call the class file?
 
Similar Threads
user authentication and dao
To run a simple servlet in Jboss 5.1.0
web service integration using Netbeans IDE
not able to insert values in ms access database
Hello world ejb3 problem