Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Request url forwarding

 
Prasath Premkumar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

I have to change the request url and forward it. For example i need to change all "/aaa/bbb/ccc/..." urls as "/aaa/ccc/..." ("/bbb" removed
from request url)and forward it. How can i do it without response.redirect in servlet ???

Can i do it with Struts 1???

Thanks in advance.
 
Jaimesh M Ponkia
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure if I understand the problem correctly, let me try to rephrase it.
1. You are currently on page which has URL as "/aaa/bbb/ccc/"
2. On click of a button or link you want to forward it some other URL/Action.

If this is the case then yes you can do it using struts. You can use ForwardAction for the same.

Just wondering why are you worried about what is the current page URL?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic