Riyasat Tabrez

Greenhorn
+ Follow
since Dec 19, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Riyasat Tabrez

Thanks for your reply and links you sent. I want to build this using jsp's and servlets. The example I gave in my previous post was for just to present a proposed task and not the one that website is actually built using. Could you propose anything using a Jsp's and Servlets.

Regards
Riyasat
8 years ago
I am new to jsp and servlets learning tutorials on j2ee for few weeks. I would like to build a web based application similar to online air ticket booking for example Travelpack. How do I achieve this. If one notice that you put in few letters for the departing airport and it instantly gives the option that has those alphabets so it's quite user friendly, which indicates this field accepts keyword from user and matches it to the databases at the back-end and returns the matched word

Any idea or example in this direction will be appreciated.

Regards
Riyasat
8 years ago
Hi Wei

Could you please elaborate more on your suggestion. Will wait for you reply

Regards
Riyasat
No, f2 is not attached to any field in the image. However I want the mentioned functionality to be on the below portion of the code,



Yes I have also noted that instead of Action Listener Key Listener be used. I once again put-forth my requirement. After the JTestfield f2, there are more Jtextfields which would display other personal information for eg: User presses ENTER and a whole list pops up from the DB (student_name,student_fname,student_dob,_student_address etc..) for all available students user can select the required student, once this selection is made all the remaining JTextfield must get populated with data selected by user. for eg: student_name should go to JTextfield f2, student_fname goes to Jtextfield f3, student_DOB goes to Jtextfield f4 and finally student_address goes to Jtextfield f5.

Please remember I have the above Jtextfields in public class named Swing1 and I am connecting to DB by writing other public class named Oraclejdbc.

Could you please tell me what type of attachment are accepted on this forum (I have tried attaching .txt,.doc,.docx,.java) its not accepting it

Regards
Riyasat

Yes exactly you got it right. For more information please refer to the attachment. I would like to have the same feature as in the attachment. User goes to the Jtextfield and presses ENTER key and the all available records from the DB are presented to the user
DB Description

Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
PL/SQL Release 11.2.0.2.0 - Production
"CORE 11.2.0.2.0 Production"
TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production



Operating System Windows XP
IDE: Eclipse

I have successfully connected to DB. However I have following code which runs fine. (Due to the length of the code I am posting a single Jtextfield to avoid confusion). If anyone would like to see full code. please let me know


My Requirement I want to display data from database when user enters this field which is (JTextfield f2) and presses ENTER key. and the selected data gets displayed in this Jtextfield.

Here is the DB Connection code


Please remember Jtextfield and the above DB connection code are separate classes. I am new to java any hint will be appreciated.

Please refer to the attachment to understand the requirement.

Thanks
Hi

I have JDK 1.7.0.40
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
PL/SQL Release 11.2.0.2.0 - Production
"CORE 11.2.0.2.0 Production"
TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
OS: Windows XP
Eclipse Helios

Requirement: I want to retrieve data from the default schema in SQL developer called HR which has 21 tables in it through Eclipse. I have changed the perspective to DB in eclipse. However when I go through the "New Connection Profile" wizard I noticed that the default settings are not the same as it is given on the below link.

OracleDocs

After following instructions on the above page I could not find the required .jar file named oracle.eclipse.tools.database.jdbc.driver*.jar mentioned in the instruction. The path to my eclipse folder is D:\eclipse.

The error that I get on Eclipse is attached as an Image it says ping failed "java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver". I am not sure about what username and password to be entered in the connection wizard. I have tried User name as hr and password as hr does not works

How do I resolve this, any help will be appreciated

Thanks