| | |
how to connect with oracle in this code
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2007
Posts: 49
Reputation:
Solved Threads: 0
Hi Everyone,
I need some suggestions from you guys. I am totally unaware of JSP or java and trying to learn a bit , as i need to develop a sample application using web services.I am in need of some help from you guys. If there are some errors in the code or i can modify for the better then please tell me.Please explain the things as i am a layman..
I am using netbeans here.
now what i need to do is----
when i click on the submit button the entries should be updated in the database, how i can achieve that. syntax for database connection. i am using oracle as DB.
kindly give me some ideas how to go about this...
Thanks
NT
I need some suggestions from you guys. I am totally unaware of JSP or java and trying to learn a bit , as i need to develop a sample application using web services.I am in need of some help from you guys. If there are some errors in the code or i can modify for the better then please tell me.Please explain the things as i am a layman..
JSP Syntax (Toggle Plain Text)
<%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <h2>Hello World!</h2> <%-- start web service invocation --%><hr/> <% String userName=" "; String groupName=" "; String firstName=" "; String lastName=" "; String pam=" "; String emailAddress=" "; try { com.arcot.schemas.regfort.v2.AuthProvisionAPIService service = new com.arcot.schemas.regfort.v2.AuthProvisionAPIService(); com.arcot.schemas.regfort.v2.RegFortAPIPortType port = service.getRegFortAPISOAP11Port(); port.createUser(userName, groupName, firstName, lastName, pam, emailAddress); } catch (Exception ex) { // TODO handle custom exceptions here } %> <form action="response.jsp" method="POST"> <table> <tr><td>User Name</td><td><input type="text" name="userName" value="" /></td></tr><br></br> <tr><td>Group Name</td><td><input type="text" name="groupName" value="" /></td></tr><br></br> <tr><td>First Name</td><td><input type="text" name="firstName" value="" /></td></tr><br></br> <tr><td>Last Name</td><td><input type="text" name="lastName" value="" /></td></tr><br></br> <tr><td>PAM</td><td><input type="text" name="pam" value="" /></td></tr><br></br> <tr><td>Email Address</td><td><input type="text" name="emailAddress" value="" /></td></tr> <tr><td>Submit</td><td><input type="submit" name="submit" value="submit"/></td></tr> </table> </form> <%-- end web service invocation --%><hr/> </body> </html>
I am using netbeans here.
now what i need to do is----
when i click on the submit button the entries should be updated in the database, how i can achieve that. syntax for database connection. i am using oracle as DB.
kindly give me some ideas how to go about this...
Thanks
NT
Read this how to establish connection with database the right way and here is info on Oracle and connection string (Sorry couldn't find latest version)
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Aren't the two links good enough for you? Or you did not even read them?
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Similar Threads
- let me know d steps to connect to oracle(sql) from vb6 (Visual Basic 4 / 5 / 6)
- How to connect Oracle database from JSP page (Java)
- PLease I need documentation on oracle 9i (Oracle)
- oracle connection with visual studio 2005 with c# (C#)
- oracle database (ASP.NET)
- db connection code showin error while executing (Java)
- JSP using Oracle Database (JSP)
- connect to oracle db without oracle client in VB6 (Visual Basic 4 / 5 / 6)
- C-oracle connectivity in linux....! (C++)
- C connectivity with oracle (Community Introductions)
Other Threads in the JSP Forum
- Previous Thread: struts2 cookies
- Next Thread: code for binary tree in jsp
Views: 1065 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for JSP
apache array backbutton combobox comma connection csv database development directorystructure dropdownlist dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 mysql netbeans network parameters passing ping printinserverinsteadofclient project read redirect request.getparameter response seperated servlet servletdopost()readxml sessions software sql ssl state_saving_method stocks sun tomcat tutorial update values video web write






