John, johne wrote:
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.http://validator.w3.org/check?uri=http%3A%2F%2Fwww.jobbank.com&charset=(detect+automatically)&doctype=Inline&group=0 For the suspect line I am using:$link.setAction( $!pop.rname JobsI get:/action/pub/submit/job-listing?c=US&r=NJ New Jersey JobsWhen I would want:/action/pub/submit/job-listing?c=US&r=NJ New Jersey Jobs
You want to add this to the end of your tookbol.xml file: <xhtml>true</true>This will configure LinkTool to emit URLs encoded appropriately for XHTML (which means using & instead of just '&').
Hope that helps, -chris
signature.asc
Description: OpenPGP digital signature
