I don't know if it would help you, but whenever I've had the
phenomenon of repeating content on a page, it is almost always related
to encountering an exception in one of the struts iteration tags. The
first place I look are the log files to see if there's a stack trace.
Hope that helps.
Eric Rank
On May 15, 2008, at 4:56 AM, Canny Duck wrote:
Hi,
I realized a Struts 2 process to create a new contract. As template
results
I tried JSP and Velocity. All JSP templates are rendered correct,
but the
velocity templates are rendered twice. So I see the same content
twice on
the page.
Are there people with similar problems? Does somebody has a solution?
Greets
I'm using Struts 2.0.11.
struts.xml:
...
<package name="contract" namespace="/contract" extends="base-package">
<result-types>
<result-type name="velocity" default="true"
class="org.apache.struts2.dispatcher.VelocityResult" />
</result-types>
<action name="createContract*" class="CreateContractAction"
method="{1}">
<interceptor-ref name="conversationStack" />
<result
name="input">/WEB-INF/vm/contract/createContract-input.vm</result>
<result
name="success">/WEB-INF/vm/contract/createContract-success.vm</result>
</action>
</package>
...
--
View this message in context:
http://www.nabble.com/Struts-2---Velocity-Templates-rendered-twice-tp17250628p17250628.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
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]