Yes, I have one....
<action attribute="formLogin" name="formLogin" path="/login"
scope="request" type="com.strutsfaces.LoginAction" validate="false">
<forward name="success" path="/userLogin.faces" contextRelative="true"
/>
<forward name="failure" path="/formLogin.faces" contextRelative="true"
/>
</action>
Thanks,
Rodrigo Pereira
On 1/5/07, Craig McClanahan <[EMAIL PROTECTED]> wrote:
On 1/5/07, Rodrigo Pereira <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I am new to JSF and Struts-Faces integration library. I am facing a
> problem
> but I did not find any documentation about this.
>
> That's the error I am getting:
>
> SEVERE: Servlet.service() for servlet jsp threw exception
> java.lang.IllegalArgumentException: Cannot find action '/login.do'
> configuration
The implication of this message is that there is no action named "/login"
in
your Struts configuration files. Do you have one?
Craig
at org.apache.struts.faces.renderer.FormRenderer.encodeBegin(
> FormRenderer.java:115)
> at javax.faces.component.UIComponentBase.encodeBegin(
> UIComponentBase.java:317)
> at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java
> :374)
> at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java
> :261)
>
> The action is there in my struts-config.xml as following:
>
> <action attribute="formLogin" name="formLogin" path="/login"
> scope="request" type="com.strutsfaces.LoginAction" validate="false">
> <forward name="success" path="/userLogin.faces"
> contextRelative="true"
> />
> <forward name="failure" path="/formLogin.faces"
> contextRelative="true"
> />
> </action>
>
> Does anybody can help me?
>
> Thanks,
> Rodrigo Pereira
>
>