cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chitharanjan Das" <c...@accordiasys.com>
Subject Urgent : Question about Actions:
Date Sun, 17 Mar 2002 23:57:49 GMT

Can we control the execution of Actions in an Adtion Set from within
Actions.


Let us assume we have the following sitemap defn

	<map:action-set name="actionset">
 		<map:act type="locale">
 			<map:parameter name="LOCALE" value="de_DE" />
 		</map:act>	
 		<map:act type="sessionValidate" />
 		<map:act type="sessionRedirect" />
 		<map:act type="processRequest" />
 		<map:act type="doProcess1" action="Process1" />
 		<map:act type="doProcess2" action="Process2" />
 		<map:act type="doProcess3" action="Process3" />
 	</map:action-set>



In the code of Action class for processRequest 
	public Map act (Redirector redirector, 
                  SourceResolver resolver, 
                  Map objectModel, 
                  String source, 
                  Parameters params) {
    Map sitemapParams = new HashMap();
	
	String action = getProcessGivenRequest(request,params);
	
	//Setting the cocoon action here
	objectModel.put(Constants.ACTION_PARAM,action);	

  } 
  
  
  Now will this effect the pipeline processing, for instance, if the
action returned  was "Process1" in the
  above function, should in execute the the action "doProcess1", as
defined in above sitemap defn.
  
  
  The point I am trying to make is is it possible to set Cocoon action
from within actions or should it be a request parameter only....
  
  
  



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message