Thanks Karan and Susan.

The action tag was indeed incorrect - the input attribute was Page1.jsp
rather than the template JSP.
Hmmm - I am learning!



Adam



-----Original Message-----
From: karan kondal [mailto:[EMAIL PROTECTED] 
Sent: 13 May 2004 14:07
To: Struts Users Mailing List
Subject: Re: Newbie question regarding Tiles and ActionErrors


Hi

I think you should check your <action> tag for the
input attribute. input attribute should be having the
name of the file you want to display in case of any
error from validation

cheers
kk

PS: let me know if that help

--- Adam Lipscombe <[EMAIL PROTECTED]>
wrote:
> Folks,
>  
>  
> I am a struts newbie trying to create a test app
> using Struts 1.1, JSP with
> Tiles.
>  
> My problem is that I am using Tiles to construct
> templated JSPs.
> One of the JSP elements inserted into the template
> has a form that captures
> user input.
> When the form is submitted and the ActionForm
> validation fails, the JSP
> template element re-displayed, but the entire
> template is not.
> What I want is for the whole template to be
> redisplayed.
>  
>  
> My template looks like this:
>  
> file WizardTemplate1.jsp
>  
> <tiles:insert page="/pages/layouts/WizardLayout.jsp"
> flush="true" >
>   <tiles:put name="header"
>
value="/pages/wizards/newclaimwizard/PageHeader.jsp"/>
>   <tiles:put name="body" 
> value="/pages/wizards/newclaimwizard/Page1.jsp"/>
> </tiles:insert>
> 
> If  the /pages/wizards/newclaimwizard/Page1.jsp
> ActionForm validation fails
> then Page1 is re-displayed alone. What I want is for 
> WizardTemplate1.jsp to be re-displayed so that the PageHeader.jsp 
> element is also displayed.
>  
>  
>  
> Please accept my apologies is this is obvious. I
> have scoured the info put
> cant find anything that allows me to specify the JSP
> that gets displayed
> when an ActionError is returned from a ActionForm.
>  
>  
>  
> TIA - Adam
> 



        
                
__________________________________
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 

---------------------------------------------------------------------
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]

Reply via email to