You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Keith Fetterman <kf...@go2marine.com> on 2006/01/20 02:47:49 UTC

URL parameters parsed into a Map

I need to parse the http parameters/values contained in a URL have them 
placed into a Map.  I will then replace specific parameters and feed the 
Map to an <html:link/> tag.  Is there a utility class in Struts that 
would do this?  Or some other open source third party library that can 
do this?

This is not a hard class to write, but it seems like it would be a 
common function that would be needed since the <html:link> and 
<html:rewrite> tags take a Map.

I googled for a solution and looked in the Struts documentation, but I 
can't find anything.  Your help is appreciated it.

--Keith



-- 
-----------------------------------------------------------------
Keith Fetterman                          206-780-5670
Mariner Supply, Inc.                     kfetterman@go2marine.com
http://www.go2marine.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: URL parameters parsed into a Map

Posted by Keith Fetterman <kf...@go2marine.com>.
Dah. I feel like such an idiot.  I didn't think to look in the servlet 
javadocs.  Thanks a bunch. I really *appreciate* it.

Michael Jouravlev wrote:
> On 1/19/06, Keith Fetterman <kf...@go2marine.com> wrote:
> 
>>I need to parse the http parameters/values contained in a URL have them
>>placed into a Map.  I will then replace specific parameters and feed the
>>Map to an <html:link/> tag.  Is there a utility class in Struts that
>>would do this?  Or some other open source third party library that can
>>do this?
>>
>>This is not a hard class to write, but it seems like it would be a
>>common function that would be needed since the <html:link> and
>><html:rewrite> tags take a Map.
>>
>>I googled for a solution and looked in the Struts documentation, but I
>>can't find anything.  Your help is appreciated it.
> 
> 
> http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRequest.html#getParameterMap()
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

-- 
-----------------------------------------------------------------
Keith Fetterman                          206-780-5670
Mariner Supply, Inc.                     kfetterman@go2marine.com
http://www.go2marine.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: URL parameters parsed into a Map

Posted by Michael Jouravlev <jm...@gmail.com>.
On 1/19/06, Keith Fetterman <kf...@go2marine.com> wrote:
> I need to parse the http parameters/values contained in a URL have them
> placed into a Map.  I will then replace specific parameters and feed the
> Map to an <html:link/> tag.  Is there a utility class in Struts that
> would do this?  Or some other open source third party library that can
> do this?
>
> This is not a hard class to write, but it seems like it would be a
> common function that would be needed since the <html:link> and
> <html:rewrite> tags take a Map.
>
> I googled for a solution and looked in the Struts documentation, but I
> can't find anything.  Your help is appreciated it.

http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRequest.html#getParameterMap()

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org