Connecting Tech Pros Worldwide Forums | Help | Site Map

passing parameters from visual web jsf to a servlet

Newbie
 
Join Date: Sep 2007
Location: Buffalo, NY
Posts: 25
#1: Jul 25 '08
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's Avatar
Moderator
 
Join Date: Nov 2006
Location: Upstate NY - US
Posts: 2,268
#2: Aug 10 '08

re: passing parameters from visual web jsf to a servlet


Greetings and salutations, Silqd1!

Perhaps this might help:
http://www.netbeans.org/kb/60/web/cl...rendering.html

Good luck, and in a bit!
Reply