Asaf,
In my previous examples, I believe it already does this. In the PA2.java file I have:
public void gx_fillForm() throws GXGeneralException{
//This will run the path to gather the single occurrance fields for the jsp page.
GXPathResponse res = getGXSession().executePath("Potential_analysis_collection");
gx_fillForm(res.getScreens());
//This runs the path to create the Applinx table for the jsp page.
GXITable gx_table = getGXSession().getTable("Potential_analysis_collection");
getTagsAccesor().setTagTable("Potential_analysis_collection",gx_table,getGXAppConfig().getTableBuildConfig(),this);
getSession().setAttribute(EXCEL_TABLE_SESSION_KEY, gx_table);
}
The PA2_excel.java file has this:
/// Retrieving A table stored in the http session
Object obj = getSession().getAttribute(EXCEL_TABLE_SESSION_KEY);
if (obj != null){
gx_table = (GXITable)obj;
}
else{
gx_table = getGXSession().getTable();
}
getResponse().reset();
getResponse().setContentType("application/vnd.ms-excel");
getResponse().addHeader("Content-Disposition","attachment; filename=\"" + gx_table.getName() + ".xls\"");
GXTableSerializer serializer = new GXTableSerializer();
String xlStr = serializer.serialize(gx_table, getApplication().getRealPath("/hostTable.xsl"));
getTagsAccesor().setTagContent("excelData", xlStr);
Isn’t this doing what your example shows? Please correct me if I am wrong.
Thanks,
Joe
#webMethods#Mainframe-Integration#ApplinX