String limit ?? productSummary

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

String limit ?? productSummary

Grant Edwards-2
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
Reply | Threaded
Open this post in threaded view
|

Re: String limit ?? productSummary

Scott Gray
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
>
Reply | Threaded
Open this post in threaded view
|

Re: String limit ?? productSummary

Grant Edwards-2
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
>>
>>    
>
>