As far as I know you should separate parameters with an ampersand ... Build up your query string, end this with a question mark and append your parameters with the ampersand ...
ie. Something like MyFavourite.JSP?id=2&path=myproject¶m1=2¶m2=3 etc, etc... MyFavourite.JSP'?id > > > =2,path=/myproject On Fri, 2003-03-07 at 00:13, Henry Tang wrote: > try + > ----- Original Message ----- > From: "Mufaddal Khumri" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Thursday, March 06, 2003 5:41 AM > Subject: Re: A question regarding accessing parameters after the " ? " in a > URL > > > > When I do a getParameterNames() ..... i get the "id" back ... but not > > the "path" .... is my parameter seperator not correct ? i am using a > > "," (comma) to seperate two parameters. > > > > > > On Thursday, March 6, 2003, at 04:55 PM, Mufaddal Khumri wrote: > > > > > Hi, > > > > > > Sometimes when a user clicks on a link on one page it becomes > > > necessary to send parameters to the next page > > > > > > lets say i have <a href='MyFavourite.JSP'?id > > > =2,path=/myproject/mydirectory/MyOtherJSP> My Favourite JSP</a> > > > > > > when i will click on the above link it will get transformed into : > > > > > > http://localhost:8080/myproject/MyJsp.jsp?id=2,path=/myproject/ > > > mydirectory/MyOtherJSP > > > > > > Within MyFavouriteJSP if i want to access the query string .. i can > > > get it using > > > String queryString = request.getQueryString(); > > > > > > Now i can parse the queryString and get the individual values for "id" > > > and "path" .. ie. "2" and "/myproject/mydirectory/MyOtherJSP" > > > > > > is there a method which would return the values if i specify the name > > > of the parameter to them ? > > > > > > like someobject.getParameter("id") would give me 2 .... would > > > request.getParameter("id") do it ? or is there some other method ? > > > > > > Thanks. > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- p niemandt <[EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]