Ahaaaa, your excludes are mapped to your actions....when i tried to mapp my
excludes to an action it works.
But i dont want to map to an action, i want to map the exclude to a jsp
page. This is the thing that is
not working.

Thanks ted for your help

Regards,

        Juan 

-----Mensaje original-----
De: Tom Ziemer [mailto:[EMAIL PROTECTED] 
Enviado el: MiƩrcoles, 08 de Noviembre de 2006 09:39 a.m.
Para: Struts Users Mailing List
Asunto: Re: SiteMesh

Hello Juan,

I don't know about Struts2 - in Struts 1.2 it works like this:
Link -> LoginAction.do -> login.jsp
where LoginAction.do will perform some work, and then forward to login.jsp
without redirecting. My SiteMesh excludes are mapped to the actions and not
to the JSPs.

Unfortunately I know absolutely nothing about Struts2, and how it works
internally, so maybe somebody else could comment on this.

Regards,
Tom

Juan Espinosa wrote:
> This is my problem
> 
> IE link ==> Customer!input.action ==> /private/login.jsp
> 
> the url of my request is ??? 
> http://www.mysite.com/Customer!input.action,
> sitemes look on the
> excludes but there is no exclude for this url, so it decorate the page 
> rendered
> 
> But really this url is a page, nooooo. the the page is 
> /private/login.jsp wich is in the excludes
> 
> 
> I dont understand this cuestion. im using struts2
> 
> Are you redirecting (redirect="true") to the JSP in your 
> struts-config.xml
> 
> this is my struts config
> <action name="Customer!*" method="{1}"
> class="uy.com.nilo.web.actions.CustomerAction">
>       <result name="input">/private/login.jsp</result>
>  </action>
> 
> Regards,
> 
>       juan
> 
> 
> -----Mensaje original-----
> De: Tom Ziemer [mailto:[EMAIL PROTECTED]
> Enviado el: MiƩrcoles, 08 de Noviembre de 2006 08:24 a.m.
> Para: Struts Users Mailing List
> Asunto: Re: SiteMesh
> 
> Hi Juan,
> 
> I am not sure I really get your problem. However, I assume, your 
> problem lies in forwarding. Are you redirecting (redirect="true") to 
> the JSP in your struts-config.xml? If so, disable the forwarding and 
> this ought to fix your problem, otherwise a new request is issued that 
> will not match your definitions in <excludes.xml>. As I mentioned 
> before, I am using SiteMesh as well and my excludes are working nicely.
> 
> HTH,
> Tom
> 
> Juan Espinosa wrote:
>> Hi Tom as you say i made some changes, i create a sitemesh file and 
>> put the line you told me but it didnt work.
>> I google for this problem and i could realise that many people have 
>> this problem.
>> The problem is that if i call an action like this
>>
>> <H4><a href="Customer!input.action">Area privada</a></H4> the 
>> resource that im getting is Customer!input.action and not the page 
>> /private/login.jsp, i use and action because before showing login.jsp 
>> i want to make some things in my businnes layers.
>>
>> Besides this i was debugging sitemesh and i found that sitemesh use 
>> requestURI to know if a page should be decorated and requestURI in my 
>> case is returning Customer!input.action.
>>
>> this is my action:
>>
>>              <action name="Customer!*" method="{1}"
>> class="uy.com.nilo.web.actions.CustomerAction">
>>                      <result name="input">/private/login.jsp</result>
>>              </action>
>>
>> I found that if you want to use velocity or freemaker you must use 
>> another type of result.
>> this is applicable to sitemesh ?? Im using only sitemesh without 
>> freemaker or velocity
>>
>> Anyone could help me ?? :)
>>
>> Regards,
>>
>>              Juan            
>>
>>  
>>
>> -----Mensaje original-----
>> De: Tom Ziemer [mailto:[EMAIL PROTECTED]
>> Enviado el: Martes, 07 de Noviembre de 2006 09:38 a.m.
>> Para: Struts Users Mailing List
>> Asunto: Re: SiteMesh
>>
>> Hi Juan,
>>
>> did you add something like:
>> <excludes file="/WEB-INF/excludes.xml" /> to your sitemesh.xml
>>
>> I am using SiteMesh with Struts and it's working just great (excludes 
>> as well).
>>
>> HTH,
>> Tom
>>
>> Juan Espinosa wrote:
>>> Hi to all, im using sitemesh and i have a little problems with 
>>> excludes I have an action that load some data from a db and then 
>>> goes to a
>> jsp page.
>>>  
>>>        <action name="LoadSomeDataAndGoToJSP" class="test.TestAction">
>>>             <result>/private/someJSP.jsp</result>
>>>         </action>
>>>  
>>> i put in the exclude section of the decorators.xml this page 
>>> /private/someJSP.jsp but sitemesh decores it.
>>>  
>>>     <excludes>
>>>         <pattern/private/someJSP.jsp</pattern>
>>>     </excludes>
>>>  
>>> then i put this, and it works, sitemesh doesnt decorate it. the 
>>> problem is that i dont want to put the action. I want to put only 
>>> the JSP page.
>>>  
>>>     <excludes>
>>>         <pattern/LoadSomeDataAndGoToJSP!input.action</pattern>
>>>     </excludes>
>>>  
>>> Well, help welcome.
>>>  
>>> Regards,
>>>  
>>>     Juan.
>>>  
>>> PD: i must tell that sitemesh is fantastic, no more putting in my 
>>> pages <jsp:include>.......its amazing....
>>>  
>>>  
>>>  
>>>  
>>>  
>>>
>>>  
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>> --
>> No virus found in this incoming message.
>> Checked by AVG Free Edition.
>> Version: 7.1.409 / Virus Database: 268.13.31/522 - Release Date: 
>> 07/11/2006
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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]
> 
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.409 / Virus Database: 268.13.32/523 - Release Date: 
> 07/11/2006
> 
> 
> 
> ---------------------------------------------------------------------
> 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]



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.32/523 - Release Date: 07/11/2006


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to