Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Parameters Via URL

Status
Not open for further replies.

squidster

Technical User
Oct 13, 2002
55
GB
Hi,

I am having trouble passing more than one parameter via the URL:-

Code:
<a href=&quot;[URL unfurl="true"]http://127.0.0.1:8080/feedback/dispatch?event=1?username=&quot;<%=[/URL] username %>&quot;&quot;>Display feedback</a>

The username has been received by this jsp page and obtained via:-

Code:
String username=request.getParameter(&quot;username&quot;)

This has definately recieved the value as I can see this with:-

Code:
out.println(username);

Has anyone got any ideas please?

thanks
 
sorry, I of course meant:-

Code:
<a href=&quot;[URL unfurl="true"]http://127.0.0.1:8080/feedback/dispatch?event=1&username=&quot;<%=[/URL] username %>&quot;&quot;>Display feedback</a>

that is with the &.
 
You have extemporianious quote characters
Code:
<a href=&quot;[URL unfurl="true"]http://127.0.0.1:8080/feedback/dispatch?event=1&username=<%=[/URL] username %>&quot;>Display feedback</a>


-pete
 
Thanks,

I eventually found an example and spotted my error after many hours!!

ps. its extemporaneous, but the context doesn't fit here, unless you meant to insult me?

;)
 
>> but the context doesn't fit here

Yes, i was tired. insult you absolutely not and i don't even get how it could :)


-pete
 
It's ok, I didn't really think that you did, but extempoblahblah actually means &quot;spoken, performed, done, or composed with little or no preparation or forethought&quot; and I only do that when I'm drunk,...... I think:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top