velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johne <>
Subject URL encoding
Date Mon, 30 Jun 2008 04:46:52 GMT


Progress!  I am wondering.  When I am creating a URL with a query string
using the Struts Link Tool, I am wondering what might affect the URL query
string to get the encoded version of an ampersand, not just a straight
ampersand.   When I am using the tool as is, I am getting a straight
ampersand which when I run it through the W3C validator tool, I get errors.

For the suspect line I am using:
    $link.setAction( $!pop.rname Jobs 

I get:
    /action/pub/submit/job-listing?c=US&r=NJ New Jersey Jobs 

When I would want:
    /action/pub/submit/job-listing?c=US&amp;r=NJ New Jersey Jobs 

Which would not get errors.

View this message in context:
Sent from the Velocity - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message