Title: RE: A question regarding accessing parameters after the " ? " in a URL

The "+" characters maps to a space. Try "&":

http://localhost:8080/myproject/MyJsp.jsp?id=2&path=/myproject/mydirectory/MyOtherJSP

PJDM
--
Peter Mayne
Technology Consultant
Spherion Technology Solutions
Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602
T: 61 2 62689727  F: 61 2 62689777

> -----Original Message-----
> From: Henry Tang [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 7 March 2003 11:13 AM
> To: Tomcat Users List
> Subject: Re: A question regarding accessing parameters after
> the " ? " in a URL
>
>
> 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=''?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]
>

The information contained in this email and any attachments to it:

(a) may be confidential and if you are not the intended recipient, any interference with, 
use, disclosure or copying of this material is unauthorised and prohibited; and

(b) may contain personal information of the recipient and/or the sender as defined 
under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to 
collect, hold and use such information and any personal information contained in a 
response to this email, for any reasonable purpose in the ordinary course of 
Spherion's 
business, including forwarding this email internally or disclosing it to a third party. All 
personal information collected by Spherion will be handled in accordance with 
Spherion's Privacy Policy. If you have received this email in error, please notify the 
sender and delete it.

(c) you agree not to employ or arrange employment for any candidate(s) supplied in 
this email and any attachments without first entering into a contractual agreement with 
Spherion. You further agree not to divulge any information contained in this document 
to any person(s) or entities without the express permission of Spherion.


****** Message from InterScan E-Mail VirusWall NT ******

** No virus found in attached file noname.htm

This e-mail has been scanned by Spherion and is Virus free.
*****************     End of message     ***************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to