DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14980>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14980

jsp:getProperty not working .

           Summary: jsp:getProperty not working .
           Product: Tomcat 4
           Version: 4.1.12
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


<jsp:useBean id="organization" scope="session" 
class="com.vortexcreations.hr.provider.HROrganization" />
    <jsp:useBean id="contact" scope="session" 
class="com.vortexcreations.hr.provider.HROrganizationContact" />
    <jsp:setProperty name="organization" property="*"/>
    <jsp:setProperty name="contact" property="*"/>
<%
    if (request.getParameter("Organization_Id")!=null)
    {
        long orgId = Long.parseLong(request.getParameter("Organization_Id"));
        HROrganizationManager om = new HROrganizationManager();
        organization = om.getOrganization(orgId,true);
        if (organization!=null)
        {
            contact = organization.getOrganizationContact();
        }

    } else {
        Message = "Error retrieving Organization information";
    }
%>



After that I try to print the values back in the html page

<tr class="maintext">
            <td width="30%">Organization Name</td>
            <td width="70%"> <input name="company_Name" type="text" 
class="fulltextbox" id="company_Name" maxlength="50" value="<jsp:getProperty 
name="organization" property="company_Name" />"></td>
          </tr>

I try to debug and find that the value is in the "organization" object and the 
compliled jsp page has the following

// begin [file="/portal/jobcenter/organization/edit_organization.jsp";from=
(60,128);to=(60,191)]
                out.print(JspRuntimeLibrary.toString
((((com.vortexcreations.hr.provider.HROrganization)pageContext.findAttribute
("organization")).getCompany_Name())));
            // end

Which I believe is correct.

If I replace the <jsp:getProperty> tag with <%=organization.getCompany_Name()%>

the value displayed correctly

Please help.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to