Re: Confused - Scaffold and Action Mapping

2003-09-18 Thread Ted Husted
1. The .article.Menu tile uses the menuForm bean.

2. Check the import statement at the top of the file =:0) It's just a 
static String.

HTH, Ted.

Caroline Jen wrote:
I have problem to understand the action mapping shown
below:
code:
-

  parameter="application;HOURS"> 


 

-

It looks to me that 

1. menuForm is the logical name for the form bean as 
   given in the form-bean segment of the 
   struts-config.xml file.  

Question 1: What is the rational of having 'menuForm'
in the org.apache.struts.scaffold folder in
ActionMapping? 

2. the action that is going to be executed is 
   the ExistsAttributeAction in the 
   org.apache.struts.scaffold folder.  If the 
   condition returned in that action is 'success', the

   article.Menu tile will render the next page. 

   The code of ExistsAttributeAction.java shows:

   mapping.findForward(Tokens.SUCCESS);

Question 2: Where can I find Tokens.SUCCESS maps to
'success'?
Thank you for your help.

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Ted Husted,
  Junit in Action  - ,
  Struts in Action - ,
  JSP Site Design  - .


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Confused - Scaffold and Action Mapping

2003-09-17 Thread Caroline Jen
I have problem to understand the action mapping shown
below:

code:
-

 


 

-

It looks to me that 

1. menuForm is the logical name for the form bean as 
   given in the form-bean segment of the 
   struts-config.xml file.  

Question 1: What is the rational of having 'menuForm'
in the org.apache.struts.scaffold folder in
ActionMapping? 

2. the action that is going to be executed is 
   the ExistsAttributeAction in the 
   org.apache.struts.scaffold folder.  If the 
   condition returned in that action is 'success', the

   article.Menu tile will render the next page. 

   The code of ExistsAttributeAction.java shows:

   mapping.findForward(Tokens.SUCCESS);

Question 2: Where can I find Tokens.SUCCESS maps to
'success'?

Thank you for your help.


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]