EL: concat strings

Discussion in 'Java' started by Timo Nentwig, May 8, 2004.

  1. Timo Nentwig

    Timo Nentwig Guest

    Hi!

    How can I concat strings with EL? ${str1 + str2} throws an exception -
    it tries to cast String to Double so the + operator obviously does not
    apply to Strings as it does in Java.

    Timo
    Timo Nentwig, May 8, 2004
    #1
    1. Advertising

  2. Timo Nentwig

    Murray Guest

    Re: concat strings

    "Timo Nentwig" <> wrote in message
    news:...
    > Hi!
    >
    > How can I concat strings with EL? ${str1 + str2} throws an exception -
    > it tries to cast String to Double so the + operator obviously does not
    > apply to Strings as it does in Java.
    >
    > Timo


    ${st1}${str2}
    Murray, May 8, 2004
    #2
    1. Advertising

  3. Timo Nentwig

    Timo Nentwig Guest

    Re: concat strings

    Murray wrote:
    > ${st1}${str2}


    Oops...

    Anyway, there are not string maniuplation facilities at all (substr
    etc.), are there?
    Timo Nentwig, May 8, 2004
    #3
  4. Timo Nentwig

    Murray Guest

    Murray, May 8, 2004
    #4
  5. Timo Nentwig

    Murray Guest

    Murray, May 8, 2004
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ctb
    Replies:
    2
    Views:
    2,531
    S. Justin Gengo
    Jul 18, 2003
  2. =?Utf-8?B?QW5nZWw=?=

    concat a space on an HTML controls innerText property

    =?Utf-8?B?QW5nZWw=?=, Sep 1, 2005, in forum: ASP .Net
    Replies:
    10
    Views:
    1,286
    Jordan
    Sep 1, 2005
  3. Bruce Sam
    Replies:
    7
    Views:
    684
    John C. Bollinger
    Nov 9, 2004
  4. Ben

    Strings, Strings and Damned Strings

    Ben, Jun 22, 2006, in forum: C Programming
    Replies:
    14
    Views:
    756
    Malcolm
    Jun 24, 2006
  5. Replies:
    6
    Views:
    131
    Anno Siegel
    Jul 11, 2005
Loading...

Share This Page