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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply 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: 902
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: 26184
    
  66

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: 26184
    
  66

Punit Jain,
Your post was moved to a new topic.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
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