cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ehab Jewabreh <e.jewab...@bonelabs.com>
Subject Re: AW: assigning variable to select attribute
Date Thu, 26 Oct 2000 12:39:17 GMT
Hi Tommy,

Thanks for replay, but it doesn't work.


p.s: ja, i am Ehab from berlin. I will send an Email...



"Santoso, Tommy" wrote:
> 
> Hi Ehab,
> 
> Are you Ehab from berlin?
> how are you mate? Do you remember me?

 
> Not sure if you can do this, just try it :o)
> ...
> select="domain[child::name=&lt;xsp:expr&gt;domainName&lt;xsp:expr&gt;]/actio
> n" ..
> 
> pls. tell me if it works or if you know me :-)
> 
> Cheers,
> Tommy
> 
> -----Urspr√ľngliche Nachricht-----
> Von: Ehab Jewabreh [mailto:e.jewabreh@bonelabs.com]
> Gesendet am: Mittwoch, 25. Oktober 2000 11:20
> An: cocoon-users@xml.apache.org
> Betreff: Re: AW: assigning variable to select attribute
> 
> Hi,
> 
> thanks for reply, but i didn't understand the answer. please read the
> below peace of source code in order to understand my problem. what may i
> assign in the select attribute instead of the variable domainName.
> 
> <xsp:logic>
>   Enumeration    e = request.getParameterNames();
> 
>    if ((e != null) &amp;&amp; (e.hasMoreElements())) {
>    <xsl:content>
>           <xsp:logic>
>            while (e.hasMoreElements()) {
>                String domainName = (String) e.nextElement();
>                String act = request.getParameter(domainName);
> 
>                if(domainName.indexOf('.')!= -1 ){
>                   <item>
>                      <fp:write
> select="domain[child::name=domainName]/action" to="external-item">
>                      <xsp:expr>act</xsp:expr>
>                      </fp:write>
>                    </item>
>               }
>             }
>             </xsp:logic>
>             </xsl:content>
>     }
> </xsp:logic>
> 
> Gabi Brysch wrote:
> >
> > hi,
> >
> > >>>is there anybody, who can help a cocoon beginner to solve this problem:
> >
> > >>>when i assign the variable "domainName" in the select attribute i get
a
> > >>>null pointer exception.
> >
> > >>>domainName ="sun.com";
> > >>><fp:write select="domain[child::name=domainName]/action"
> > >>>to="external-item">
> > >>>                     <xsp:expr>act</xsp:expr>
> > >>>                     </fp:write>
> >
> > does it work if you don't use a variable like ???
> > ...
> > <fp:write select="domain[child::name='sun.com']/action"
> to="external-item">
> > ...
> >
> > did you use any 'tag' to declare the variable domainName ???
> >
> > GABI
> >
> >
> >
> > Thanks.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> ---------------------------------------------------------------------
> 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