DIsplay attribute of an object in jsp with Struts
<p>So I have those classes :</p>

<pre><code>public class DeviceDto {
  private long number;
  private long blob;

  //getters setters

}

public class PageDto {
  private DeviceDto pda;
  private DeviceDto tab;
  private String message;

  //getters setters
}
</code></pre>

<p>In my action I make a pageDto and then set it :</p>

<pre><code>request.setAttribute("dto", pageDto);
</code></pre>

<p>Then in the jsp I have :</p>

<pre><code>&lt;bean:write name="dto" property="message" /&gt;
&lt;bean:write name="dto" property="pda.id" /&gt;
&lt;bean:write name="dto" property="tab.id" /&gt;
</code></pre>

<p>however the <code>pda.id</code> and <code>tab.id</code> do not display anything.
I also tried <code>${tab.id}</code> bit this raise an exception saying that there is no getter.</p>

<p>Any ideas?</p>