Bron Selle wrote:
javax.servlet.ServletException: Could not execute action
Means just that, which means the problem isn't with the result, but
rather the action proceeding it.
For example, does it have a "public String execute()" method?
My current entry xwork.xml looks like this:
<action name="printOffer" class="printOfferAction" >
<result name="success" type="stream">
<param name="contentType">application/pdf</param>
<param name="inputName">inputStream</param>
This means you need to have a method "public InputStream getInputStream()"
<param name="contentDisposition">filename="
coupon.pdf"</param>
Should be either
attachment;filename="coupon.pdf"
or
inline;filename="coupon.pdf"
<param name="bufferSize">1024</param>
If it's at all possible to add contentLength, do so. It's entirely
possible if you don't that it'll call your getInputStream an extra time
and pull out all the info just to find out how long it is, then it'll
call your getInputStream method again to before pulling it all out again
to send down the wire. I know nothing about iText, but if it's built
intelligently and it does the work only when it needs to, it might end
up doing the work twice and making your action take twice as long to load.
</result>
</action>
Then, all you need is a link to your action.
-Dale
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]