Results 1 to 3 of 3

Thread: URL in Value - Problem with &-Character

  1. #1
    Join Date
    Mar 2007
    Posts
    2

    Default URL in Value - Problem with &-Character

    Hey,

    i am trying to pass a java.net.URL via list with value items to a bean in my applicationContext.

    code:
    Code:
    <list>
         <value type="java.net.URL">
              http://www.muh.net?&timerange_3=next 
         </value>
    </list>
    the problem is the &-character because &timerange_3 should be an entity as the log file says and therefore has to end with a ';'

    Do you know how i can pass by the &-character only as a string?

  2. #2
    Join Date
    Mar 2007
    Posts
    515

    Default

    Use '&amp;' instead of '&'.
    Code:
    <list>
         <value type="java.net.URL">
              http://www.muh.net?&amp;timerange_3=next 
         </value>
    </list>

  3. #3
    Join Date
    Mar 2007
    Posts
    2

    Default

    thanks, got it working.

Posting Permissions

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