my dog learned polymorphism*
The moose likes Other Open Source Projects and the fly likes How do servlet mapping in web.xml that the path information is not lost Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "How do servlet mapping in web.xml that the path information is not lost" Watch "How do servlet mapping in web.xml that the path information is not lost" New topic
Author

How do servlet mapping in web.xml that the path information is not lost

Anoop Krishnan
Ranch Hand

Joined: May 03, 2001
Posts: 163
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: 489

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
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
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61316
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

Oops sorry..

Thanks Bear for your attention..
 
GeeCON Prague 2014
 
subject: How do servlet mapping in web.xml that the path information is not lost