Posted on 2009-07-07
Last Modified: 2013-11-11
i am crating instance using xml when i doing that time this error is occour !!

is it possible to create instance using xml

Code is

      <bean id="papaSubmitController" class="com.papa.controller.PapaSubmitController">
        <property name="sessionForm"><value>true</value></property>        
      <property name="commandName"><value>purchaseReq</value></property>
      <property name="commandClass"><value>papa_base.PurchaseReq</value></property>
      <!-- property name="commandClass"><value>papa_base.PurchaseReqDetails</value></property-->      
      <property name="successView"><value>PapaPRsaveSuccess</value></property>
      <property name="SubmitPRImpl" ref=""></property>
      <property name="submitPRInter" ref=""></property>
thats in XML file

in controller
private SubmitPRInter submitPRInter;
private SubmitPRImpl submitPRImpl;
      public SubmitPRImpl getSubmitImpl() {
            return submitPRImpl;

      public void setSubmitImpl(SubmitPRInter submitImpl) {
            this.submitPRImpl = submitPRImpl;

      public SubmitPRInter getSubmitPRInter() {
            return submitPRInter;

      public void setSubmitPRInter(SubmitPRInter submitPRInter) {
            this.submitPRInter = submitPRInter;


like is iwrote my code ..
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
  • 3
  • 3
LVL 92

Expert Comment

ID: 24801004
LVL 20

Author Comment

by:Sathish David Kumar N
ID: 24801281
ya i did that same error only coming .
LVL 92

Expert Comment

ID: 24801289
is the bean you are ref'ing defined?
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

LVL 20

Author Comment

by:Sathish David Kumar N
ID: 24801352
<bean id ="submitImpl"..... />
this id only iam using as ref !! is that correct !!
LVL 92

Expert Comment

ID: 24801374
I'm referring to:


ref expects the name of a bean to assign the property to
LVL 20

Accepted Solution

Sathish David  Kumar N earned 0 total points
ID: 25130566
create  submitDAOImpl getter/setter  in submitPRImpl
and create prpperty in xxx-servlet.xml


Featured Post

Industry Leaders: 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
topping1 challenge 7 135
iterator/ListIterator approach 17 53
Java: The Public Class Main 4 45
program arguments vs VM arguments 4 28
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

749 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