aspose file tools*
The moose likes Struts and the fly likes Doubt in LookupDispatchAction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Doubt in LookupDispatchAction" Watch "Doubt in LookupDispatchAction" New topic
Author

Doubt in LookupDispatchAction

Dash Abhisek
Ranch Hand

Joined: Jul 20, 2008
Posts: 63
Hi All,

I am new to struts and using version 1.1 and I was going through LookupDispatchAction and I have a doubt:

In lookupdispatch action we need to implement getkeymethodmap where the key value pair has to be added in the map which is also there in your property file.I am unable to understand if the struts framework will be using the map to get to the method that is to be invoked what is the reason to mention it in a property file once again?

Hoping this to be a valid question.

Thanks in advance.
bhavani evuri
Greenhorn

Joined: Jul 22, 2009
Posts: 8
(org.apache.struts.actions.DispatchAction) is one of the Built-in Actions provided along with the struts framework.

The org.apache.struts.actions.DispatchAction class enables a user to collect related functions into a single Action. It eliminates the need of
creating multiple independent actions for each function. Here in this example you will learn more about Struts Dispatch Action that will help you grasping the concept better.do want examples

just follow below link

http://infochannel.weebly.com/javaj2ee.html



shivendra tripathi
Ranch Hand

Joined: Aug 26, 2008
Posts: 263
Application.properties file use to decouple the name appeared on jsp to the method name getting called in action class. You can map key of the property file to different value. And still call the same method in action class. This is mainly used to achive Internationlization, where you will be displaying button or link name in different language. there we use message key and we can use same message key as value of property file.


SCJP 1.5(97%) My Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt in LookupDispatchAction