Solved

I get error: useBean: Duplicate bean name: {0}

Posted on 2016-07-26
1
162 Views
1 Endorsement
Last Modified: 2016-08-01
I get error: ..useBean: Duplicate bean name: {0}..
for this tag
<jsp:useBean id="abc" class="java.util.HashMap" scope="request" />

the id="abc" is only once in the whole jsp page.
1
Comment
Question by:itaakashcom
1 Comment
 
LVL 27

Accepted Solution

by:
rrz earned 500 total points
ID: 41729546
Please post a JSP that produces the error. That way we can use it to reproduce the error on our machines.  For example, here is a JSP that demonstrates use of the tag(I assume that you are using a current container such as Tomcat 8).  
<jsp:useBean id="abc" class="java.util.HashMap" scope="request" />    
${abc.put("test1","hello")}
${abc.get("test1")}
${abc["test1"]}

Open in new window

The output is   hello hello
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
by zero exception 10 70
Facing this issue for maven proxy setting 2 27
Java basic valueOf question 1 35
Java array 21 87
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

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