Solved

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

Posted on 2016-07-26
1
148 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Title # Comments Views Activity
arguments to jar 5 35
Running JavaFX on JDeveloper 12C 1 55
Glassfish admin console not working 1 34
Is there a simpler dropbox system? 10 34
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
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 …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

828 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