[jboss-jira] [JBoss JIRA] Created: (JBAS-7075) Communication from JSP (scriptlet) to managed bean is not working

anil kumar (JIRA) jira-events at lists.jboss.org
Fri Jul 3 09:33:51 EDT 2009


Communication from JSP (scriptlet) to managed bean is not working
-----------------------------------------------------------------

                 Key: JBAS-7075
                 URL: https://jira.jboss.org/jira/browse/JBAS-7075
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Integration
    Affects Versions: JBossAS-5.1.0.GA
         Environment: windows
            Reporter: anil kumar
            Priority: Critical


I am trying to set few parameters from JSP scriptlet. Here is the snippet.HeaderBean is a managed bean with dispalyTitle as setters and getters.
here its printing auditlog,auditlog,auditlog with command link instead of dashboard,transaction,auditlog command link.

HeaderBean  scope is request.

Please suggest me on this.


 <h:form>        
            <%
            ArrayList<String> names = new ArrayList<String>();
            names.add("dashboard");
            names.add("transaction");
            names.add("auditlog");
          %>
        
        <%
       
        HttpServletRequest facesRequest = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
        for (String name: names){                
             HeaderBean header = new HeaderBean();         
            header.setDispalyTitle(name);
            facesRequest.setAttribute("HeaderBean", header);               
        %>               
                <h:commandLink title="#{HeaderBean.dispalyTitle}" value= "#{HeaderBean.dispalyTitle}"> </h:commandLink> <br> 
        <%}%>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list