?
Solved

struts error!!

Posted on 2004-04-02
2
Medium Priority
?
558 Views
Last Modified: 2010-04-01
Hi,

I have a enclosing form(form bean) for my JSP page.

In the JSP page for one of the drop down boxs i am populating the data from a Arraylist, which is not part of my form bean
Here is my code
<html:select property="service" size="1" >
<html:options collection="<%=WebConstants.SERVICE_NAMES_LIST%>" property="serviceValues" labelProperty="serviceNames" />      </html:select>

Here "service" is a instance variable of the enclosing form(form bean of the page), it has getter method.

It's populating data into the drop down box, everything is fine till the show of the page.
When i click submit button, it suppose to read the selected value into the enclosing bean(i.e the form bean of the page).
I don't know what the reason is, but it's failing.
It's giving the follwoing error

SRVE0026E: [Servlet Error]-[Cannot find bean under name ServiceNameList]: javax.servlet.jsp.JspException: Cannot find bean under name ServiceNameList
      at org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:407)

What am i doing wrong? Please correct me.

Thanks
0
Comment
Question by:mvkraju
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
kennethxu earned 200 total points
ID: 10743875
>> In the JSP page for one of the drop down boxs i am populating the data from a Arraylist
after you submit, you need to regenereate the ArrayList. or keep the ArrayList in session scope.
0
 

Author Comment

by:mvkraju
ID: 10743975
i want to keep it in the session scope.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
New style of hardware planning for Microsoft Exchange server.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question