Hello

I tried removing the s:iterate and s:property tags and shifted the code to a scriptlet, I was still getting the same problem. But then I disabled the struts/struts-cleanup filters from my web.xml and created a standalone jsp to test the functionality and called it directly. To my surprise the jsp was painted completely.

I am using the default interceptor stack and I have not made any changes to default struts configuration. I am using strutts 2.0.6

What could be causing this loss in data?

A description of the problem again in simple words

- I am trying to print some text in Chinese(Traditional) language inside a loop. (I have tried s:iterator and a for loop inside scriplets) - Somewhere towards the end of the loop the printwriter stops writing to the jsp. All out.println statements are ignored. - But the code is being executed and i get system.out messages in the server logs. - So in my browser I get an html terminated abruptly at a random place towards the end.
- No exceptions are being thrown
- The same code works perfectly for other languages.

I really dont know how to proceed with this. Any help would be appreciated.

Thanks
Manu

Manu Mahajan wrote:
Hi

I am having a really weird problem with data containing chinese characters. I have something similar to the following code in a jsp.

<s:iterator value="#request.translations">
   <tr>
       <td>
       <s:property value="translationText"/>
       </td>
   </tr>
</s:iterator>

This works fine otherwise but when 'translationText' contains Chinese characters an incomplete jsp is painted.

Like say if the loop has to run 20 times, only 18 or 19 lines are printed and NO code after the loop is printed. It's as if the jspwriter has crashed or something but no exception is thrown. I am using tomcat 5.5.21.

At first I thought it was a buffer related issue so added out.flush() to every iteration I also reduced the number of iterations. Now if the loop is running 10 times still 7 or 8 rows are being printed. I added a system.out.println() in the middle of the loop and I im getting 20 lines printed in the logs... but in the jsp i can only see 18 or 19. And this works for all other languages.

Has anyone ever faced a problem like this? I tried searching on google but couldn't find anything.

Please suggest what can I do?

Thanks
Manu


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to