cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Goers" <Ralph.Go...@dslextreme.com>
Subject Re: Cocoon portal and META Tag
Date Tue, 23 Nov 2004 19:49:48 GMT
I'm a little confused by this.  Is this the output from a cocoon portlet?
Portals generally only want portlets to emit stuff that goes within body
tags.  I'm pretty sure the portal will generate its own <head> tags so
yours would be another set.


Anna Bikkina said:

> head tag in wait.xsp
>
>
> <head>
>
> String requestattr = "0;url=portal?nowait=true";
> Enumeration attrnames = request.getParameterNames();
> while(attrnames.hasMoreElements()) {
>     String attrname = (String)attrnames.nextElement();
>     if(!attrname.equals("nowait")) {
> 	    String attrvalue = request.getParameter(attrname);
> 	    requestattr = requestattr + "&" + attrname + "=" + attrvalue;
> 	}
> }
> <meta http-equiv="refresh" >
> <xsp:attribute
> name="content"><xsp:expr>requestattr</xsp:expr></xsp:attribute>
> </meta>
> </head>
>
>       	<!-- SAMPLE OC  SEARCH IN SITEMAP -->
>    <map:match pattern="sampleoc.xsp">
> 	<map:select type="request-parameter">
>     		<map:parameter name="parameter-name" value="nowait"/>
>     		<map:when test="false">
>    		  <map:generate type="serverpages" src="wait.xsp" />
> 		</map:when>
>     		<map:otherwise>
>     		  <map:act type="get-sample">
>     			<map:parameter name="sample" value="{request-param:sampleoc}"/>
>     			<map:generate type="serverpages" src="traderocresult.xsp"/>
>
>     		</map:act>
>
>     		</map:otherwise>
>     		</map:select>
>
>      <map:transform/>
>      <map:serialize/>
>    </map:match>
>    <!-- END OF SAMPLE OC SEARCH-->


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


Mime
View raw message