It's not a secret anymore!*
The moose likes Spring and the fly likes static url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "static url" Watch "static url" New topic
Author

static url

Kiran Gaddam
Ranch Hand

Joined: Aug 05, 2011
Posts: 32
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

Joined: Feb 05, 2001
Posts: 17250
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Kiran Gaddam
Ranch Hand

Joined: Aug 05, 2011
Posts: 32
Thank you for the reply.. Yes, I mean clean URL's
Using urlrewrite filter I fixed it..
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: static url