This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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

 
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

 
Ranch Hand
Posts: 494
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Anoop..

How about if you configure your Dispatcher Servlet like this :


try to remove "excellink"..
please correct me if i'm wrong..

 
Anoop Krishnan
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Author and ninkuma
Marshal
Posts: 66806
168
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops sorry..

Thanks Bear for your attention..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!