Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2016-07-26
1
Medium Priority
?
283 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
[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
1 Comment
 
LVL 28

Accepted Solution

by:
rrz earned 2000 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

Technology Partners: 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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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 the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

618 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