Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Inserting values from Jsp  RSS feed

 
Geetha Sarath
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi.
Iam trying to insert the values from JSP.
But Iam getting these values from HTML.
I retrieved values from HTML and stored in Enumeration Objects.
Can i store directly from Enumeration Objects?
Else i have to store in string objects and then insert into database.
If it is possible directly from Enumeration,Please explain how???

Thanks in Advance..
Geetha
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Geetha,

Better you fetch values in String, as your can check data integrity prior to insert in database. And also if you use Enumeration, then also you to go rotate thru all values (using hasMoreElements ()).

Are you not planning to user Bean in your project?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!