Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2007

Tip: Looking for answers? Try searching our database.

Dynamic path configuration/resolving

Thread view: 
Manish Hatwalne - 11 Sep 2007 11:26 GMT
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
GArlington - 11 Sep 2007 11:37 GMT
> 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
[quoted text clipped - 19 lines]
> TIA,
> - Manish

Search for "url rewriting" on google and how it is achieved on your
particular web server.
Manish Hatwalne - 11 Sep 2007 12:39 GMT
> Search for "url rewriting" on google and how it is achieved on your
> particular web server.

Sorry, I forgot to add that I am trying to acieve this with Servlet filter,
for some reasons can't use Apache's mod_rewrite
Any pointers?

- Manish
GArlington - 11 Sep 2007 14:56 GMT
> > Search for "url rewriting" on google and how it is achieved on your
> > particular web server.
[quoted text clipped - 4 lines]
>
> - Manish

What can you do with web server? You will need some sort of rewrite
rule in order for you requests not to get 404 responses. Or, is your
servlet alone listening on port 80?
Manish Hatwalne - 13 Sep 2007 08:39 GMT
>> > Search for "url rewriting" on google and how it is achieved on your
>> > particular web server.
[quoted text clipped - 9 lines]
> rule in order for you requests not to get 404 responses. Or, is your
> servlet alone listening on port 80?

I have got this to work with ServletFilter. I only needed that redirection
within my context, so it was kind of easy!

- Manish
GArlington - 13 Sep 2007 14:42 GMT
> >> > Search for "url rewriting" on google and how it is achieved on your
> >> > particular web server.
[quoted text clipped - 14 lines]
>
> - Manish

Sorry, did you succeed? Then please share with us how you did that.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.