• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to select mutiplse values in SELECT TAG

 
kajal mukergi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello friends

i need to select multiple values from select tag get into my action classs


my jsp is like this




and my Dyna form bean is...... like this in Struts-config.xml





and i am getting errors.... like this

"javax.servlet.ServletException: Cannot find bean under name LISTLABELS
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
org.apache.jsp.index_jsp._jspService(index_jsp.java:88)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)"



so what should i do
this very urgent friends...
bye.....

Thank you in advance
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This message is telling you that there is no bean named "LISTLABELS" in any scope. The solution is to have the action that forwards to this JSP create an ArrayList of LabelValueBean objects and put it in request scope under the name "LISTLABELS" prior to forwarding to this JSP.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic