struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Biel <Marcus.B...@bmw.de>
Subject Action without forward ?
Date Thu, 16 Jan 2003 09:28:36 GMT
Hi, I am using Struts 1.02 and got the following Problem:
I need to create a JSP where u can select to create a pdf or excel file.

The problem is, I didn't programm the Action to create the file, a
colleague did.
So I need some way to call his Servlet. I tried to map directly to it,
that did not work. So I wrote an Action that called a method to create
this pdf / excel file,
depending on the parameters given.

The problem is, that after this method there is no forward anymore, as
the control is given to the servlet
to create the file, and thats it. But the 	
public ActionForward perform(
		ActionMapping mapping,
		ActionForm form,
		HttpServletRequest request,
		HttpServletResponse response)
{

needs some forward.
For the moment I wrote "return null" but imho thats no prober solution.

Maybe you got an idea.


thanks,

marcus

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message