Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

Indrasish Ghosh

Greenhorn
+ Follow
since Oct 08, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Indrasish Ghosh

I completly agree. Let me explain it in different way. If I have something to initialize and those are mandetory instance variables then we usually put those in constructors and do not keep any default (blank) construtor. This is a way we restrict the comsumer of that class to go ahead without required fields being initialized.
12 years ago
I know the post is pretty old but can somebody help me in getting this issue resolved. I am using RAD 7.5. When I am trying to hit the URL it is saying me no action found. Here it goes :-

Struts.xml
<struts>
<constant name="struts.devMode" value="true"/>
<package name="default" namespace="/" extends="struts-default">
<action name="verysimple" class="com.packt.s2wad.ch02.sanity.VerySimpleAction">
<result>/WEB-INF/jsps/VerySimple.jsp</result>
</action>
</package>
</struts>

In Web.xml (Not very sure why)
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>

JSP file exists there.

When I run with a URL http://localhost:<port>/<WebProjectName>/verysimple it says

Dispatcher W com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn Could not find action or result
There is no Action mapped for namespace / and action name verysimple. - [unknown location]
at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:178)
at org.apache.struts2.impl.................................

Any Idea on this?
12 years ago