What data is stored in the variable appname when we give the folowing statement String appname=("manager".equalsIgnoreCAse(request.getContextPath()))?"/manager":"/portal";

Showing Answers 1 - 1 of 1 Answers

ejazazeem79

  • Dec 9th, 2005
 

getContextPath() returns string in form of "/somedirectory" thus your code will return false and appname will have "/portal", hope this will answer your question

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions