I think its better if i post some code. This is the action mapping for <action name=\"accessRequestReportResult\" class=\"action.reports.AccessRequestReportResult\"> <result name=\"showReport\">/useradmin/AccessRequestReport.jsp</result> <result name=\"failure\">login.jsp</result> <result></result><!--i was trying this but didnt work--> </action>
this is my execute method: public String execute() throws IOException, ServletException { //we dont enter here for excel if (getServletRequest().getParameter(\"isExcel\")==null) { setData(getActionValue()); return \"showReport\"; } //enter here for excel else { setData(getServletRequest().getParameter(\"action\")); excelReport();//this does all the excel stuff and writes to the HttpServletResponse. return \"stream\";//i also tried return SUCCESS but even then got illegalStateException } } Everything works dandy but i have an IllegalStateException in my logs. saying no result defined for \"stream\"... is there a workaround here...:( On 2/7/08, Dale Newfield <[EMAIL PROTECTED]> wrote: bhaarat Sharma wrote: > > ..what should my execute method be returning? > > As always, it should return the name of the appropriate result (in this > case, the name of the result of type \"stream\"). > > -Dale > > --------------------------------------------------------------------- > 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]