cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anna Bikkina <a...@pinksheets.com>
Subject Re: Cocoon portal and META Tag
Date Wed, 24 Nov 2004 15:53:29 GMT

Yes my html has 2 head tags. Do you think that matters?


On Tue, 2004-11-23 at 14:49, Ralph Goers wrote:
> 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
> 


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


Mime
View raw message