Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java Filter

Status
Not open for further replies.

jumper2

Programmer
Jul 13, 2007
41
ES
Hi All,

I have a strange problem with my filter, if it runs then some part missing end of the html sites....
I tried to find a logic behind but for me seems to be random or depends maybe how big is the site (?)

This is how my filter looks like:

chain.doFilter(request, wrapper);
String myresp= wrapper.toString();

response.setContentLength(responseString.length());
response.getWriter().write(responseString);


I'm not sure if there is something what I'm doing wrong, or why is this strange cutting happens...
Do I use wrongly String data type as my response?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top