Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Failed to map to jsp file.

 
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi With Spring mvc 3.0.5 and jsp, my DispatcherSerlvet thrown the following exception:



Here is my xml config file:



Controller class:



In my xml config file, when I used "<url-pattern>/abc/*</url-pattern>" mapping, there is no problem until I changed it to "/*", then it failed to map to the correct jsp file.
How can I use /* mapping instead of /abc/*?

I want my website to be browsed as "www.mysite.com" rather than "www.mysite.com/abc/"

Any suggestion is very appreciated
Thanks
Sam
 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I changed it to <url-pattern>/</url-pattern>, then it works . But my login doesn't work with the following error:

HTTP Status 404 - /j_spring_security_check

type Status report

message /j_spring_security_check

description The requested resource (/j_spring_security_check) is not available.

JBoss Web/7.0.13.Final



This is my secuirty-config.xml file:



controller for handling login:



Looking forward to your suggestion.
Thanks
Sam
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic