--- On Tue, 8/5/08, David Wall <[EMAIL PROTECTED]> wrote:

> From: David Wall <[EMAIL PROTECTED]>
> Subject: Parsing a URL to see if a param exists
> To: "Tomcat Users List" <users@tomcat.apache.org>
> Date: Tuesday, August 5, 2008, 7:17 PM
> Is there an API call to parse an URL I have as a String so
> that I can 
> determine if a given param exists? 
> 

http://java.sun.com/docs/books/tutorial/networking/urls/urlInfo.html

It breaks down every component of the url (protocol, domain name, etc).  Is 
that what you're looking for?

> I know that when processing from Tomcat, I can do 
> request.getParameterValues() for the URL of my servlet, but
> I'd like to 
> know if the URL used to arrive at my page includes a given
> parameter on 
> the URL itself (and not from a POST hidden param that will
> also be 
> returned by getParameterValues).
> 
> Thanks,
> David
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to