Have Struts forward to a servlet?

R

richardsosborn

We have a situation where we need to create a XLS file from a web
application.
The only way we could come up to create the file and have it DL to the
browser
was by forwarding to a servlet. Then the servlet would create the file
and send it to the client. The XLS file would be mapped as a MIME type
in the web.xml.
Problem is, can struts forward to a servlet? If so, what would the
line look like?

<forward name="excel_file" path="/reports/my_servlet"/>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top