Hi, Just to note the results of my investigation... It appears this is caused by Tomcat. When I check request.getParameter() it's the same issue. (for the record, Tomcat 4.0.2, JDK 1.3.1). So, not a Turbine issue. (Interestingly, Turbine parses both the Query Parameters and the Path Info into data.getParameters, so if one doesn't work you can use the other)
Not sure if the issue with the Query Parameters is part of the Servlet 2.3 spec or is a Tomcat specific bug. However the reason it works for you but not for me is likely due to a different app server. (or different JDK?). Thanks for the help. I'll dig around a bit more as I have time. WILL -----Original Message----- From: Phee, Martin J (Jump Tech) [mailto:[EMAIL PROTECTED]] Sent: Friday, June 21, 2002 11:28 AM To: 'Turbine Users List' Subject: RE: possible bug in ParameterParser I just changed my url to http://localhost/bp-Pipelines/servlet/bp-Pipelines/template/minmax%2CMinMaxQ ueryRuns.vm?run_id=42 and hit enter. I worked. I only changed the query data. It was using path info. The %2C was already there. -----Original Message----- From: Will Glass-Husain [mailto:[EMAIL PROTECTED]] Sent: Friday, June 21, 2002 1:28 PM To: Turbine Users List Subject: RE: possible bug in ParameterParser Thanks for the quick reply. Do your URLs substitute "%2C" for the comma with subdirectories? Before someone calls me on it, note that I mistyped the URLs (sorry!) They are: 1: http://server/turbine/template/simexpress,Equations.vm?id=1 2: http://server/turbine/template/simexpress%2CEquations.vm?id=1 When I put the RunData (as "Data") in the context and displath "$Data.Parameters", I get: 1: Parameters: {template=simexpress,Test.vm} {id=1} 2: Parameters: {template=simexpress,Test.vm} Yes, I'm using Turbine 2.2b1. Incidentally, my TurbineResources.properties reads: tool.request.link=org.apache.turbine.util.template.TemplateLink I'll look into it further, dig into the source code a bit. Thanks, WILL -----Original Message----- From: Phee, Martin J (Jump Tech) [mailto:[EMAIL PROTECTED]] Sent: Friday, June 21, 2002 11:00 AM To: 'Turbine Users List' Subject: RE: possible bug in ParameterParser I just tried it, and it works for me. Almost all of my templates are in subdirectories. Turbine 2.2b1 -----Original Message----- From: Will Glass-Husain [mailto:[EMAIL PROTECTED]] Sent: Friday, June 21, 2002 12:53 PM To: [EMAIL PROTECTED] Subject: possible bug in ParameterParser Hi, Anyone hit this bug? When I have a vm file in a subdirectory, ParameterParser does not pick up on the query parameters if the separator is a "%2C" instead of ",". More specifically, given the two URLs below, data.getParameters() has a value/pair id {id=1} for URL 1 but not URL 2. I think it should be the same. 1: http://server/turbine/simexpress,Equations.vm?id=1 2: http://server/turbine/simexpress%2CEquations.vm?id=1 The reason this matters is that $link (TemplateLink) creates URLs of the second form. $link.setPage("simexpress,Equations.vm").addQueryData("id","$MyDBRecord.Id") I temporarily solved this problem by including the parameter in a path info instead of a query string $link.setPage("simexpress,Equations.vm").addPathInfo("id","$MyDBRecord.Id") which produces the URL http://server/turbine/simexpress%2CEquations.vm/id/1 and the name/value pair gets picked up by ParameterParser properly. Is this what I'm supposed to do, or is this just a bug? Best, WILL _______________________________________ Forio Business Simulations Will Glass-Husain (415) 440-7500 phone (415) 235-4293 mobile [EMAIL PROTECTED] www.forio.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
