bean message key as a variable..

Discussion in 'Software' started by newbee, Apr 22, 2010.

  1. newbee

    newbee

    Joined:
    Apr 21, 2010
    Messages:
    2
    Hi All,

    I have a drop down "myfield" with options such as app_up and app_down..
    In my applicationresources.properties file I have 2 messages usernotify.app_up="APP up"
    usernotify.app_down="APP down"

    When I select app_up in my jsp page drop down I want to load <bean:message key="usernotify.app_up" />"; in a textarea called 'subject'.

    Can I concatenate the drop down value
    var mykey="usernotify." + myfield.value ;
    and then use this variable as
    document.frm.subject.value="<bean:message key=mykey />";

    Thank you
     
    newbee, Apr 22, 2010
    #1
    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. Waterperson77

    Mr. Bean Complete Bean NOT complete!!

    Waterperson77, Dec 9, 2003, in forum: DVD Video
    Replies:
    5
    Views:
    1,699
    Mark Aldridge
    Dec 10, 2003
  2. Dan P.

    Mr Bean the Whole Bean on PAL?

    Dan P., Mar 5, 2005, in forum: DVD Video
    Replies:
    0
    Views:
    410
    Dan P.
    Mar 5, 2005
  3. newbee
    Replies:
    0
    Views:
    1,424
    newbee
    Apr 21, 2010
  4. oberr
    Replies:
    0
    Views:
    874
    oberr
    Oct 3, 2011
  5. oberr
    Replies:
    0
    Views:
    941
    oberr
    Oct 3, 2011
Loading...

Share This Page