cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anna Bikkina <a...@pinksheets.com>
Subject Actions and parameters in sitemap
Date Mon, 23 Feb 2004 18:01:16 GMT
Hi,

I am using multiple action classes to validate my date. I want to display 
error message depending on which action class has failed. I am trying to do 
something like this because that fails. Can someone suggest me how can I do 
this.

I am adding a parameter ERROR after every act and trying to use it in the xsp 
and displaying it. I am not able to get it in the security.xsp.ERROR 
parameter is returning null. Can some suggest a working idea to solve my 
problem.

    <map:match pattern="security.xsp">
    	<map:act type="validator">
    		<map:parameter name="descriptor" value="/usr/local/jboss/tomcat/webapps/
cocoon/historyserver/styles/descriptor.xml"/>
    		
    		<map:act type="startdate" src="security.xsp">
			<map:parameter "ERROR"  value="Invalid start date"/>
    		    	<map:act type="enddate" src="security.xsp">
				<map:parameter "ERROR"  value="Invalid end date"/>
    		    	<map:act type="validateothers" src="security.xsp">
				<map:parameter "ERROR"  value="Invalid other data"/>
    		   		<map:act type="get-security">    			
    		   			
		    		<map:generate type="serverpages" src="securityresult.xsp"/>		    			
		    		<map:transform src="search.xsl"/>     				    
				     <map:serialize/>    
    			</map:act>
    			</map:act>
    			</map:act>
    		</map:act>
    
    	
     <map:generate src="security.xsp" type="serverpages"/>
	  
     	
     <map:transform src="search.xsl"/>     
     
     <map:serialize/>    
   </map:match>


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


Mime
View raw message