<jsp:useBean id="emp" class="com.ram.Employee" />

<jsp:setProperty name="emp" property="id" value="105" />
<jsp:setProperty name="emp" property="name" value="Raj" />

<p>Employee ID is <b><jsp:getProperty name="emp" property="id" /></b></p>
<p>Employee Name is <b><jsp:getProperty name="emp" property="name" /></b></p>
Employee id <%= emp.getId() %>, name <%= emp.getName() %> .