ExternalContext ctx = FacesContext.getCurrentInstance().getExternalContext();
Map map =ctx.getRequestMap();
map.put("person", new Person("John", "Smith"));
then can you show the data in the jsp page with the EL syntax as usual:
<h:outputText value="#{person.name}" />
No comments:
Post a Comment