• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp + sql server

 
Marco Cattaneo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!!!

i've to create a script for manage a sql server 2005 table...someone know if there are script to download for this??

Thanks a lot!
power
 
Albareto McKenzie
Ranch Hand
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
power atom wrote:Hi all!!!

i've to create a script for manage a sql server 2005 table...someone know if there are script to download for this??

Thanks a lot!
power


U_u Antonyme found!!

The logic for managing the table should never be in the JSP, research a bit into the MVC
 
Marco Cattaneo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Albareto McKenzie wrote:

U_u Antonyme found!!

The logic for managing the table should never be in the JSP, research a bit into the MVC



i've only to remove and edit record...
 
Albareto McKenzie
Ranch Hand
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
power atom wrote:
Albareto McKenzie wrote:

U_u Antonyme found!!

The logic for managing the table should never be in the JSP, research a bit into the MVC



i've only to remove and edit record...


Is the same, logic process is to submit the jsp, then you call the servlet, get there the data, validate it and call the method that perform the sql statments.

Think in one thing, now you need to do this for this JSP, but maybe in the future you have to do it in 50, are you going to copy paste the code for the 50 pages? is not better to have it in one place and call it from the Servlet?

Other thing is that you shouldn't use java code in your JSPs.
 
Marco Cattaneo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now and in future it's only in one page. i'm sure because it's only for the first "configuration" and than the page will be removed!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"power atom", please check your private messages for an important administrative matter.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!