File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Action class name configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Action class name configuration" Watch "Action class name configuration" New topic
Author

Action class name configuration

maganti suryanarayana
Ranch Hand

Joined: Mar 30, 2010
Posts: 53

Hi, i am new to struts 2 and the action class name is in lower class in .xml file while the original class name is different

<action name="loc-start-create" class="createLocationAction"
method="display">

The action class name is CreateLocationAction here class name starts with Capital C but in configuration its small c. is it possible ?

Thanks

Surya


surya
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi Maganti,

Action class must match .it must be with the package like your class is in com folder then it must be come like com.createLocationAction.

Regards
Jatan
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It is most likely the action name is referring to a Spring bean, meaning the Spring plugin is being used.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Action class name configuration
 
Similar Threads
Struts2 Iteator Tag with object in object
Action configuration problem in Struts 2
validation problem.
How to use Struts 2 with JFreeChart?
struts1.1 and tomcat 5.5.27