Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Populating value in managed bean

 
Chandrasekhar kotha
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you should be able to access it using #{param.keyName}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic