Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Merging JSF script and JSP scriptlet => possible?  RSS feed

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
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!