Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Action class name configuration

 
maganti suryanarayana
Ranch Hand
Posts: 53
Java MyEclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
jatan bhavsar
Ranch Hand
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is most likely the action name is referring to a Spring bean, meaning the Spring plugin is being used.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic