• Post Reply Bookmark Topic Watch Topic
  • New Topic

Full Path of Servlet

 
Manikandan Jayaraman
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Based on the following information, please construct the full path for the servlet. Please select one correct answer.

docbase = c:/temp/
context path = /test
alias name = MyMail
servlet-name = com.jiris.common.util.MailServlet
url-pattern = /mail/*

A : c:/temp/mail/com/jiris/common/util/MailServlet.class
B : c:/temp/test/com/jiris/common/util/MailServlet.class
C : c:/temp/mail/test/com/jiris/common/util/MailServlet.class
D : c:/temp/test/mail/com/jiris/common/util/MailServlet.class

What is the answer? I suppose it should be between B or D. Can someone explain?
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is docbase ?
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i guess its D since the url-pattern is /MailServlet/*
B cant be the answer
 
Manikandan Jayaraman
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Niranjan,

I too felt that it is D, but the mock exam told that it is B. Dont know why ...

Can someone explain or confirm that I am right?
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it asking for full path of the Servlet on disk? or valid URL for servlet?
 
Bryan Basham
author
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Manikandan, and all...

This is a really bad mock exam question. I would ignore it if I were you. I cannot even tell what piece of knowledge this question is trying to test.

Regards,
Bryan
 
Siddharth Purandare
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mani,

This is the Question from JIRIS free Mock EXAM I, which has 50 Questions, They have solution to it please refer to that. Even I feel its a BAD question.
 
Manikandan Jayaraman
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Siddharth! I know that the question i from JIris and I got this question from that mock only.

I was not convinced with the answer they gave and thats why this question in the forum

Bryan, Thanks! But may I know which are the best among the mock tests that I can take which will test my knowledge close to the exam objectives?

Some authentic mock tests please?
 
Time is mother nature's way of keeping everything from happening at once. And this is a tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!