A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Issue of Struts 2 URI Actions
Joined: Aug 08, 2005
Jan 09, 2010 11:42:51
I've just faced something weird and couldn't find anything useful regarding to it after some googling.
2.1.6, Spring 2.5, Hibernate 3.0.
<struts> <constant name="struts.enable.DynamicMethodInvocation" value="false" /> <constant name="struts.objectFactory" value="spring" /> <constant name="struts.devMode" value="true" /> <package name="default" extends="struts-default" namespace="/"> <action name="" class="RootAction"> <result name="index">/web/content/root/index.jsp</result> </action> <action name="about" class="AboutUsAction"> <result name="index">/web/content/about/index.jsp</result> </action> <action name="advertise" class="AdvertiseAction"> <result name="index">/web/content/advertise/index.jsp</result> </action> ... </package> </struts>
Every URI works perfectly ok such as
as well as these URIs(!):
They are all working as long as the last one is correct and being in the struts.xml file.
My question is, Am I missing something, somewhere in my code? Or is this just a known bug of struts 2?
I'm apologizing beforehand if the question is basic or something!
Joined: Aug 03, 2008
Jan 11, 2010 04:41:44
There was a similar question some time ago
. Try to do what David said (and ignore what I said as its wrong
SCJP 6 | SCWCD 5 |
Javaranch SCJP FAQ
Joined: Aug 08, 2005
Jan 12, 2010 04:01:34
Thanks for your response Ankit. I've managed it someway, with my piece of code, but I should look up Convention Plugin as well.
By the way, It's great, specially the words in the brackets!!
I agree. Here's the link:
subject: Issue of Struts 2 URI Actions
WARNING: Could not find action or result
Newbie HelloWorld Struts.xml problem
Request not able to reach Action class in Struts2
Issue configuring global results
Beginner Spring with Hibernate integrated. Is this code correct?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015