*
The moose likes Servlets and the fly likes servlet program doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet program doubt" Watch "servlet program doubt" New topic
Author

servlet program doubt

sudha javvadi
Ranch Hand

Joined: Mar 23, 2007
Posts: 97
Hi All,

I created html file which accepts an emp number and forwards it to the servlet program which sends emp details to the web browser.When i run the program, i can see the url with the number appended but not the emp record with that number.what may went wrong??Any problem with database connectivity?or servlet program or html program.... I dont know. Pls help

Below is the code.

//FindEmp.html



//FindEmpServlet.java





[BSouther: Added UBB CODE tags]
[ February 19, 2008: Message edited by: Ben Souther ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61770
    
  67

Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extermely hard to read and many people that might be able to help you will just move along. Please read this for more information.

You can go back and change your post to add code tags by clicking the .

Pls help

Also, please use real words when posting to the forums. Abbreviations such as "pls" in place of "please" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

thanks,
bear
JavaRanch sheriff
[ February 19, 2008: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

A lot of things could be wrong.
What are you seeing?

Have you checked your server's logs to see if anything is blowing up?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Herman Schelti
Ranch Hand

Joined: Jul 17, 2006
Posts: 387
hi sudha,

is your servlet-mapping in the web.xml OK?

Herman
sudha javvadi
Ranch Hand

Joined: Mar 23, 2007
Posts: 97
Hi,

Could you tell me how to check server's log. web.xml is fine.

Thanks,
sudha.
Arivazhagan Arutchelvam
Greenhorn

Joined: Feb 19, 2008
Posts: 10
If you are using tomcat then you can find your log files under the folder
Tomcat5.0/logs/

Note: the tomcat version may change
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet program doubt