You have two methods in your code doGet and doPost.
Your doGet method does nothing. All your code is in the doPost. This method is only called when the page has been posted to.
Are you sure the page has received a post? As I can't see your post method actually use any post values.
On a side note:
String query="select name,description from projects where id='"+userId+"'";
This approach to populating parameters in an SQL statement is not advisable and leaves you open to SQL injection attacks. All values passed into SQL statements should be done via parameters.
Also based on the way you add values to your list and the single value increase in your rendering loop (i++) I expect your rendered table will look like this:
Value A, Value B
Value B, Value C
Value C, Value D
Value D, Value E
Hope this helps.