You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Jean-Pierre Astier <jp...@janvier.fr> on 2006/03/17 16:18:54 UTC

problem with fn:substringBefore

Hello all,

I've got a problem with this jsp code in NetBeans 5 :

<c:choose>
                      <c:when test="${recherche[1]== 
(fn:substringBefore(commerciaux,"__"))}">
                                 <option selected="selected" value="$ 
{fn:substringBefore(commerciaux,"__")}">${fn:substringAfter 
(commerciaux,"__")}</option>
                       </c:when>
                        <c:otherwise>
                                 <option value="${fn:substringBefore 
(commerciaux,"__")}">${fn:substringAfter(commerciaux,"__")}</option>
                         </c:otherwise>
    </c:choose>



This line :

<c:when test="${recherche[1]==(fn:substringBefore(commerciaux,"__"))}">

get this error in netbeans :"equal symbol expected"

Any ideas ????

Jean-Pierre Astier

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Re: problem with fn:substringBefore

Posted by Jean-Pierre Astier <jp...@janvier.fr>.
Thanks Martin, now all is ok !!!

Le 17 mars 06 à 17:50, Martin Cooper a écrit :

> On 3/17/06, Jean-Pierre Astier <jp...@janvier.fr> wrote:
>>
>> Hello all,
>>
>> I've got a problem with this jsp code in NetBeans 5 :
>>
>> <c:choose>
>>                       <c:when test="${recherche[1]==
>> (fn:substringBefore(commerciaux,"__"))}">
>>                                  <option selected="selected" value="$
>> {fn:substringBefore(commerciaux,"__")}">${fn:substringAfter
>> (commerciaux,"__")}</option>
>>                        </c:when>
>>                         <c:otherwise>
>>                                  <option value="${fn:substringBefore
>> (commerciaux,"__")}">${fn:substringAfter(commerciaux,"__")}</option>
>>                          </c:otherwise>
>>     </c:choose>
>>
>>
>>
>> This line :
>>
>> <c:when test="${recherche[1]==(fn:substringBefore 
>> (commerciaux,"__"))}">
>>
>> get this error in netbeans :"equal symbol expected"
>>
>> Any ideas ????
>
>
> You have nested double quotes. Try changing the outer set of quotes to
> single quotes.
>
> <c:when test='${recherche[1]==(fn:substringBefore 
> (commerciaux,"__"))}'>
>
> --
> Martin Cooper
>
>
> Jean-Pierre Astier
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>>
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Re: problem with fn:substringBefore

Posted by Martin Cooper <ma...@apache.org>.
On 3/17/06, Jean-Pierre Astier <jp...@janvier.fr> wrote:
>
> Hello all,
>
> I've got a problem with this jsp code in NetBeans 5 :
>
> <c:choose>
>                       <c:when test="${recherche[1]==
> (fn:substringBefore(commerciaux,"__"))}">
>                                  <option selected="selected" value="$
> {fn:substringBefore(commerciaux,"__")}">${fn:substringAfter
> (commerciaux,"__")}</option>
>                        </c:when>
>                         <c:otherwise>
>                                  <option value="${fn:substringBefore
> (commerciaux,"__")}">${fn:substringAfter(commerciaux,"__")}</option>
>                          </c:otherwise>
>     </c:choose>
>
>
>
> This line :
>
> <c:when test="${recherche[1]==(fn:substringBefore(commerciaux,"__"))}">
>
> get this error in netbeans :"equal symbol expected"
>
> Any ideas ????


You have nested double quotes. Try changing the outer set of quotes to
single quotes.

<c:when test='${recherche[1]==(fn:substringBefore(commerciaux,"__"))}'>

--
Martin Cooper


Jean-Pierre Astier
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>
>