String Path = request. getcontextpath ();
System. Out. println (PATH );
%>
If you add the precedingCodeWhat is the output result?
Result:/Project Name
I thought I only got the project name or just got /"//".
I also accidentally discovered this during my project today.
"/" Also indicates the root directory of the web project. If a folder is created under the root directory, it is written as href =/"Page/index.html/" to access the page instead of/"/page/ index.html /"
Write in JS like this
Document. Write ('document. Write ('mailto :');
Document. Write ('netai ');
Document. Write ('@');
Document. Write ('safemore. com ');
Document. Write ('/"> ');
Document. Write ('netai ');
Document. Write ('{}');
Document. Write ('safemore. com ');
Document. Write ('');
After setting JS on the page, you will find a link. Clicking this link will directly link to the outlook you set. If you have set it, You can directly send a mail to this mailbox.