• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

No configuration found for the specified action: 'Login' in namespace: '/jsp'

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am getting error No configuration found for the specified action: 'Login' in namespace: '/jsp' Form action defaulting to 'action' attribute's literal value.

I have checked the mapping for the action: Login in struts.xml and in JSP.

[


And struts.xml looks like:
</action>
<action name="Login" class="com.action.ReportAction" method="execute">
<result name="success">./jsp/index.jsp</result>
<result name="input">./jsp/Login.jsp</result>


JSP page looks like:
<s:form action="Login" method="POST" validate="true" theme="simple" >


</action][/code]
 
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should keep your login action in jsp namespace.

Struts2 NameSpace
 
Ashu Bharadwaj
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply.

I tried by putting Action classes in jsp folder. I copied from WEB-INF/classes to jsp folder in Tomcat6.

Still getting the same result.
 
Ranch Hand
Posts: 300
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ashu,

putting Action classes in jsp folder

.
I suggest you to down load simple example, import project into the eclipse and then run it.
See how it works and then you should start your own application.

Regards
Jatan
 
Don't sweat petty things, or pet sweaty things. But cuddle this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic