aspose file tools*
The moose likes JSF and the fly likes Populating value in managed bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Populating value in managed bean " Watch "Populating value in managed bean " New topic
Author

Populating value in managed bean

Chandrasekhar kotha
Greenhorn

Joined: Jun 27, 2005
Posts: 22
Hi

I want to populate a value in managed bean(FACES-CONFIG-BEAN.XML), which was set in Request Attribute from some other jsp and forwarded to another jsp.

CODE IS SOME THING LIKE THIS :-

<managed-bean>
<description>
SSSSS
</description>
<managed-bean-name>ABCBEAN</managed-bean-name>
<managed-bean-class>java.util.HashMap</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<map-entries>

<map-entry>
<key>xxxx</key>
<value>#{VALUE TO BE FILLED FROM REQUEST ATTIBUTE}</value>
</map-entry>
</map-entries>
</managed-bean>

ANY HLEP IS APPRICIATED.
THANKS
CHANDRA
Zack Marrapese
Greenhorn

Joined: Jul 02, 2008
Posts: 27
you should be able to access it using #{param.keyName}
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Populating value in managed bean