• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to call stored procedure through jsp code

 
mayur bhishma
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have a .csv file ,and I have written a jsp code which uploads csv file to a local folder .
Now I want to upload that csv file to database using stored procedure.
Below I have included the code which uploads the csv to database.



thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Likes 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start by moving all DB code and all file I/O code (and indeed all Java code) into a servlet or backing bean. This stuff has no place in a JSP.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:This stuff has no place in a JSP.

Quoted for emphasis. Putting this code in a JSP is nothing short of irresponsible.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!