thanks for ur suggestions peter sir.
I have another problem sir. I am creating a jsp application where I am using a custom class for sending emails. THe java class is working fine. but when i am importing it's package using page directive and creeating an object of it,then Tomcat is reporting an exception at this very line where it's instance is created..
I have placed the package in the WEB-INF/classes directory of webapps ,other common classes are working fine but this class SendMail is not working. Any suggestions are welcome.THANKS IN ADVANCE