how to pass parameters from jsp to backing bean
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   skumarweb_web
Posted On:   Thursday, May 8, 2008 04:06 AM

hi,

i have a parameter roles.key in my jsp. i need this paramter in my backing bean. how to retrieve.
here is my code.











please help me
Thanks in advance

Re: how to pass parameters from jsp to backing bean

Posted By:   Star_Plus  
Posted On:   Thursday, May 8, 2008 10:12 PM

You can use the jsf core tag to achieve this.



Following is a sample code which shows how to use this tag....










and in your managed bean, you can retrieve it with




String key = (String) FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("key");
About | Sitemap | Contact