Win a copy of The Business Blockchain this week in the Cloud forum!
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic