• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Question on UseBean action

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all

I am trying to execute a program with UseBean(beanName property).

Product.java has;


ProductDetail.java has;


Jsp has:


I am expecting valid response but error is displayed; can anyone of you please help me to fix this? I understood that beanName should be a fully qualified java class name..

<b>JSPG0227E: Exception caught while translating /Jsp/ActionTagTest1.jsp: /Jsp/ActionTagTest1.jsp(49,1) --&gt; jsp.error.beans.noproperty</b>

Note: If i replace beanName with class i am seeing valid response.
 
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Sangeetha Raja wrote:Note: If i replace beanName with class i am seeing valid response.


Problem solved!

Why are you using beanName in the first place?
 
Sangeetha Raja
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I read in Jsp Spec for beanName attribute and thought of trying it.
 
Bear Bibeault
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you read the spec then you know that beanName cannot be used in the way that you used it.
reply
    Bookmark Topic Watch Topic
  • New Topic