struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Siva Jagadeesan <siva...@gmail.com>
Subject Re: [Shale] Clay and Acegi
Date Wed, 21 Sep 2005 16:01:19 GMT
I tried renaming login.html to login.htm. But it does not get rendered. I am
getting blank page. I am not sure if I am missing anything. Yes i have
changed Clay-template-suffix to *.html

<filter>
<filter-name>shale</filter-name>
<filter-class>
org.apache.shale.faces.ShaleApplicationFilter
</filter-class>
</filter>

<filter-mapping>
<filter-name>shale</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

<!-- Clay template suffix override, default is .clay -->
<context-param>
<param-name>clay-template-suffix</param-name>
<param-value>.html</param-value>
</context-param>

On 9/21/05, Gary VanMatre <gvanmatre@comcast.net> wrote:
>
> >I am trying to setup Acegi security for my project.
> >
> >I have these following files.
> >
> >1) good.html -- Protected Resource
> >2) login.html -- Unprotected Resource
> >
> >login.html is a standard html that has
> ><form action="j_acegi_security_check" method="POST">
> >
> >When I access good.html , acegi filter redirects it to login.html. Clay
> >filter identifies that it needs to render login.html and renders it.
> >Obiviously when login.html is rendered , clay changes the <form> tag to
> ><form id="clayView:_id0:_id63" method="post"
> action="/docs/login_acegi.html"
> >enctype="application/x-www-form-urlencoded">
> >
> >Is there a way I could bypass Clay for login.html alone. Or is there a
> way
> >to instruct Clay not to change the action for login.html.
>
> You might try renaming your login.html to login.htm. I think that should
> work. Full html clay views look at the suffix of the view id. It sounds like
> you have overridden the default and are using "*.html".
>
> >Rgds,
> >--Siva Jagadeesan
>
> Gary
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message