my dog learned polymorphism
The moose likes Struts and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark ""No configuration found for the specified action"" Watch ""No configuration found for the specified action"" New topic

"No configuration found for the specified action"

Karl Krasnowsky
Ranch Hand

Joined: Jan 16, 2009
Posts: 97
When running my struts 2 application I'm getting a warning (under both JBoss an GF as's)
No configuration found for the specified action: 'login.action' in namespace: ''. Form action defaulting to 'action' attribute's literal value.

Everything renders fine, I just get this warning and would like to get rid of it...

My package definition is this:

and the jsp reference is like this:

As noted, the application runs fine, but is spitting out this warning message that seems too serious sounding to simply ignore.
Any help on this? I've attempted to rename the action in the jsp to simply "login" and adding a "namespace" specifier in the form definition to "/", but neither has had any effect.

[SCJP 6]
[SCBCD in process]
David Newton

Joined: Sep 29, 2008
Posts: 12617

How are you accessing the JSP the first time?
Sabhi Singh

Joined: Oct 18, 2011
Posts: 1
change your form tag as <s:form action="login.action" method="post" namespace="/">
Tomasz Sobal

Joined: Oct 25, 2011
Posts: 3
<s:form action="login" method="post">
<s:textfield name="username" key="label.username" size="20" />
<s:password name="password" key="label.password" size="20" />
<sx:submit method="execute" key="label.login" align="center" />

Just change it like that, warning should dissapear. Your action in config is named "login" not "login.action"
Youdhveer Panwar

Joined: Sep 06, 2007
Posts: 4
To remove this warning you need to change following...

See your struts.xml file what name you have specified...

If you are using namespace / and your action name is 'Login' then replace Login.action to Login as given below...

<s:form action="Login.action" method="post" >

Use below with namespace

1) <s:form action="Login" method="post" namespace="/">


2) <s:form action="/Login" method="post" >

Now you will not get this warning.

For more details

I agree. Here's the link:
subject: "No configuration found for the specified action"
It's not a secret anymore!