• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Prashant K. Singh
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I had same problem, i removed the namespace Attribute from struts.xml !
 
sreedhar Lackka
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic