title: Unable to set value from bean to JSP page
body: <p>Here is my code to set value in bean.</p>
  
  <pre><code>Infobean infobean = new Infobean();
  Session session =  HibernateUtil.getSessionFactory().getCurrentSession();
  
  session.beginTransaction();
  String query="SELECT ifnull(max(CONVERT(id, SIGNED)),0) as maxId FROM infotable";
  List&lt;?&gt; list = session.createSQLQuery(query).list();
  int a = list.get(0).hashCode()+1;
  String id = String.valueOf(a) ;
  System.out.println(id);
  infobean.setId(id);
  </code></pre>
  
  <p>Here I want to use that value in JSP page.</p>
  
  <pre><code>&lt;td valign="top"&gt;
      &lt;s:textfield  name="id" id="id" &gt;
          &lt;s:property value="%{id}" /&gt;
      &lt;/s:textfield&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>In the above code, I was unable to set that value from bean. </p>