Forum Moderators: open

Message Too Old, No Replies

Help getting a jsp translated into a url?

         

kenfused

4:20 am on Jul 16, 2006 (gmt 0)

10+ Year Member



I'm kind of a newbie here, not sure if this is the spot.

Basically I want to use the Walgreens Store Locator on their website, and make it so I can point a URL to a specific zip code.

Other sites have something like www.mysite.com/script.php?zip=90210

The Walgreens.com site has this jsp script, and I don't know if there is a way for me to decipher their script so I can simply feed it a Zip code to get the list of stores
[mysite.com...]

I don't know if I can post URLS, so you have to substitute mysite.com with "walgreens.com"

so it could be somthing like [mysite.com...]

Any ideas on how to do this?
I dont know JSP so I don't know how the form gets processed.
THANKS in advance!

Rambo Tribble

8:27 pm on Jul 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The form in question doesn't use the GET method, but rather the POST method, although the URL the form points to does include GET data. In other words, the ZIP code information will not be included in the URL.

You should be able to simulate the Walgreens' page functionality by POSTing a form to the same URL with the ZIP code data in an input field named "zip" (the same name their page uses).

kenfused

10:25 pm on Jul 17, 2006 (gmt 0)

10+ Year Member



Thanks.

I saw in the form that it uses a variable "ZIP" with the zip info, but I wasn't sure how to format the URL. I don't know the syntax for the .jsp

Can anyone help me with this?

THANK YOU!

Rambo Tribble

10:44 pm on Jul 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The format of a GET appended URL is part of the HTML spec and independent of the server scripting language.