M
Manish Hatwalne
I have a strange requirement herem, not sure if I can explain it properly,
but let me try - I need to display different set of sites with dyamic paths
such as -
http://xyz.com/people/1234/index.do?someparams=pqr
http://xyz.com/people/5678/index.do?someparams=pqr
http://xyz.com/people/1234/photos.do
http://xyz.com/people/5678/photos.do
Now - the NOS here (1234 or 5678) will be generated dynamially and the
action will be requested - but they should resolve to the same action say -
http://xyz.com/people/index.do?someparams=pqr and the action should also get
the requested number in the path. Obviously it is not possible to add
configurations for all those dynamic numbers, so there has to be only one
action mapped here.
So what I want is this http://xyz.com/people/1234/index.do?someparams=pqr
should resolve to http://xyz.com/people/index.do?someparams=pqr and it
should also get "1234" as part of the info.
How can I achieve this?? I have not done this before but I think this sort
of path manipulation should be possible.
Any pointers, help would be highly appreciated!
TIA,
- Manish
but let me try - I need to display different set of sites with dyamic paths
such as -
http://xyz.com/people/1234/index.do?someparams=pqr
http://xyz.com/people/5678/index.do?someparams=pqr
http://xyz.com/people/1234/photos.do
http://xyz.com/people/5678/photos.do
Now - the NOS here (1234 or 5678) will be generated dynamially and the
action will be requested - but they should resolve to the same action say -
http://xyz.com/people/index.do?someparams=pqr and the action should also get
the requested number in the path. Obviously it is not possible to add
configurations for all those dynamic numbers, so there has to be only one
action mapped here.
So what I want is this http://xyz.com/people/1234/index.do?someparams=pqr
should resolve to http://xyz.com/people/index.do?someparams=pqr and it
should also get "1234" as part of the info.
How can I achieve this?? I have not done this before but I think this sort
of path manipulation should be possible.
Any pointers, help would be highly appreciated!
TIA,
- Manish