• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question on UseBean action  RSS feed

 
Sangeetha Raja
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • 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.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
I read in Jsp Spec for beanName attribute and thought of trying it.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!