Bill Gorder wrote:is your resource on the file system like a file and the path is where on the file system it is located? What are you trying to accomplish?
FYI
I would get rid of the .do stuff too that is kind of old school now and you don't typically see it anymore in new applications.
Actually I am having a controller which which redirects/forwards request to appropriate pages.
My folder structure is WEB-INF/jsp/static/java/<<sub-folder1>>/<<sub-folder2>>/ so on
Here <<sub-folder1>> has some pages in it. <<sub-folder2>> also has some pages in it. Again <<sub-folder2>> can have even more folders in it. Say <<sub-folder3>>. Or say let us stop at <<sub-folder3>> only. <<sub-folder3>> has some pages in it.
To redirect/forward to a page under these folders I have to write 4 @RequestMapping like this
My question is can I group these four request mappings in to one? I tried using regular expressions but failed. I want only one @RequestMapping which should be called for
/root_context/java/view.do
/root_context/java/sub-folder1/view.do
/root_context/java/sub-folder1/sub-folder2/view.do
/root_context/java/sub-folder1/sub-folder2/sub-folder3/view.do
I want a request mapping such that it should be hit with any path starting with java/<<anything>>. I tried java/* It is only working for java/page.do, java/page2.do and so on. When I try java/sub-folder1/page1.do this request mapping is not being hit.
I hope this will explain well about what I want to accomplish.
Thank you, good day.