Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Merging JSF script and JSP scriptlet => possible?

Ken Flor
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

thanks for all the help rendered.

I have 1 issue now.

I use JSP to create a Java Beans. I call initParameters to do something and a vector getSymbolMenu() is retrieved. I want to place the items in this vector into a dropdown menu. There is no error. But there is nothing in my dropdown list.

<jsp:useBean id="formHandler" scope="page" class="ed21.nday.bean.CapturingNomParticularsBean">
<jsp:setProperty name="formHandler" property="*"/></jsp:useBean>


<h:selectOneMenu id="myParamId" value="Testing">
Vector symbolMenu = formHandler.getSymbolMenu();

for (int i=0;i<symbolMenu.size(); i++){

<f:selectItem itemLabel=<%=symbolMenu.elementAt(i)%> itemValue=<%=symbolMenu.elementAt(0)%>/>



please help me. Is this possible? thanks
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic