• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help with URL maping

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a simple question. Just to be clear and give myself a pat on back, everything is working ...

But i am not very clear on some of the URL mapping stuff, which i need some clarification.

Here it goes.
My dispatcher Servlet mapping...


My Spring security filter maping


And my Tuckey URL rewriter filter maping for CSS and other static stuff



Now the urlrewrite.xml





Last but not the least, My Controller...




What happens when I hit http://localhost:8080/contact/
How are the filters getting applied, step by step guide..???

All filters are working, security and tuckey. And my controller is getting called as supposed,
 
Sheriff
Posts: 5555
326
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What does happen when you hit http://localhost:8080/contact/ ? You tell us.
 
Hitesh Djoshi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

What does happen when you hit http://localhost:8080/contact/ ? You tell us.



I know it opens home.jsp due to the controller mapping



Now earlier, I had a disatcher servlet mapping, like this


It worked well, but did not allow me to to use tuckey url rewriting...(CSS were not getting aplied). I had to change my dispatcher servlet maping to /web/* .
And configure that in the urlrewrite.xml as,



Now what the above url rewrite doing...?? there is no /web/* URL defined in my controller.

 
Tim Cooke
Sheriff
Posts: 5555
326
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not familiar with the tuckey UrlRewrite thing I'm afraid so can't help you there. Have you read the documentation for it? Looks pretty comprehensive so would be fairly confident you'll find your answer in there.
 
Hitesh Djoshi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tim, Leaving that Tuckey thing alone for some time. Tuckey is just one way of getting your static content I believe,

Do you know any other way in which static content like css, js and html files can be correctly mapped in a Spring MVC application.

What is the industry standard way to do that sort of mapping?



Tim, Thanks for the Link .. really helpfull.
 
Tim Cooke
Sheriff
Posts: 5555
326
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hitesh Djoshi wrote:What is the industry standard way to do that sort of mapping?


Don't know. Sorry.
 
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic