You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jeff Sexton <se...@odscompanies.com> on 2005/04/22 17:38:16 UTC

Altering a query string in a sitemap?

I need to turn a request that looks like this:

/aaa/bbb?Q=[a string]

into this:

/aaa/bbb?[a string]

In my application [a string] is the actual complete query string I want to pass along 
to the XSP.

What I want to do is create a form that allows the user to add a paramter to a query 
string I already have in hand in the XSL.  Unfortunatly, the it seems HTML can't 
generate an action the with my pre-formed query string already in place.  I have to 
give the query string a label and pass it like it was a type "hidden" parameter (if I 
put parameters in the action, the browser adds a second "?" on the end of the 
resulting request).

Can the sitemap strip off the "Q=" and pass the remaining string on as though it was 
the original query string?

Thanks

-- 
The ODS Companies
Jeff Sexton
Information Services
(503) 228-6554   x1026
http://www.odscompanies.com

This message is intended for the sole use of the individual and entity
to whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose
or distribute to anyone the message or any information contained in the
message. If you have received this message in error, please immediately
advise the sender by reply email and delete the message.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Altering a query string in a sitemap?

Posted by Jeff Sexton <se...@odscompanies.com>.
Antonio Fiol Bonnín wrote:
> <map:match pattern="/aaa/bbb">
>   <map:redirect-to uri="/aaa/bbb?{request-param:Q}" />
>   <!-- Untested: uri="?{request-param:Q}" -->
> </map:match>

This works, thanks!

It does however pass along the entire original query string also.  I end up with

/aaa/bbb?[a string]&Q=[a string]

with the second intance of [a string] fully encoded.  This isn't really a problem, 
all the parameters I need are there.  Tt's just extras.

> 2005/4/22, Jeff Sexton <se...@odscompanies.com>:
> 
>>I need to turn a request that looks like this:
>>
>>/aaa/bbb?Q=[a string]
>>
>>into this:
>>
>>/aaa/bbb?[a string]
>>
>>In my application [a string] is the actual complete query string I want to pass along
>>to the XSP.
>>
>>What I want to do is create a form that allows the user to add a paramter to a query
>>string I already have in hand in the XSL.  Unfortunatly, the it seems HTML can't
>>generate an action the with my pre-formed query string already in place.  I have to
>>give the query string a label and pass it like it was a type "hidden" parameter (if I
>>put parameters in the action, the browser adds a second "?" on the end of the
>>resulting request).
>>
>>Can the sitemap strip off the "Q=" and pass the remaining string on as though it was
>>the original query string?
>>
>>Thanks
>>
>>--
>>The ODS Companies
>>Jeff Sexton
>>Information Services
>>(503) 228-6554   x1026
>>http://www.odscompanies.com
>>
>>This message is intended for the sole use of the individual and entity
>>to whom it is addressed, and may contain information that is privileged,
>>confidential and exempt from disclosure under applicable law. If you are
>>not the intended addressee, nor authorized to receive for the intended
>>addressee, you are hereby notified that you may not use, copy, disclose
>>or distribute to anyone the message or any information contained in the
>>message. If you have received this message in error, please immediately
>>advise the sender by reply email and delete the message.
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
> 
> 
> 


-- 
The ODS Companies
Jeff Sexton
Information Services
(503) 228-6554   x1026
http://www.odscompanies.com

This message is intended for the sole use of the individual and entity
to whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose
or distribute to anyone the message or any information contained in the
message. If you have received this message in error, please immediately
advise the sender by reply email and delete the message.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Altering a query string in a sitemap?

Posted by Jeff Sexton <se...@odscompanies.com>.
Opps, I stand corrected.  This is actually doing exactly what I want and nothing 
more.  I had an error in my html.

Thanks again!

Antonio Fiol Bonnín wrote:
> <map:match pattern="/aaa/bbb">
>   <map:redirect-to uri="/aaa/bbb?{request-param:Q}" />
>   <!-- Untested: uri="?{request-param:Q}" -->
> </map:match>
> 
> 2005/4/22, Jeff Sexton <se...@odscompanies.com>:
> 
>>I need to turn a request that looks like this:
>>
>>/aaa/bbb?Q=[a string]
>>
>>into this:
>>
>>/aaa/bbb?[a string]
>>
>>In my application [a string] is the actual complete query string I want to pass along
>>to the XSP.
>>
>>What I want to do is create a form that allows the user to add a paramter to a query
>>string I already have in hand in the XSL.  Unfortunatly, the it seems HTML can't
>>generate an action the with my pre-formed query string already in place.  I have to
>>give the query string a label and pass it like it was a type "hidden" parameter (if I
>>put parameters in the action, the browser adds a second "?" on the end of the
>>resulting request).
>>
>>Can the sitemap strip off the "Q=" and pass the remaining string on as though it was
>>the original query string?
>>
>>Thanks
>>
>>--
>>The ODS Companies
>>Jeff Sexton
>>Information Services
>>(503) 228-6554   x1026
>>http://www.odscompanies.com
>>
>>This message is intended for the sole use of the individual and entity
>>to whom it is addressed, and may contain information that is privileged,
>>confidential and exempt from disclosure under applicable law. If you are
>>not the intended addressee, nor authorized to receive for the intended
>>addressee, you are hereby notified that you may not use, copy, disclose
>>or distribute to anyone the message or any information contained in the
>>message. If you have received this message in error, please immediately
>>advise the sender by reply email and delete the message.
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
> 
> 
> 


-- 
The ODS Companies
Jeff Sexton
Information Services
(503) 228-6554   x1026
http://www.odscompanies.com

This message is intended for the sole use of the individual and entity
to whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose
or distribute to anyone the message or any information contained in the
message. If you have received this message in error, please immediately
advise the sender by reply email and delete the message.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Altering a query string in a sitemap?

Posted by Antonio Fiol Bonnín <an...@gmail.com>.
<map:match pattern="/aaa/bbb">
  <map:redirect-to uri="/aaa/bbb?{request-param:Q}" />
  <!-- Untested: uri="?{request-param:Q}" -->
</map:match>

2005/4/22, Jeff Sexton <se...@odscompanies.com>:
> I need to turn a request that looks like this:
> 
> /aaa/bbb?Q=[a string]
> 
> into this:
> 
> /aaa/bbb?[a string]
> 
> In my application [a string] is the actual complete query string I want to pass along
> to the XSP.
> 
> What I want to do is create a form that allows the user to add a paramter to a query
> string I already have in hand in the XSL.  Unfortunatly, the it seems HTML can't
> generate an action the with my pre-formed query string already in place.  I have to
> give the query string a label and pass it like it was a type "hidden" parameter (if I
> put parameters in the action, the browser adds a second "?" on the end of the
> resulting request).
> 
> Can the sitemap strip off the "Q=" and pass the remaining string on as though it was
> the original query string?
> 
> Thanks
> 
> --
> The ODS Companies
> Jeff Sexton
> Information Services
> (503) 228-6554   x1026
> http://www.odscompanies.com
> 
> This message is intended for the sole use of the individual and entity
> to whom it is addressed, and may contain information that is privileged,
> confidential and exempt from disclosure under applicable law. If you are
> not the intended addressee, nor authorized to receive for the intended
> addressee, you are hereby notified that you may not use, copy, disclose
> or distribute to anyone the message or any information contained in the
> message. If you have received this message in error, please immediately
> advise the sender by reply email and delete the message.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 


-- 
Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org