user51188
user51188

Reputation: 96

show the bean proprty value in jsp page

what is the way to shoe the value in jsp page on browser.. i tried some code here

enter code here
<table class="data-table-list" width="100%" border="0" cellpadding="0" cellspacing="0">
<col width="50%"/>
<col width="50%"/>

<tbody>
     <tr>
     <td class="label">
     <fmt:message key="label.bodyLanguage"/><fmt:message key="label.postfix"/>
     </td>
     <td class="data">
     <c:out value="${bean.bodyLanguageScore}"/>
     </td>

     </tr>
</tbody>
</table>    

Upvotes: 0

Views: 62

Answers (1)

Prabhakar Manthena
Prabhakar Manthena

Reputation: 2303

Try this,

<%@page import="Your Bean Path" %>
<jsp:useBean id="formHandler" class="Your Bean Path" scope="request">
    <jsp:setProperty name="formHandler" property="*"/>
</jsp:useBean> 
        <table class="data-table-list" width="100%" border="0" cellpadding="0" 
                cellspacing="0">
          <col width="50%"/>
          <col width="50%"/>

<tbody>
     <tr>
     <td class="label">
     <fmt:message key="label.bodyLanguage"/><fmt:message key="label.postfix"/>
     </td>
     <td class="data">
            <%=bean.bodyLanguageScore%>
     </td>
         </tr>
</tbody>
</table>  

Upvotes: 1

Related Questions