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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "pls answer this" Watch "pls answer this" New topic
Author

pls answer this

Grishma Dube
Ranch Hand

Joined: Jul 01, 2003
Posts: 275
1. what it the purpose of message tag in struts? --- struts
2. what happens if action form tag is not having action form bean associated with it? --- struts
3. which method is called by action form? --- struts
a. Execute()
b. SaveError()
c. GetServlet()
d. Validate()
4. can one action tag is associated with more than one actions?
Thanx in adv
[ March 11, 2004: Message edited by: Grishma Dube ]
poornima balagopal
Ranch Hand

Joined: Dec 02, 2003
Posts: 83
Hi,
1. what it the purpose of message tag in struts? --- struts
Ans : This is used to give user defined messages to the UI.
2. what happens if action form tag is not having action form bean associated with it? --- struts
ans: you will get error. If you are mapping a formBean you have to give the name and a formBean should be associated with the formbean mapping if yuo are giving
And you have to use formBean name in your action mapping
3. which method is called by action form? --- struts
Validate () method. But in struts 1.1 we wont use this
a. Execute()
b. SaveError()
c. GetServlet()
d. Validate()
4. can one action tag is associated with more than one actions?
ans: We usually map only one action with one action mapping. For seperate actions you have to give seperate mapping
Thanx in adv
Please go through jakarta tutorial or onjava.com's tutorial for Struts
It will be very helpful
Rajesh Subbannavar
Greenhorn

Joined: Oct 28, 2002
Posts: 9
Just add on to the above response...
1. Message tag plays a very important role in i18n (internationalization)
of the application. Just place one more application.properties_<other language> to get all your labels converted into the that language, say spanish
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pls answer this
 
Similar Threads
html:form
To retrieve the value from properties file
Action and ActionForm
validation error causes an URL problem!!
Using javascript in Struts