I have been looking to see if there is a way to "change" the parameters that are passed to a servlet.
Example:
XXX and YYY are location codes)
What I want to do, is when this string comes to my servlet, I would like to lookup XXX and YYY in our database, and replace them with the actual address of the location.
The new string would be:
2nd ave, chicago, il&dest=456 3rd st, omaha, ne
If this is not possible, I could possible also pass the parameters in with a different name (param1, param2) and then append origin, dest to the end and possibly ignore the param1 and 2 when the servlert works with them.
Probably kind of silly to be doing all this, but I need to replace those values from the pages reaches the client browser.
Thanks in advance
- Chris
Example:
XXX and YYY are location codes)
What I want to do, is when this string comes to my servlet, I would like to lookup XXX and YYY in our database, and replace them with the actual address of the location.
The new string would be:
2nd ave, chicago, il&dest=456 3rd st, omaha, ne
If this is not possible, I could possible also pass the parameters in with a different name (param1, param2) and then append origin, dest to the end and possibly ignore the param1 and 2 when the servlert works with them.
Probably kind of silly to be doing all this, but I need to replace those values from the pages reaches the client browser.
Thanks in advance
- Chris