Skip to Content
author's profile photo Former Member
Former Member

dropdownListBox in JSP problem

Hi all,

I've a dropdownListBox in my JSP servlet. How can I capture the Text select value without use "onSelect" option?

When I dissable the onSelect option, I can select one list entry but, when I try to read this value from my java class, using:

DropdownListBox ADRECA1 = (DropdownListBox) getComponentByName("ADRECA1");

System.out.println(ADRECA1.getOnSelect());

nothing appear.

Can any expert help me?

Thanks in advance,

David

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2004 at 04:06 PM

    See the API http://media.sdn.sap.com/html/submitted_docs/60_sp2_javadocs/htmlb/com/sapportals/htmlb/DropdownListBox.html

    The getOnSelect method returns the javascript method assigned to when an element is selected.

    What you are looking for is the getSelection method

    Add comment
    10|10000 characters needed characters exceeded