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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -