java - Could not find action or result -


i getting:

com.opensymphony.xwork2.util.logging.commons.commonslogger warn not find action or result there no action mapped namespace [/] , action name [] associated context path [/]. - [unknown location]

i using combination of rad + websphere development following code:

struts.xml:

<struts>     <constant name="struts.devmode" value="true" />     <constant name="struts.custom.i18n.resources" value="applicationresources" />     <package name="default" extends="struts-default" namespace="/"> 

web.xml:

<filter>     <filter-name>struts2</filter-name>     <filter-class>          org.apache.struts2.dispatcher.ng.filter.strutsprepareandexecutefilter      </filter-class> </filter> <filter-mapping>     <filter-name>struts2</filter-name>     <url-pattern>/*</url-pattern> </filter-mapping> <welcome-file-list>     <welcome-file>login.jsp</welcome-file> </welcome-file-list> 

i have read blogs & tried mentioned on sites. error because of different reason unable find .

there's no configuration action name [] , namespace [/]. problem. solve should add configuration. supposed have index.jsp file in root folder. using actionless result can redirect page.

<package name="default" extends="struts-default" namespace="/">    <action name=""><result>/index.jsp</result></action>     ... 

Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -