Solved

struts error!!

Posted on 2004-04-02
2
549 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 50 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
EJB MDB example 4 89
authenticate preemptively soap ui option 3 172
lessBy10  challenge 15 95
maven disable workspace resolution 1 42
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 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