File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts problem with InsertTag Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "Struts problem with InsertTag" Watch "Struts problem with InsertTag" New topic
Author

Struts problem with InsertTag

Christian Edstr�m
Greenhorn

Joined: Aug 30, 2004
Posts: 5
I'm having an issue with websphere 5.1 and tiles not rendering correctly with large amounts of data. Somehow the data seems to be interrupted randomly and doesn't produce the full html that I'm expecting. To me it sounds like a problem with buffers and flushing and eventually I found a workaround.
I makde a change in method doEndTag of InsertTag from this:

// include requested component.
if (flush) {
pageContext.getOut().flush();
}
doInclude(page);

to this:

if (flush) {
pageContext.include(page);
} else {
TilesUtil.doInclude( page, (HttpServletRequest)pageContext.getRequest(),(HttpServletResponse)pageContext.getResponse(),pageContext.getServletContext());
}

Is this purely a Websphere issue or is anyone else experiencing similar problems with uncomplete data?

/C a Struts newbie


==========================<br />SCJP 1.4
 
IntelliJ Java IDE
 
subject: Struts problem with InsertTag
 
Threads others viewed
Struts problem with Was5.1
Sometimes users see other's secure data over ssl on jsp struts and glassfish
Struts templates
Jsp not rendering correctly
Problem with InsertTag and WebSphere 5.1
Two Laptop Bag