Hi,
In a "<form method="post" " is there some sort of limit imposed on the size of a parameter ? If I do this, productSummary.ftl display correctly and the "Add to cart" displays and works correctly ---> productSummary.bsh strValue = "Some small string"; request.setAttribute("otaHotelAvailRSDocument", strValue); productSummary.ftl <form method="post" action="<@ofbizUrl>additem<#ifrequestAttributes._CURRENT_VIEW_ .................. ................. <input type="hidden" name="testValue" value="${requestAttributes.otaHotelAvailRSDocument}"/> <ahref="javascript:document.the${requestAttributes.f..................... </form> However, if I set strValue to that of a large xml document, productSummary.ftl is not displayed correctly and the "Add to Cart" button does not work. Any help would be appreciated. Thank you. Grant Edwards |
Are the contents of otaHotelAvailRSDocument by any chance messing up your
html? -Scott 2008/6/17 Grant Edwards <[hidden email]>: > Hi, > > In a "<form method="post" " is there some sort of limit imposed on the size > of a parameter ? > > > If I do this, productSummary.ftl display correctly and the "Add to cart" > displays and works correctly ---> > > productSummary.bsh > > strValue = "Some small string"; > request.setAttribute("otaHotelAvailRSDocument", strValue); > > > productSummary.ftl > > <form method="post" > action="<@ofbizUrl>additem<#ifrequestAttributes._CURRENT_VIEW_ > .................. > > ................. > > <input type="hidden" name="testValue" > value="${requestAttributes.otaHotelAvailRSDocument}"/> > > > <ahref="javascript:document.the${requestAttributes.f..................... > </form> > > > > However, if I set strValue to that of a large xml document, > productSummary.ftl is not displayed correctly and the "Add to Cart" button > does not work. > > > Any help would be appreciated. > > > Thank you. > > Grant Edwards > |
Yip, just realised that. Its an xml doc that is full of special
characters, for example < > " ...... Thanks for your help Scott Gray wrote: > Are the contents of otaHotelAvailRSDocument by any chance messing up your > html? > > -Scott > > 2008/6/17 Grant Edwards <[hidden email]>: > > >> Hi, >> >> In a "<form method="post" " is there some sort of limit imposed on the size >> of a parameter ? >> >> >> If I do this, productSummary.ftl display correctly and the "Add to cart" >> displays and works correctly ---> >> >> productSummary.bsh >> >> strValue = "Some small string"; >> request.setAttribute("otaHotelAvailRSDocument", strValue); >> >> >> productSummary.ftl >> >> <form method="post" >> action="<@ofbizUrl>additem<#ifrequestAttributes._CURRENT_VIEW_ >> .................. >> >> ................. >> >> <input type="hidden" name="testValue" >> value="${requestAttributes.otaHotelAvailRSDocument}"/> >> >> >> <ahref="javascript:document.the${requestAttributes.f..................... >> </form> >> >> >> >> However, if I set strValue to that of a large xml document, >> productSummary.ftl is not displayed correctly and the "Add to Cart" button >> does not work. >> >> >> Any help would be appreciated. >> >> >> Thank you. >> >> Grant Edwards >> >> > > |
Free forum by Nabble | Edit this page |