0
Hi anyone please help me......
i am trying to export some data to excel file while doing this i got the following exception...

here is the stacktrace...
Servlet.service() for servlet action threw exception: java.lang.IllegalStateException: getOutputStream() has already been called for this response
    at org.apache.catalina.connector.Response.getWriter(Response.java:598) [:6.1.0.Final]
    at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:199) [:6.1.0.Final]
    at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125) [:6.1.0.Final]
    at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118) [:6.1.0.Final]
    at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:188) [:6.1.0.Final]
    at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:117) [:6.1.0.Final]
    at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:76) [:6.1.0.Final]
    at org.apache.jsp.pages.MozartCostLoginAdmin_jsp._jspService(MozartCostLoginAdmin_jsp.java:86)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [:6.1.0.Final]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) [:6.1.0.Final]
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [:6.1.0.Final]
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [:6.1.0.Final]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.1.0.Final]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.1.0.Final]
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734) [:6.1.0.Final]
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541) [:6.1.0.Final]
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479) [:6.1.0.Final]
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407) [:6.1.0.Final]
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063) [:1.2.7]
    at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386) [:1.2.7]
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229) [:1.2.7]
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) [:1.2.7]
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) [:1.2.7]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [:1.0.0.Final]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.1.0.Final]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.1.0.Final]
    at com.zyom.security.LoginMonitorFilter.doFilter(LoginMonitorFilter.java:67) [:]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.1.0.Final]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.1.0.Final]
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.1.0.Final]
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [:6.1.0.Final]
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.1.0.Final]
    at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
    at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.1.0.Final]
    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.1.0.Final]
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159) [:6.1.0.Final]
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.1.0.Final]
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.1.0.Final]
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.1.0.Final]
    at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.1.0.Final]
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.1.0.Final]
    at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:504) [:6.1.0.Final]
    at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:437) [:6.1.0.Final]
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.1.0.Final]
    at java.lang.Thread.run(Thread.java:619) [:1.6.0_13]
Attachments
<%@ page import="com.zyom.webclient.util.MozartCostUtils,java.util.*,com.zyom.struts.form.AtsRegionsForm,com.zyom.struts.form.MapCustomerForm,com.zyom.reuse.util.DateHandler,com.zyom.webclient.util.MozartConstants"%>
<%@ page language="java" pageEncoding="ISO-8859-1"%>

<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
	prefix="bean"%>
 
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
	prefix="html"%>



		<title>JSP for UserLoginForm form</title>
		
		


<script type="text/javascript">
function filter_region(){
   var region_id=document.getElementById("regid").value;

   window.location="regionCustUserMap.do?method=Select&r="+region_id;
   
}
function popHelp(fname)
{

	window.open(fname,"TopAssblyFileformat","width=400,height=250,top=20,left=40,menubar=0,toolbar=0,status=0,location=0,scrollbars=1,resizable=1,dependent=1");
}

