You need to escape the & characters:

value="imgname=${products.productId}_price.png&v1=${products.productPrice}&v2=${products.productPrice}"

-Adrian


madppiper wrote:
Hey there,

I got quite an unusual error here. I am trying to parse a url to a java
class that I created. The url is created dynamically and then parsed to
another method of mine... :

        <!-- Toolset Function -->
        <simple-method method-name="generateProductPriceImagesAll"
                short-description="Refresh the Productprice Images for all 
Products">

                <!-- Retrieve all Products from Entity Engine -->

                <entity-condition entity-name="ProductsAndPrices"
                        list-name="productList">
                </entity-condition>



                <!-- Run through Productlist and generate the ProductPriceImages 
-->

                <iterate entry-name="products" list-name="productList">
                        <if>
                                <condition>
                                        <not>
                                                <if-empty 
field-name="products.productName"></if-empty>
                                        </not>
                                </condition>
                                <then>

                                        <!-- Generate Product Map File -->

                                        <set field="productOutMap.message"
                                        
value="imgname=${products.productId}_price.png&v1=${products.productPrice}&v2=${products.productPrice}"
                                                type="PlainString" />


                                        <call-service 
service-name="generatePriceImagesAll2"
                                                in-map-name="productOutMap">
                                        </call-service>


                                </then>
                        </if>
                </iterate>



        </simple-method>





This should work, but the following error arises on call:

Service dispatcher threw an exceptionError running simple method
[generateProductPriceImagesAll] in XML file
[org/brandsparadise/solr/SimpleMethodServices.xml]: (Could not parse XML
file (The reference to entity "v1" must end with the ';' delimiter.))

Reply via email to