• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Action Mapping issue - There is no Action mapped for action name

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey all

I recently decided to evaluate Struts2 for a big project, but am having difficulties mapping actions. I get the "There is no Action mapped fro action name Login..." error when I try running the blank struts2 application.

Here's my grmnt.xml

<package name="model" namespace="model" extends="struts-default">

<action name="Login" class="com.bubbleclip.model.Login">
<result>/web/jsp/LoginSucess.jsp</result>
</action>

</package>

My directory tree looks like the following:
application/src/com/bubbleclip/model/Login.java
application/src/com/bubbleclip/model/Login-validation.xml
application/src/com/bubbleclip/model/Package.properties
application/src/ grmnt.xml
application/src/struts.xml
application/web/jsp/index.jsp (<a href="<s:url action="Login"/>" target="mainFrame">Login</a>)
application/web/jsp/LoginSucess.jsp
application/web/WEB-INF/web.xml
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And your struts.xml?
reply
    Bookmark Topic Watch Topic
  • New Topic