</script>
	</head>
	<body>
	<table>
		<tr>
			<td  nowrap="nowrap" class="loggedinlabel"><bean:message key="ats.channeldemand" />&rarr;<bean:message key="ats.customersetup" />&rarr;RegionCustomerUserMap&rarr;</td>
			</tr>
			</table>
				
	<div class="mainMenu">
	
			<ul class="tabs">

				<%--<li >
					<a href="atsNetworkLabels.do?method=showNetworkLables" target="_self"> <span><b><font
								face="Verdana"   size="1"><bean:message
										key="mozartcost.networkLabels" /> </font>
						</b>
					</span> </a>
				</li> --%>

			<li>
					<a href="atsRegions.do?method=show" target="_self"> <span><b><font
								face="Verdana" size="1"><bean:message
										key="mozartcost.Regions" /> </font>
						</b>
					</span> </a>
				</li>
				<li   >
					<a href="atsLocation.do?method=show" target="_self"> <span><b><font
								face="Verdana"    size="1"><bean:message
										key="mozartcost.CustomerLocation" /> </font>
						</b>
					</span> </a>
				</li>
				 <%-- <li   >
					<a href="atsSupplyNetwork.do?method=show" target="_self"> <span><b><font
								face="Verdana"    size="1"><bean:message
										key="mozartcost.SupplyNetwork" /> </font>
						</b>
					</span> </a>
				</li> 
				 
				<li>
					<a href="atsLeadTime.do?method=show" target="_self"> <span><b><font
								face="Verdana" size="1"><bean:message
										key="mozartcost.Leadtime" /> </font>
						</b>
					</span> </a>
				</li>  --%>
				
			<li>
					<a href="atsSalesId.do?method=show" target="_self"> <span><b><font
								face="Verdana" size="1"><bean:message
										key="mozartcost.SalesID" /> </font>
						</b>
					</span> </a>
				</li>
				
				<li>
					<a href="atsCustType.do?method=show" target="_self"> <span><b><font
								face="Verdana" size="1"><bean:message
										key="mozartcost.CustomerType" /> </font>
						</b>
					</span> </a>
				</li>
				
			 <li>
					<a href="atsMapCustomerRegion.do?method=show" target="_self"> <span><b><font
								face="Verdana" size="1"><bean:message
										key="mozartcost.CustomerRegion" /> </font>
						</b>
					</span> </a>
				</li>
				<%-- <li>
					<a href="atsSalesUsers.do?method=show" target="_self"> <span><b><font
								face="Verdana" size="1"><bean:message
										key="mozartcost.SalesUsers" /> </font>
						</b>
					</span> </a>
				</li> --%>
				 
					
					
						<li>
					<a href="atsBacklogcodes.do?method=show" target="_self"> <span><b><font
								face="Verdana" size="1"><bean:message
										key="mozartcost.BacklogCodes" /> </font>
						</b>
					</span> </a>
				</li>
				
				<li>
					<a href="atsInvlocs.do?method=show" target="_self"> <span><b><font
								face="Verdana" size="1"><bean:message
										key="mozartcost.InventoryLocation" /> </font>
						</b>
					</span> </a>
				</li>
				<li >
					<a href="appsettingsats.do" target="_self"> <span><b><font face="Verdana" size="1"><bean:message key="mozartcost.ChDemandSettings"/></font></b></span>
					</a>
				</li>
				<li >
					<a href="atsMapping.do?method=show" target="_self"> <span><b><font face="Verdana" size="1"><bean:message key="mozartcost.Mapping" /></font></b></span>
					</a>
				</li>
				<li id="current" class="active">
					<a href="regionCustUserMap.do?method=show" target="_self"> <span><b><font face="Verdana" color="#FFFFFF" size="1"><bean:message key="mozartcost.RegionCustUserMap" /></font></b></span>
					</a>
				</li>
					</ul>
			
		</div>
	<% if ((MozartCostUtils.isFirefox(request))) 
	{
	%>
		<br>
		<%} %>	
		 <%
		  String finditem="";
		  
		  if(request.getAttribute("finditem")!=null)
		    finditem=request.getAttribute("finditem").toString();
		 String finditem1="";
		  
		  if(request.getAttribute("finditem1")!=null)
		    finditem1=request.getAttribute("finditem1").toString();
		 %>
			<table>
			
				<tr>
					<td nowrap="nowrap"  valign="top" class="loggedinlabel"  >
						Review Sales Regions, Roles Mapped to Regions (Exec, Cust User, ApAdm), Customer related data&nbsp;&nbsp;&nbsp;&nbsp; <a href="#" onclick="popHelp('ats-form/AtsRegionCustUserMapHelp.jsp')"  title="click to get Help" ONMOUSEOVER="this._tip='click to get Help'" >Help</a>  <br>
					</td>
					</tr>
					<tr><td>&nbsp;</td></tr>
			</table>
			<table>
			<tr>
			<td nowrap="nowrap" class="loggedinlabel"  valign="bottom" nowrap="nowrap">					
					<form  method="post" action="regionCustUserMap.do">
					 <input type="text"  class="loggedin"  value="<%=finditem %>" name="search">  &nbsp;&nbsp;&nbsp;&nbsp;<input type="hidden" name="method"   value="FindCustomer"> <input type="submit"  class="loggedinlabel" title="Find By Customer" value="Find Customer">
					</form>
					</td>
			<td nowrap="nowrap" class="loggedinlabel"  valign="bottom" nowrap="nowrap">					
					<form  method="post" action="regionCustUserMap.do">
					 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text"  class="loggedin"  value="<%=finditem1%>" name="search1">  &nbsp;&nbsp;&nbsp;&nbsp;<input type="hidden" name="method"   value="Find"> <input type="submit"  class="loggedinlabel" title="Find By SalesID" value="Find SalesID">
					</form>
					</td>
			</tr></table>
			<table>
			<html:form action="regionCustUserMap.do">
				<tr>
				<td nowrap="nowrap" class="loggedinlabel" nowrap="nowrap">
					<bean:message key="gloabl.asof" />
				</td>
				<td nowrap="nowrap"  align="left" class="loggedin" nowrap="nowrap">
					<%=(DateHandler.getDateInSpecifiedFormat(
							new java.util.Date(),
							MozartConstants.MOZART_DATE_FORMAT))%>
				</td>
				<td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
				<td nowrap="nowrap" class="loggedinlabel" >Select SalesRegion:</td>
				<td nowrap="nowrap" class="loggedinlabel" nowrap="nowrap">
		 			 <html:select  styleClass="loggedin"  onchange="filter_region()" styleId="regid" property="regid">
		 			 <html:option value="0">ALL</html:option>
					  <html:options collection="regions_list"  property="id"  labelProperty="name"  ></html:options>	 
					  </html:select>
					&nbsp;&nbsp;&nbsp;  
				</td>
				</tr>
		</html:form>
				</table>
				<%
	    		String divStyle = "style=\"overflow:auto;height:550;width:1030;\"";
				String tBodyStyle = "style=\"overflow:auto;overflow-x:hidden;\"";
				if ((MozartCostUtils.isFirefox(request))) {
				  
					divStyle = "style=\"overflow:auto;height:550;width:1030;\"";
					tBodyStyle = "style=\"overflow:auto;overflow-x:hidden;height:200;\"";
				}
			%>
