aspose file tools*
The moose likes JSP and the fly likes how to pass value to a bean file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to pass value to a bean file" Watch "how to pass value to a bean file" New topic
Author

how to pass value to a bean file

sarasah guna
Greenhorn

Joined: Dec 12, 2005
Posts: 10
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

Joined: Jan 28, 2004
Posts: 569
Use database - small letter d. This is javabean's naming rule.
sarasah guna
Greenhorn

Joined: Dec 12, 2005
Posts: 10
still the same error message.please help me
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Is your "db" bean of type Conn ?
Can you please post the useBean tag ?


[My Blog]
All roads lead to JavaRanch
sarasah guna
Greenhorn

Joined: Dec 12, 2005
Posts: 10
yes db is my bean id.
usebean tag

please help me
[ February 13, 2006: Message edited by: sarasah guna ]
Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
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

Joined: Jan 28, 2004
Posts: 569
Sorry, <jsp:setProperty> don't have a scope attribute.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to pass value to a bean file