• Post Reply Bookmark Topic Watch Topic
  • New Topic

capturing parameter passed from JSP into database  RSS feed

 
Connie Kamrowski
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all,

I am trying to set values into a Hibernate object called project from values passed in the request from a JSP page


this is my code




If I remove the line capturing the StartDt above, my code runs and all other values are stored in the database. If I leave this line in, the JSP page will not load and no values are stored anywhere. Can anyone see what I am doing wrong. The value is passed as a Parameter from the JSP page and the type in hibernate is a java.util.Date.

All help appreciated

Connie
[ December 21, 2005: Message edited by: Connie Kamrowski ]

[ December 21, 2005: Message edited by: Connie Kamrowski ]
[ December 21, 2005: Message edited by: Connie Kamrowski ]
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would have to think that setDate is generating an exception. Try wrapping the setDate in a try/catch and see if an exception is thrown, and what it is. Especially since you are also parsing the date in that call.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!