This week's giveaway is in the OCPJP forum. We're giving away four copies of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) and have Paul Anilprem on-line! See this thread for details.
I am Rajesh Pandey from india delhi .I am sharing one problem that is it possible that we can call a servlet from main class in java. As i know that ejb can be call from main using jndi .But in case of servlet how is it possible.Thanks in advance..
With Best Regards Rajesh Pandey email:-info@sixthquadrant.com mob :--+919811903737 India Delhi
Rajesh, What would you expect to have the servlet do from the main class?
If you want a web page back, you can use a URLConnection to call the servlets URL. If you want to test it, you can pass a mock/dummy request/response in.