<hr size="1" width="100%" noshade>
<table width="100%"   height="10">
			<tr>
			 <html:form   action="regionCustUserMapXl.do">
			 <td>
								<input alt="Press GO, Then click Export to Excel" name="CVS" class="loggedinlabel"
									type="image" value="Export Excel" src="images/xls.gif"
									onmouseover="Tip('Press Click Export to Excel')" />		
		</td>		
		<td      class="loggedinlabel"	 >
		 	 
		</td>
		</html:form>			 
			</tr>
		</table> 
<html:form action="regionCustUserMap.do">
<div class="autoHeight" style="width:900px;height:1515px;margin-top:10px; margin-bottom:10px;">
<table style="margin-top:0px;"  class="tablesorter" border="0" cellpadding="0" cellspacing="1"> <%-- class="tablesorter" --%>
<thead class="ls">
												 
		<th nowrap="nowrap">Sales Region</th>
		<th width="250">ROLES MAPPED AT REGION LEVEL (ALL EXCEPT SALES ID)</th>
		<th nowrap="nowrap" >Customer</th>
		<th nowrap="nowrap" >Country</th>
		<th nowrap="nowrap" >Sales ID</th>
		
	</thead>

	<tbody class="ls1">
	<%ArrayList cust_list=(ArrayList)request.getAttribute("cust_list"); 
	for (int i = 0; i < cust_list.size(); i++) {
	MapCustomerForm mcf=(MapCustomerForm)cust_list.get(i);%>
	<TR class="<% if(i%2==0){%><%=""%><%}else{%><%="odd"%><%}%>">
								<td width="148" nowrap="nowrap">
								<%=mcf.getRegion()%>
							</td>

							

								<td width="408"  width="40">

							<%=mcf.getUser_names() %>					
							</td>
							<td width="188" nowrap="nowrap">
								<%=mcf.getCustomer()%>
							</td>
							<td width="148" nowrap="nowrap">
								<%=mcf.getLocation()%>
							</td>
							<td width="98" nowrap="nowrap">
								<%=mcf.getSalesid()%>
							</td>
	</tr>
	<%} %>
	</tbody>
</table></div>

		</html:form>
	</body>
</html>
2
Contributors
1
Reply
7
Views
5 Years
Discussion Span
Last Post by LastMitch
0

getOutputStream() has already been called for this response

You only attached 1 file but you have other errors not related to that:

