passing parameters from visual web jsf to a servlet

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Silgd1
    New Member
    • Sep 2007
    • 25

    passing parameters from visual web jsf to a servlet

    Hi All,

    I am trying to pass parameters from a mutiple selection listbox contained in a visual web jsf page to a servlet. I am using netbeans 6.0.1, and already have a method written in the java portion of the jsf page to get the selected item from the listbox and return them as a string. An example of the returned string looks like this '(8, 10, 11)'. I need to pass the string to a servlet where they will be used by a method in another class as the parameters in a call to a stored procedure. I need to know how to pass this string to the servlet. Is it possible to use a hidden field within the form?? Do I even need to the method I created to get the selected items from the listbox, or can I just tie the hidden field to the listbox to get those selected items.

    Any help is greatly appreciated.

    Thanks
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Greetings and salutations, Silqd1!

    Perhaps this might help:


    Good luck, and in a bit!

    Comment

    Working...