Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 14th, 2006, 09:11 PM
Registered User
 
Join Date: Apr 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default help me linking to database

hiya :)
i am using jsp and postgresql.
i ahve managed to establish a connection with my database and it works, but i am trying to add data from my html page to the database and know that i have to use jsp.
i have to create a jsp page and a bean as well right?
i am not too sure....
can some1 pleeeeaaassseee help me!!!
i would be very grateful....
and bit of coding to help me wuld be appreciated!!
thanks
Kusum



 
Old April 20th, 2006, 09:20 AM
Registered User
 
Join Date: Mar 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hitu_patel_soft
Default

There are two ways. You can also do it without use of beans as well using beans.
If you do not use beans then you have to make connection in jsp file and then write executeUpdatw command in the jsp file after getting all the data from request.

For beans you have to set the data to the bean's properties. and then you have to insert it to database



 
Old April 20th, 2006, 02:38 PM
Registered User
 
Join Date: Apr 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hey hitu
thanks for your reply






Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking dotnetnuke site to computer database debrobciv BOOK: Professional DotNetNuke ASP.NET Portals ISBN: 0-7645-9563-6 0 June 22nd, 2006 02:37 PM
linking anukagni Access 1 March 28th, 2006 08:21 AM
Linking body, bgcolor"<%%>" to database brettdalldorf General .NET 7 June 17th, 2005 07:55 AM
linking database to attachments treasacrowe Classic ASP Databases 3 August 20th, 2004 05:01 AM
Linking sherr8 Access 2 July 30th, 2003 02:29 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.