A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
using double quote in passing parameter
Joined: Mar 28, 2006
Dec 29, 2009 12:53:52
When I invoke a
from URL, should or should not I use double quote to wrap the parameter ? for example,
I notice sometimes both ways work. But what's the rule for passing parameters from URL ?
Joined: Feb 23, 2009
Dec 29, 2009 13:02:11
You don't use them. Parameters are separated by either the ampersand or the end of the
. That's enough for the container to know how to split the parameters.
An easy to use, light-weight JDBC framework
Author and ninkuma
Joined: Jan 10, 2002
Dec 29, 2009 13:07:49
No quotes unless you want them to be part of the passed value (in which case they should be URL-encoded in any case).
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: using double quote in passing parameter
Float.valueOf() method and NumberFormatException
Href with onClick
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013