File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to pass value to a bean file

 
sarasah guna
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey
I would like how to pass value to a java bean file. I have written jsp file that pass value combo box to a bean file.Below are the codding used to set property in bean file

I have define the properties using the following syntax

The is following error state
C:\resin-2.1.6\doc\mrs\system_menu2.jsp:10: bean `db' has no property named
`Database'
please replay me soon
 
Alec Lee
Ranch Hand
Posts: 569
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use database - small letter d. This is javabean's naming rule.
 
sarasah guna
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
still the same error message.please help me
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your "db" bean of type Conn ?
Can you please post the useBean tag ?
 
sarasah guna
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes db is my bean id.
usebean tag

please help me
[ February 13, 2006: Message edited by: sarasah guna ]
 
Alec Lee
Ranch Hand
Posts: 569
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't have a scope for <jsp:setProperty > and it defaults to page scope. But your useBean is using request scope. Also, are your codes belong to the bgoc.dbConn.Conn class?
 
Alec Lee
Ranch Hand
Posts: 569
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, <jsp:setProperty> don't have a scope attribute.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic