Note that there are some explanatory texts on larger screens.

plurals
  1. POCompletion Bar for Form Registration in Struts2 Jquery Plugin
    primarykey
    data
    text
    <p>I am trying to implement a web application using Struts 2, Hibernate 3, and the Struts 2 jQuery plugin progress bar and other widgets.</p> <p>(<a href="http://struts.jgeppert.com/struts2-jquery-showcase/index.action" rel="nofollow">http://struts.jgeppert.com/struts2-jquery-showcase/index.action</a>)</p> <p>I have a Registration form where I need to show the "% of Form Completion".</p> <pre><code>&lt;sj:progressbar id="progressbarchange" value="21" onChangeTopics="progressbarchangetopic" cssClass="progressbar"/&gt; </code></pre> <p>I've put above code to instantiate the progress bar in the JSP.</p> <p>In the "value" field I have hard coded "21", but I want to put the value which I want to extract from a session variable in the action class. i.e., <code>"#session.progressvarible"</code></p> <p><code>"#session.progressvarible"</code> is the value I get by calculating the number of columns for a particular record for <b> NOT NULL COLUMNS </b> and depending upon the value I will set the progress completion in the bar.</p> <p>I also need to store this Completion Percentage because there are some fields in the form which can be skipped for that moment, so this completion rate has to be displayed whenever user logs in to his home page.</p> <p>My question is how do I write the query or criteria or whatever, in Hibernate so I can get the count of the NOT NULL columns, for example:</p> <pre><code>select no of columns from table1 which are NOT NULL for the student id=101. </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload