java - Determine filesystem path of current JSP page -


Within a JSP page, I had to determine the current path of the page on the file system, for example:

I want to be able to copy / paste the same code to many JSPs and each page should be aware of its file system.

To reference other jsp pages (and for other utility methods for JSP), JSTL Use the library extremely convenient You can see the references to how to use it.


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -