riyana
riyana

Reputation: 21725

Using bean value in java

I have defined a bean

<logic:iterate id="keyRecDetail" name="KeyRecInquiryForm" property="keyRecDetailList" indexId="rowNum">

Now i want to access value of ${keyRecDetail.keyRecShipMethod} in my jsp page and put this value in a string.how to do this?

Upvotes: 1

Views: 192

Answers (1)

Siva Charan
Siva Charan

Reputation: 18064

Example:-

Declare

<jsp:useBean id="emp" class="bean.Employees"/>

Get the property

<jsp:getProperty name="emp" property="firstName"/> 

Upvotes: 1

Related Questions