Hi Matt,
Im guessing just the forward paths.
I have this in the Action class
* @struts.action name="purchaseOrderForm" path="/pdfPurchaseOrder"
scope="request"
* validate="true" parameter="method" input="edit"
* @struts.action-forward name="pdf"
path="/WEB-INF/pages/purchaseOrderForm.pdf"
on the edit form I added a second form with the pdf button (Note I
switched to freemarker for this one)
<@html.form action="pdfPurchaseOrder" method="post"
styleId="purchaseOrderForm" onsubmit="return
validatePurchaseOrderForm(this)">
<@html.hidden property="id"/>
<li class="buttonBar bottom">
<@html.submit styleClass="button" property="method.pdf"
onclick="bCancel=false">
<@fmt.message key="button.pdf"/>
</@html.submit>
</li>
</@html.form>
in decorator.xml excludes section I tried
<pattern>*.pdf</pattern> and
<pattern>/*.pdf</pattern>
but not at the same time.
thanx
Fred
Matt Raible wrote:
When you exclude it from decorators.xml, are you excluding both the
request and the forward paths?
Matt
On 8/5/07, Fred Forester <[EMAIL PROTECTED]> wrote:
I was able to get this concept working by creating my own version of the
freemarker servlet and adding fop to it. then mapping *.pdf to this new
servlet. however, it seems that sitemesh is getting in the way. if I
disable sitemesh it works like a charm. I tried to exclude *.pdf from
decorators.xml but that doesn't seem to work.
is there an easy was around this without having to go the route of a
exportFilter like displaytag does?
Thanx
Fred
Fred Forester wrote:
hi all,
I worked on a different j2ee framework for the past year that had the
ability to run a Freemarker template that could generate fo xsl. a
viewhandler could then invoke fop to render the pdf. is something like
that possible with struts? Im using appfuse 1.9.
Thanx
Fred
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]