*
The moose likes Struts and the fly likes There is no Action mapped for action name showLogin. - [unknown location] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "There is no Action mapped for action name showLogin. - [unknown location]" Watch "There is no Action mapped for action name showLogin. - [unknown location]" New topic
Author

There is no Action mapped for action name showLogin. - [unknown location]

Prashant K. Singh
Greenhorn

Joined: May 11, 2009
Posts: 18
Hi Dear,

I am creating an application in struts 2.0

I am able to reach the index.html through welcome-file-list perfectly

However when I try to click the link on index.html to pull up the login.jsp I get the following error

HTTP Status 500 -
description The server encountered an internal error () that prevented it from fulfilling this request.

exception

There is no Action mapped for action name showLogin. - [unknown location]
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:186)
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:41)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)

________________________________________________________________________________

My struts.xml file reads as follows:


__________________________________________________________________

My index.html reads as follows:



___________________________________________________________

My web.xml reads as follows:


I am using the login application using the following url

http://localhost:8080/Astralpharma1/roseindia/showLogin.action

Prashant Singh
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Does your log file show any errors on startup? You should have "devMode" turned on during development--it increases the quantity of error messages and reporting available. You can also try using the config-browser plugin to examine what Struts 2 thinks your configuration is.

I don't see anything obviously wrong, so I'm guessing there's a problem on startup. What library files are you deploying?
hamed rafati
Greenhorn

Joined: Feb 05, 2010
Posts: 1
Hi
I had same problem, i removed the namespace Attribute from struts.xml !

E=MC²
sreedhar Lackka
Ranch Hand

Joined: Jul 05, 2008
Posts: 154
Is it worked?

I am also struggling with same error,

Do we need to remove entire "<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">"


this code???
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: There is no Action mapped for action name showLogin. - [unknown location]
 
Similar Threads
mapping error
struts Action mapped error
The requested resource () is not available
File not found error
/struts2tutorial/struts2tutorial/roseindia/showLogin.action) is not available.