aspose file tools*
The moose likes Struts and the fly likes how to select mutiplse values in SELECT TAG Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to select mutiplse values in SELECT TAG" Watch "how to select mutiplse values in SELECT TAG" New topic
Author

how to select mutiplse values in SELECT TAG

kajal mukergi
Ranch Hand

Joined: Mar 22, 2007
Posts: 102
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

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to select mutiplse values in SELECT TAG
 
Similar Threads
html:link forward problem.
Exception while running Struts
Cannot find ActionMappings or ActionFormBeans collection
JspException: Cannot find ActionMappings or ActionFormBeans
Cannot find ActionMappings or ActionFormBeans