www.webdeveloper.com
Results 1 to 4 of 4

Thread: fn:contains()

  1. #1
    Join Date
    Apr 2013
    Posts
    3

    Exclamation fn:contains()

    <c:choose>
    <c:when test="${fn:contains(xxx,'\\')}">
    <cut value="${xxx}" />
    </c:when>

    i need to check using this method backslash character is contains or not?!

    how to pass in this method backslash character as second parameter.

  2. #2
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,373
    Enclose your script betwee [ code] and [ /code] tags (without the spaces)
    to avoid getting emoticons in your script postings.

    First benefit: Easier to read
    Second: Retains formatting

    Finally, can you explain your problem with a bit more words?
    I'm not really sure what your question is about.

  3. #3
    Join Date
    Apr 2013
    Posts
    3

    Question backslash character contains or not

    Hi Merker,

    i need to test whether got value contains backslash character or not...like.....small example
    <c:choose>
    <c:when test="${fn:contains(xxxItem.attrvalue,'test')}">
    <cut value="${filterItem.attribute}" />
    </c:when>

    whwtever got value using xxxItem.attrvalue,if it contains "test" it will execute the condition...!so insteadof test string i need to pass \ backslash character.....i'm unable to check whteher \ contains or not....but in java....String sample="\\"; it will print \ character....?!

  4. #4
    Join Date
    Jul 2008
    Location
    urbana, il
    Posts
    2,787
    is this even a javascript question?

    something goes with that XML...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles