Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Struts-Faces action

Rodrigo Pereira

2007-01-05

Replies:

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
  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
©2008 junlu.com - Jax Systems, LLC, U.S.A.