Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

static url

 
Kiran Gaddam
Ranch Hand
Posts: 35
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I have a requirement that when user clicks on a link.. the url should not change...
but the corresponding page should be rendered..

has any body done this..?

I can not use Iframes...
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a class assignment? Why are you limited to the same URL? Do you just mean clean URLs? Are you allowed RequestParameters. Or do you need to add a form with hidden fields so you can know where to go?

We can't write your class assignment for you, but we can help point you in a direction.

Thanks

Mark
 
Kiran Gaddam
Ranch Hand
Posts: 35
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the reply.. Yes, I mean clean URL's
Using urlrewrite filter I fixed it..
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kiran Gaddam wrote:Thank you for the reply.. Yes, I mean clean URL's
Using urlrewrite filter I fixed it..


Spring also has a UriTemplate class that is cool

Also in Spring 3.0 Spring MVC has the @PathVariable to get that value into an @Controller @RequestMapping method.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic