This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
How do servlet mapping in web.xml that the path information is not lost
Anoop Krishnan
Ranch Hand
Joined: May 03, 2001
Posts: 163
posted
0
In my spring application I am using SiteMesh also.
I have a servlet mapping (web.xml) as given below for my dispatcher servlet
The site mesh filter is configured as given below
The decorator file for the site mesh contains the following mapping
The problem is when I use a URL with /excellink/screener/a.view It doesn't reach to the site mesh file which is excelScreenerShell.jsp.
but if I use a URL /screener/a.view it works !!!
That means the servlet mapping for NgpServlet removes the path /excellink
Is there any way to fix this with out touching the servlet mapping or changing the map in the decorator file ?
I just want to know is there any body call my bean's Getter and Setter methods with "Please" in front - My favorite quip from Bugzilla
Leonardo Carreira
Ranch Hand
Joined: Apr 07, 2009
Posts: 482
posted
0
Hi Anoop..
How about if you configure your Dispatcher Servlet like this :
try to remove "excellink"..
please correct me if i'm wrong..
Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
Anoop Krishnan
Ranch Hand
Joined: May 03, 2001
Posts: 163
posted
0
Hi Leonardo ,
Thank you for taking time to look in to my problem.
I know this solution already but this will break another application
I am just looking for a solution in web.xml with out changing the existing mappings
Leonardo Carreira wrote:How about if you configure your Dispatcher Servlet like this :
mapping "/*" is never a good idea. That means that all requests, including those to images, CSS files, JavaScript files, JSP files and so one will be routed to the servlet.