<%@ page import="com.zyom.webclient.util.MozartCostUtils,java.util.*,com.zyom.struts.form.AtsRegionsForm,com.zyom.struts.form.MapCustomerForm,
com.zyom.reuse.util.DateHandler,com.zyom.webclient.util.MozartConstants"%>
<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<title>JSP for UserLoginForm form</title>
<script type="text/javascript">
function filter_region(){
var region_id=document.getElementById("regid").value;
window.location="regionCustUserMap.do?method=Select&r="+region_id;  
}
function popHelp(fname){
window.open(fname,"TopAssblyFileformat","width=400,height=250,top=20,left=40,menubar=0,toolbar=0,status=0,location=0,scrollbars=1,
resizable=1,dependent=1");
}
</script>
</head>
<body>
<table>
<tr>
<td nowrap="nowrap" class="loggedinlabel"><bean:message key="ats.channeldemand" />&rarr;
<bean:message key="ats.customersetup" />&rarr;RegionCustomerUserMap&rarr;</td>
</tr>
</table>
<div class="mainMenu">
<ul class="tabs">
<%--<li >
<a href="atsNetworkLabels.do?method=showNetworkLables" target="_self"><span><b><font face="Verdana" size="1">
<bean:message key="mozartcost.networkLabels" /></font></b></span></a>
</li>--%>
<li>
<a href="atsRegions.do?method=show" target="_self"> <span><b><font face="Verdana" size="1">
<bean:message key="mozartcost.Regions" /></font></b></span></a>
</li>
<li>
<a href="atsLocation.do?method=show" target="_self"> <span><b><fontface="Verdana" size="1"><bean:messagekey="mozartcost.CustomerLocation" /></font></b></span></a>
</li>
<%--<li>
<a href="atsSupplyNetwork.do?method=show" target="_self"> <span><b><font face="Verdana" size="1">
<bean:message key="mozartcost.SupplyNetwork" /></font></b></span></a>
</li> 
<li>
<a href="atsLeadTime.do?method=show" target="_self"> <span><b><font face="Verdana" size="1">
<bean:message key="mozartcost.Leadtime" /></font></b></span></a>
</li>--%>
<li>
<a href="atsSalesId.do?method=show" target="_self"> <span><b><font face="Verdana" size="1">
<bean:message key="mozartcost.SalesID" /></font></b></span></a>
</li>
<li>
<a href="atsCustType.do?method=show" target="_self"> <span><b><font face="Verdana" size="1">
<bean:message key="mozartcost.CustomerType" /></font></b></span></a>
</li>
<li>
<a href="atsMapCustomerRegion.do?method=show" target="_self"> <span><b><font face="Verdana" size="1">
<bean:message key="mozartcost.CustomerRegion" /></font></b></span></a>
</li>
<%-- <li>
<a href="atsSalesUsers.do?method=show" target="_self"><span><b><font face="Verdana" size="1">
<bean:message key="mozartcost.SalesUsers" /></font></b></span></a>
</li> --%>
<li>
<a href="atsBacklogcodes.do?method=show" target="_self"> <span><b><font face="Verdana" size="1">
<bean:message key="mozartcost.BacklogCodes" /> </font></b></span> </a>
</li>
<li>
<a href="atsInvlocs.do?method=show" target="_self"><span><b><font face="Verdana" size="1">
<bean:message key="mozartcost.InventoryLocation" /></font></b></span></a>
</li>
<li >
<a href="appsettingsats.do" target="_self"> <span><b><font face="Verdana" size="1">
<bean:message key="mozartcost.ChDemandSettings"/></font></b></span></a>
</li>
<li >
<a href="atsMapping.do?method=show" target="_self"> <span><b><font face="Verdana" size="1">
<bean:message key="mozartcost.Mapping" /></font></b></span></a>
</li>
<li id="current" class="active">
<a href="regionCustUserMap.do?method=show" target="_self"> <span><b><font face="Verdana" color="#FFFFFF" size="1">
<bean:message key="mozartcost.RegionCustUserMap" /></font></b></span>
</a>
</li>
</ul>
</div>
<% if ((MozartCostUtils.isFirefox(request))){ %><br>
<%} %>   
<% String finditem="";
if(request.getAttribute("finditem")!=null)
finditem=request.getAttribute("finditem").toString();
String finditem1="";
if(request.getAttribute("finditem1")!=null)
finditem1=request.getAttribute("finditem1").toString();
%>
<table>
<tr>
<td nowrap="nowrap"  valign="top" class="loggedinlabel">
Review Sales Regions, Roles Mapped to Regions (Exec, Cust User, ApAdm), Customer related data&nbsp;&nbsp;&nbsp;&nbsp; 
<a href="#" onclick="popHelp('ats-form/AtsRegionCustUserMapHelp.jsp')" title="click to get Help" ONMOUSEOVER="this._tip='click to get Help'">Help</a><br>
</td>
</tr>
<tr><td>&nbsp;</td></tr>
</table>
<table>
<tr>
<td nowrap="nowrap" class="loggedinlabel"  valign="bottom" nowrap="nowrap">                  
<form  method="post" action="regionCustUserMap.do">
<input type="text"  class="loggedin"  value="<%=finditem %>" name="search"> &nbsp;&nbsp;&nbsp;&nbsp;
<input type="hidden" name="method" value="FindCustomer"> 
<input type="submit"  class="loggedinlabel" title="Find By Customer" value="Find Customer">
</form>
</td>
<td nowrap="nowrap" class="loggedinlabel"  valign="bottom" nowrap="nowrap">                  
<form  method="post" action="regionCustUserMap.do">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" class="loggedin" value="<%=finditem1%>" name="search1"> &nbsp;&nbsp;&nbsp;&nbsp;
<input type="hidden" name="method" value="Find"> 
<input type="submit"  class="loggedinlabel" title="Find By SalesID" value="Find SalesID">
</form>
</td>
</tr>
</table>
<table>
<html:form action="regionCustUserMap.do">
<tr>
<td nowrap="nowrap" class="loggedinlabel" nowrap="nowrap"> <bean:message key="gloabl.asof" /></td>
<td nowrap="nowrap"  align="left" class="loggedin" nowrap="nowrap"><%=(DateHandler.getDateInSpecifiedFormat(new java.util.Date(), MozartConstants.MOZART_DATE_FORMAT))%></td>
<td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
<td nowrap="nowrap" class="loggedinlabel" >Select SalesRegion:</td>
<td nowrap="nowrap" class="loggedinlabel" nowrap="nowrap">
<html:select  styleClass="loggedin"  onchange="filter_region()" styleId="regid" property="regid">
<html:option value="0">ALL</html:option>
<html:options collection="regions_list" property="id" labelProperty="name" ></html:options>    
</html:select>&nbsp;&nbsp;&nbsp;  
</td>
</tr>
</html:form>
</table>
<%String divStyle = "style=\"overflow:auto;height:550;width:1030;\""; String tBodyStyle = "style=\"overflow:auto;overflow-x:hidden;\"";
if((MozartCostUtils.isFirefox(request))){divStyle = "style=\"overflow:auto;height:550;width:1030;\""; tBodyStyle = "style=\"overflow:auto;overflow-x:hidden;height:200;\"";}%>
<hr size="1" width="100%" noshade>
<table width="100%" height="10"><tr>
<html:form action="regionCustUserMapXl.do">
<td>
<input alt="Press GO, Then click Export to Excel" name="CVS" class="loggedinlabel" type="image" value="Export Excel" src="images/xls.gif" onmouseover="Tip('Press Click Export to Excel')" />        
</td>        
<td class="loggedinlabel"></td>
</html:form>          
</tr>
</table> 
<html:form action="regionCustUserMap.do">
<div class="autoHeight" style="width:900px;height:1515px;margin-top:10px; margin-bottom:10px;">
<table style="margin-top:0px;"  class="tablesorter" border="0" cellpadding="0" cellspacing="1"> <%-- class="tablesorter" --%>
<thead class="ls">
<th nowrap="nowrap">Sales Region</th>
<th width="250">ROLES MAPPED AT REGION LEVEL (ALL EXCEPT SALES ID)</th>
<th nowrap="nowrap" >Customer</th>
<th nowrap="nowrap" >Country</th>
<th nowrap="nowrap" >Sales ID</th>
</thead>
<tbody class="ls1">
<%ArrayList cust_list=(ArrayList)request.getAttribute("cust_list"); for (int i = 0; i < cust_list.size(); i++){ MapCustomerForm mcf=(MapCustomerForm)cust_list.get(i);%>
<TR class="<% if(i%2==0){%><%=""%><%}else{%><%="odd"%><%}%>">
<td width="148" nowrap="nowrap"><%=mcf.getRegion()%></td>
<td width="408"  width="40"><%=mcf.getUser_names() %></td>
<td width="188" nowrap="nowrap"><%=mcf.getCustomer()%></td>
<td width="148" nowrap="nowrap"><%=mcf.getLocation()%></td>
<td width="98" nowrap="nowrap"><%=mcf.getSalesid()%></td>
</tr>
<%} %>
</tbody>
</table>
</div>
</html:form>
</body>
</html>

You also post the other files on here (with comments & a suggestion):

http://www.coderanch.com/t/591561/JSP/java/java-lang-IllegalStateException-getOutputStream-called

https://community.jboss.org/thread/204940?start=0&tstart=0&_sscc=t

Edited by LastMitch: grammer

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.