| Naveed Ahmad | 3/13/2002 | 9:08:37 PM | Hi Mohammad |
| Mohammed Shabib | 3/13/2002 | 9:09:32 PM | Hello |
| Naveed Ahmad | 3/13/2002 | 9:10:17 PM | So how is it going? |
| Mohammed Shabib | 3/13/2002 | 9:10:37 PM | Good |
| Mohammed Shabib | 3/13/2002 | 9:11:05 PM | I finally got a chance to look at the code you sent. |
| Naveed Ahmad | 3/13/2002 | 9:11:35 PM | Goog |
| Naveed Ahmad | 3/13/2002 | 9:11:43 PM | Which one are you looking at |
| Naveed Ahmad | 3/13/2002 | 9:11:56 PM | The first one or the second time I sent it. |
| Mohammed Shabib | 3/13/2002 | 9:12:04 PM | The second time. |
| Naveed Ahmad | 3/13/2002 | 9:12:23 PM | The Employee java bean? |
| Mohammed Shabib | 3/13/2002 | 9:12:35 PM | Yes |
| Naveed Ahmad | 3/13/2002 | 9:13:33 PM | So have you tried Rahuls envionment? |
| Mohammed Shabib | 3/13/2002 | 9:13:57 PM | I also tryed running the Test.java file you sent, but I couldn't figure out how to add the jar files from jdbc apis to the class files |
| Naveed Ahmad | 3/13/2002 | 9:14:12 PM | Basically everyone can pick a table and create similar code for it. |
| Naveed Ahmad | 3/13/2002 | 9:14:28 PM | Were you able to get the jar file ? |
| Mohammed Shabib | 3/13/2002 | 9:14:31 PM | Yes |
| Naveed Ahmad | 3/13/2002 | 9:14:40 PM | if youron dos |
| Mohammed Shabib | 3/13/2002 | 9:14:58 PM | i am |
| Naveed Ahmad | 3/13/2002 | 9:15:12 PM | set CLASSPATH=mysql....jar:mysql_uncomp.jar |
| Mohammed Shabib | 3/13/2002 | 9:15:28 PM | oh.. thats it? I will give it a try after the meeting |
| Naveed Ahmad | 3/13/2002 | 9:15:35 PM | you need to put the full path as well |
| Mohammed Shabib | 3/13/2002 | 9:15:40 PM | yes |
| Naveed Ahmad | 3/13/2002 | 9:16:05 PM | set CLASSPATH=c:\jars\mysql_comp.jar:c:\jars\mysql_uncomp.jar |
| Naveed Ahmad | 3/13/2002 | 9:16:35 PM | Infac t you should put a dot in the CLASSPATH to ] |
| Naveed Ahmad | 3/13/2002 | 9:16:37 PM | like |
| Naveed Ahmad | 3/13/2002 | 9:17:07 PM | set CLASSPATH=.:c:\jars\mysql_comp.jar:c:\.... |
| Naveed Ahmad | 3/13/2002 | 9:17:34 PM | The dot tells it to look for classes in the current directory as well. |
| Mohammed Shabib | 3/13/2002 | 9:17:48 PM | oh |
| Naveed Ahmad | 3/13/2002 | 9:17:59 PM | But you also need mysql to be running . |
| Naveed Ahmad | 3/13/2002 | 9:18:28 PM | And select the user id and password on your env. |
| Mohammed Shabib | 3/13/2002 | 9:18:30 PM | on my pc? |
| Naveed Ahmad | 3/13/2002 | 9:18:57 PM | It will be best if you use Rahuls env and ask him the user id and password and database name. |
| Mohammed Shabib | 3/13/2002 | 9:19:04 PM | ok. |
| Brian Burgner | 3/13/2002 | 9:19:14 PM | Hello |
| Brian Burgner | 3/13/2002 | 9:19:17 PM | Sorry I'm late |
| Mohammed Shabib | 3/13/2002 | 9:19:24 PM | Hi |
| Naveed Ahmad | 3/13/2002 | 9:19:24 PM | Hi Brian. |
| Naveed Ahmad | 3/13/2002 | 9:19:28 PM | Its ok. |
| Mohammed Shabib | 3/13/2002 | 9:20:46 PM | Did you get my email Brian? |
| Brian Burgner | 3/13/2002 | 9:21:06 PM | about JMetric? yes |
| Naveed Ahmad | 3/13/2002 | 9:21:09 PM | So which part are you doing for the hw? |
| Brian Burgner | 3/13/2002 | 9:21:17 PM | Part B |
| Brian Burgner | 3/13/2002 | 9:21:53 PM | So, is Rahul online via ICQ or something like that? If so, maybe we should use that for this chat. |
| Naveed Ahmad | 3/13/2002 | 9:22:28 PM | No he is not online on icq |
| Brian Burgner | 3/13/2002 | 9:22:38 PM | ok |
| Brian Burgner | 3/13/2002 | 9:22:55 PM | do we want to talk about the homework first or the project? |
| Naveed Ahmad | 3/13/2002 | 9:23:14 PM | Let talk about the homework first. |
| Naveed Ahmad | 3/13/2002 | 9:23:52 PM | So you both are working together? |
| Mohammed Shabib | 3/13/2002 | 9:23:56 PM | yes |
| Naveed Ahmad | 3/13/2002 | 9:24:01 PM | Which part are you doing? |
| Mohammed Shabib | 3/13/2002 | 9:24:09 PM | B |
| Naveed Ahmad | 3/13/2002 | 9:24:28 PM | i.e. the softwares to gather the matrices. |
| Brian Burgner | 3/13/2002 | 9:24:42 PM | yes |
| Naveed Ahmad | 3/13/2002 | 9:25:04 PM | ok |
| Naveed Ahmad | 3/13/2002 | 9:26:06 PM | So I guess I am Rahul will make a group together for part A. |
| Brian Burgner | 3/13/2002 | 9:27:09 PM | yes. don't we have others though? cesar and sadaf? |
| Brian Burgner | 3/13/2002 | 9:27:18 PM | are they still in the course and on the team? |
| Naveed Ahmad | 3/13/2002 | 9:27:36 PM | I dont know about ceasar. |
| Naveed Ahmad | 3/13/2002 | 9:27:54 PM | But I know that Sadaf is gone for vacations |
| Naveed Ahmad | 3/13/2002 | 9:27:59 PM | would be back soon, |
| Naveed Ahmad | 3/13/2002 | 9:29:10 PM | Hi Ceasar. |
| Brian Burgner | 3/13/2002 | 9:29:21 PM | that answers that question! |
| Cesar R. (Rob) Nunez | 3/13/2002 | 9:29:35 PM | Greetings! |
| Brian Burgner | 3/13/2002 | 9:29:43 PM | Hi Cesar. We were just talking about whether or not we still have 6 team members :) |
| Naveed Ahmad | 3/13/2002 | 9:29:48 PM | Does anyone know which lecture is the most relavant to matrices i.e. was it tought before the mid terms? |
| Brian Burgner | 3/13/2002 | 9:30:26 PM | 10 - 12 were on metrics |
| Naveed Ahmad | 3/13/2002 | 9:32:01 PM | i see. |
| Naveed Ahmad | 3/13/2002 | 9:32:42 PM | So want to discuss how to proceed with project? |
| Brian Burgner | 3/13/2002 | 9:32:52 PM | hey cesar...for the homework, naveed and rahul are doing part a and mohammed and i are doing part b. you and sadaf each need to choose a group to be a part of. sadaf is out of town so it looks like you get to pick what part you want to do. thoughts? |
| Naveed Ahmad | 3/13/2002 | 9:32:54 PM | We have most of the people here. |
| Naveed Ahmad | 3/13/2002 | 9:34:27 PM | Helooo. |
| Cesar R. (Rob) Nunez | 3/13/2002 | 9:34:44 PM | I'll join group A. |
| Brian Burgner | 3/13/2002 | 9:35:05 PM | ok. just wanted to get that taken care of before discussing the project :) |
| Naveed Ahmad | 3/13/2002 | 9:35:25 PM | Ok lets discuss how to proceed. |
| Brian Burgner | 3/13/2002 | 9:35:25 PM | naveed, i feel silly saying this, but i just realized yesterday that your emails had attachments! i kept looking on sourceforge for code |
| Mohammed Shabib | 3/13/2002 | 9:35:37 PM | me too |
| Naveed Ahmad | 3/13/2002 | 9:35:49 PM | Oh. |
| Brian Burgner | 3/13/2002 | 9:35:50 PM | i've set up java and tomcat and looked at the jsps so i'm ready to actually do development for our project |
| Naveed Ahmad | 3/13/2002 | 9:36:10 PM | Have you looked at the last attachment. |
| Naveed Ahmad | 3/13/2002 | 9:36:25 PM | In whoch I sent EmplyeeQuery.java and EmployeeInfo.java |
| Naveed Ahmad | 3/13/2002 | 9:36:33 PM | Here is the plan. |
| Naveed Ahmad | 3/13/2002 | 9:36:48 PM | All of us can quickly finish the java beans forst. |
| Naveed Ahmad | 3/13/2002 | 9:37:11 PM | For each table you can make a Query and Info class. |
| Naveed Ahmad | 3/13/2002 | 9:37:42 PM | The EmplyeeInfo is basically a datastructure which maps corresponding th a table (employee) table. |
| Naveed Ahmad | 3/13/2002 | 9:38:18 PM | The EmployeeQuery.java file has methods to retrieve, update delete and insert data into that table. |
| Naveed Ahmad | 3/13/2002 | 9:39:16 PM | Check you the main method which is the test method to test the mehtod if they actually insert or select data (and populate the EmployeeInfo structure). |
| Naveed Ahmad | 3/13/2002 | 9:39:32 PM | You need to have mysql running. |
| Naveed Ahmad | 3/13/2002 | 9:39:53 PM | With the mysq_comp.jar and mysql_uncomp.jar in your classpath. |
| Naveed Ahmad | 3/13/2002 | 9:40:24 PM | Basically I want us to pick the tables each of us wants to work on. |
| Naveed Ahmad | 3/13/2002 | 9:40:48 PM | The second phase would be to make the servlets and jsp. |
| Naveed Ahmad | 3/13/2002 | 9:41:26 PM | If we have all the beans for all the tables we can easily use them in our servlets. |
| Naveed Ahmad | 3/13/2002 | 9:41:47 PM | The first email attachment the tar file. |
| Naveed Ahmad | 3/13/2002 | 9:42:05 PM | Is an example of a jsp , serlvet and a java bean working in cordination. |
| Naveed Ahmad | 3/13/2002 | 9:42:25 PM | That is the complete architecture of the application. |
| Naveed Ahmad | 3/13/2002 | 9:43:08 PM | But the first step is to make and unit test our business java beans (the ones which directly talk to the data base). |
| Brian Burgner | 3/13/2002 | 9:43:15 PM | The Software Architecture Document contains all of the classes, right? |
| Naveed Ahmad | 3/13/2002 | 9:43:33 PM | Well, I need to modify the diagrams a bit. |
| Naveed Ahmad | 3/13/2002 | 9:44:06 PM | Let me show you the table diagram. |
| Brian Burgner | 3/13/2002 | 9:44:32 PM | ok |
| Naveed Ahmad | 3/13/2002 | 9:45:17 PM | Can everyone look at the diagram. |
| Cesar R. (Rob) Nunez | 3/13/2002 | 9:45:35 PM | Yes! |
| Mohammed Shabib | 3/13/2002 | 9:45:37 PM | yes |
| Naveed Ahmad | 3/13/2002 | 9:45:43 PM | ok |
| Naveed Ahmad | 3/13/2002 | 9:46:06 PM | So here are all the tables we need to write our java beans for. |
| Naveed Ahmad | 3/13/2002 | 9:46:15 PM | I wrote for the Employee table. |
| Naveed Ahmad | 3/13/2002 | 9:46:26 PM | This table diagram is in the architecture diagram. |
| Naveed Ahmad | 3/13/2002 | 9:46:47 PM | Ive added 2 new fiels loging and passowrd to each of the employee and candidate table. |
| Brian Burgner | 3/13/2002 | 9:47:26 PM | one of the things that confused me about the design was that here we have an employee table and elsewhere we have an employer table. which do we actually have in our system? i thought it was only emplyers |
| Naveed Ahmad | 3/13/2002 | 9:48:12 PM | This shoudl be employer. |
| Naveed Ahmad | 3/13/2002 | 9:48:38 PM | Its a mistake here. |
| Naveed Ahmad | 3/13/2002 | 9:49:01 PM | I'll change the names of the java files to Employer* |
| Brian Burgner | 3/13/2002 | 9:49:18 PM | that helps clear things up. since i wasn't here last semester, i thought maybe i had missed something and each employer had lots of employees or something like that! this makes it a little simpler |
| Naveed Ahmad | 3/13/2002 | 9:49:30 PM | Do you want me to go over the code? |
| Cesar R. (Rob) Nunez | 3/13/2002 | 9:49:38 PM | By all means, please do! |
| Naveed Ahmad | 3/13/2002 | 9:49:39 PM | For the employer table? |
| Naveed Ahmad | 3/13/2002 | 9:49:41 PM | ok |
| Naveed Ahmad | 3/13/2002 | 9:50:24 PM | First step. |
| Naveed Ahmad | 3/13/2002 | 9:50:36 PM | I created a emploer table in mysq. |
| Naveed Ahmad | 3/13/2002 | 9:50:53 PM | It has all the firlds as in the digram. |
| Naveed Ahmad | 3/13/2002 | 9:51:01 PM | Also added a sample value. |
| Naveed Ahmad | 3/13/2002 | 9:52:13 PM | This is the way to run scripts on mysql |
| Naveed Ahmad | 3/13/2002 | 9:52:22 PM | Mysql has no user id or password set. |
| Naveed Ahmad | 3/13/2002 | 9:52:35 PM | It makes my life easier. |
| Naveed Ahmad | 3/13/2002 | 9:53:04 PM | I am keeping all the java beans in the model folder. |
| Naveed Ahmad | 3/13/2002 | 9:53:20 PM | Lets look at EmployeeInfo.java |
| Naveed Ahmad | 3/13/2002 | 9:53:25 PM | Employee= Emplyer |
| Brian Burgner | 3/13/2002 | 9:53:32 PM | heh |
| Naveed Ahmad | 3/13/2002 | 9:53:47 PM | :) |
| Naveed Ahmad | 3/13/2002 | 9:54:03 PM | It has member variables defined corresponding to the table. |
| Naveed Ahmad | 3/13/2002 | 9:54:12 PM | 2 contructors. |
| Naveed Ahmad | 3/13/2002 | 9:54:40 PM | The second constrcutor is to initialise a new object with values. |
| Naveed Ahmad | 3/13/2002 | 9:54:51 PM | The first one just puts empty strings. |
| Naveed Ahmad | 3/13/2002 | 9:55:21 PM | Though we should have set and get methods for each of the members. |
| Naveed Ahmad | 3/13/2002 | 9:55:56 PM | But that would have been a lot of typing so I will make them puclic, to access them directly. |
| Naveed Ahmad | 3/13/2002 | 9:56:07 PM | Is it simple enough yet? |
| Cesar R. (Rob) Nunez | 3/13/2002 | 9:56:38 PM | Having no java experience or background, I can see that it is somewhat simple! |
| Naveed Ahmad | 3/13/2002 | 9:56:49 PM | Good. |
| Naveed Ahmad | 3/13/2002 | 9:57:03 PM | I would recommand using Rahuls env. |
| Brian Burgner | 3/13/2002 | 9:57:05 PM | it does look pretty straightforward, and after we've all done a class or two, we should get it pretty well |
| Mohammed Shabib | 3/13/2002 | 9:57:13 PM | yes |
| Naveed Ahmad | 3/13/2002 | 9:57:19 PM | And ask him to take care of setting up database ids etc. |
| Naveed Ahmad | 3/13/2002 | 9:57:31 PM | It will save your time. |
| Naveed Ahmad | 3/13/2002 | 9:57:45 PM | Ok lets look at the Query file. |
| Naveed Ahmad | 3/13/2002 | 9:58:08 PM | The EmplueeQuery class is to be used by some client code. |
| Naveed Ahmad | 3/13/2002 | 9:58:21 PM | e.g. it will be instantiated by a servlet . |
| Naveed Ahmad | 3/13/2002 | 9:58:43 PM | or any other application which wants to deal with the employee table. |
| Naveed Ahmad | 3/13/2002 | 9:59:05 PM | In our test case it will be instantiated by our main method. |
| Naveed Ahmad | 3/13/2002 | 9:59:39 PM | You can define a main method in each of your classes. |
| Naveed Ahmad | 3/13/2002 | 10:00:19 PM | The person instanitating the class will be resposible to give the class the Connection. |
| Naveed Ahmad | 3/13/2002 | 10:00:42 PM | The connection id your gateway to the database. |
| Brian Burgner | 3/13/2002 | 10:01:03 PM | quick cygwin question - my root directory in cygwin is d:\cygwin. how do i get to other portions of my hard drive in cygwin? thanks! |
| Naveed Ahmad | 3/13/2002 | 10:02:11 PM | /cydrive/d/ |
| Brian Burgner | 3/13/2002 | 10:02:28 PM | is cygdrive a link that you set up? i'm not seeing it on my cygwin |
| Naveed Ahmad | 3/13/2002 | 10:02:43 PM | yah I make a sybolic link |
| Brian Burgner | 3/13/2002 | 10:02:52 PM | also, is someone here 13115612 in icq? |
| Naveed Ahmad | 3/13/2002 | 10:02:58 PM | try to cd /cygdrive/d |
| Brian Burgner | 3/13/2002 | 10:02:59 PM | or is that rahul's? |
| Brian Burgner | 3/13/2002 | 10:03:13 PM | hey, that worked. thanks! |
| Naveed Ahmad | 3/13/2002 | 10:03:25 PM | I dont see him here. |
| Naveed Ahmad | 3/13/2002 | 10:03:30 PM | Your welcome. |
| Naveed Ahmad | 3/13/2002 | 10:03:53 PM | So I vreated an instance of EmployeeQuery |
| Naveed Ahmad | 3/13/2002 | 10:04:03 PM | Initilised it with a connection object. |
| Naveed Ahmad | 3/13/2002 | 10:04:23 PM | We will first look at the selectEmployee method. |
| Naveed Ahmad | 3/13/2002 | 10:05:08 PM | The way to communicate to the EmployeeQuery is through |
| Naveed Ahmad | 3/13/2002 | 10:05:19 PM | setEmployeeInfo and getEmployeeInfo. |
| Naveed Ahmad | 3/13/2002 | 10:05:55 PM | Lets say we know the empId for a particular employee. |
| Naveed Ahmad | 3/13/2002 | 10:06:10 PM | We create an object of EmployeeInfo. |
| Naveed Ahmad | 3/13/2002 | 10:06:22 PM | ei. |
| Naveed Ahmad | 3/13/2002 | 10:06:32 PM | set ei.EmpId=2 |
| Naveed Ahmad | 3/13/2002 | 10:06:46 PM | This is the only information we know about the employee. |
| Naveed Ahmad | 3/13/2002 | 10:07:11 PM | Use the setEmplyee mehtod of the EmplyeeQuery object to set the object. |
| Naveed Ahmad | 3/13/2002 | 10:07:59 PM | After setting the partailly populated employeeInfo object. |
| Naveed Ahmad | 3/13/2002 | 10:08:13 PM | I call the selectEmployee method of the EmployQuery |
| Naveed Ahmad | 3/13/2002 | 10:08:49 PM | The selectEmplyee method creates a query. |
| Naveed Ahmad | 3/13/2002 | 10:09:25 PM | The result set picks all the values from the table and populates the ei member variables. |
| Naveed Ahmad | 3/13/2002 | 10:09:55 PM | After this I call the eq.getEmplyeeInfo method. |
| Naveed Ahmad | 3/13/2002 | 10:10:12 PM | This returns the fully populated employeeInfo object. |
| Naveed Ahmad | 3/13/2002 | 10:10:41 PM | I can print the empName or any other field I want to. |
| Naveed Ahmad | 3/13/2002 | 10:12:10 PM | So I compiled and ran the test. |
| Naveed Ahmad | 3/13/2002 | 10:12:15 PM | It works. |
| Naveed Ahmad | 3/13/2002 | 10:12:35 PM | The other methods work similarly. |
| Naveed Ahmad | 3/13/2002 | 10:13:03 PM | I will tar the directory again and send it out to you . |
| Naveed Ahmad | 3/13/2002 | 10:13:41 PM | If you are working on linux you may have to change the compile.sh and run.sh slightly . |
| Naveed Ahmad | 3/13/2002 | 10:14:03 PM | Do you think you enough to get started? |
| Brian Burgner | 3/13/2002 | 10:14:07 PM | on rahul's machine, do you expects us to all have a tomcat directory in our home directories? where will we do our individual work and where will we integrate it? |
| Naveed Ahmad | 3/13/2002 | 10:14:33 PM | to write the java beans you dont need the tomcat directory. |
| Naveed Ahmad | 3/13/2002 | 10:14:51 PM | You can write java beans flat in your home and compile and test them. |
| Naveed Ahmad | 3/13/2002 | 10:15:05 PM | You need tomcat to write servlets and jsp's |
| Brian Burgner | 3/13/2002 | 10:15:26 PM | so we'll tackle that configuration issue after everyone has created their beans? |
| Naveed Ahmad | 3/13/2002 | 10:15:39 PM | Yes. |
| Naveed Ahmad | 3/13/2002 | 10:15:55 PM | I wish Rahul was here so we could figure out that part today. |
| Brian Burgner | 3/13/2002 | 10:16:07 PM | i'm chatting with him on icq, but he can't get into netmeeting |
| Naveed Ahmad | 3/13/2002 | 10:16:23 PM | But if we guys can get over the java beans part quickly we can get to the tocat part quickly. |
| Naveed Ahmad | 3/13/2002 | 10:17:10 PM | Ok let me show how this bean is used in the servlet. |
| Naveed Ahmad | 3/13/2002 | 10:17:28 PM | The control folder will have the servets. |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:18:01 PM | When you say, we can write, compile, and test the java beans without Tomcat, what tool should we be using to do this? |
| Naveed Ahmad | 3/13/2002 | 10:18:12 PM | I create a BaseControl.java which ingerits from HttpServlet |
| Naveed Ahmad | 3/13/2002 | 10:18:22 PM | All Servlets need to inherit from it. |
| Brian Burgner | 3/13/2002 | 10:18:24 PM | i think we can use any editor we want and then compile with javac and run with java |
| Naveed Ahmad | 3/13/2002 | 10:18:36 PM | This java file has helpful methods. |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:18:41 PM | Ok. |
| Naveed Ahmad | 3/13/2002 | 10:18:42 PM | For creating a connection |
| Naveed Ahmad | 3/13/2002 | 10:18:46 PM | Closing a connection |
| Naveed Ahmad | 3/13/2002 | 10:18:51 PM | StrintoInt |
| Naveed Ahmad | 3/13/2002 | 10:18:57 PM | NoNull |
| Naveed Ahmad | 3/13/2002 | 10:19:28 PM | Forwading the control to the jsp. The jsp is the one to do the html part. |
| Naveed Ahmad | 3/13/2002 | 10:20:07 PM | You write your code either in the doPost method or doGet. |
| Naveed Ahmad | 3/13/2002 | 10:20:24 PM | the doPost method recieves 2 parameters . |
| Naveed Ahmad | 3/13/2002 | 10:20:29 PM | request and response. |
| Naveed Ahmad | 3/13/2002 | 10:20:45 PM | The request has all the attributeds posted by a form |
| Naveed Ahmad | 3/13/2002 | 10:21:19 PM | This serlvet expects a empId |
| Naveed Ahmad | 3/13/2002 | 10:21:46 PM | http://localhost/distrimon/servlet/ShowEmployee?empId=1 |
| Naveed Ahmad | 3/13/2002 | 10:22:29 PM | Most of the code is like the code in the main method to test the bean. |
| Naveed Ahmad | 3/13/2002 | 10:23:18 PM | Once I get the populated ei object with all the values from the tbale. |
| Naveed Ahmad | 3/13/2002 | 10:23:42 PM | I put the whocl object into the request scope. |
| Naveed Ahmad | 3/13/2002 | 10:24:05 PM | And next step is to forward to a jsp |
| Naveed Ahmad | 3/13/2002 | 10:24:28 PM | the forward method is in the BaseControl.java |
| Naveed Ahmad | 3/13/2002 | 10:25:36 PM | I retieve the ei object from the request scopel |
| Naveed Ahmad | 3/13/2002 | 10:25:48 PM | and print out the values on the jsp |
| Naveed Ahmad | 3/13/2002 | 10:26:24 PM | I will show you how it works. |
| Naveed Ahmad | 3/13/2002 | 10:26:30 PM | on the browser. |
| Naveed Ahmad | 3/13/2002 | 10:27:29 PM | So based on the empId=1 |
| Naveed Ahmad | 3/13/2002 | 10:27:45 PM | It brought the remaining values from the mysql table. |
| Naveed Ahmad | 3/13/2002 | 10:28:09 PM | We need to have tomcat for this part of it. |
| Naveed Ahmad | 3/13/2002 | 10:28:14 PM | i.e. servlet and jsp |
| Naveed Ahmad | 3/13/2002 | 10:28:37 PM | But for all the java files in the model we can test by our main method. |
| Naveed Ahmad | 3/13/2002 | 10:29:01 PM | But mysql and the jar files are a must for them |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:29:16 PM | Can you quickly tell me the difference between jsp and servlet, java beans? |
| Naveed Ahmad | 3/13/2002 | 10:29:54 PM | java bean is a java class |
| Naveed Ahmad | 3/13/2002 | 10:29:58 PM | nothing more. |
| Naveed Ahmad | 3/13/2002 | 10:30:12 PM | Just like you c++ classes. |
| Naveed Ahmad | 3/13/2002 | 10:30:34 PM | Java servlet runs in your servlet engine. |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:30:55 PM | Ok. |
| Naveed Ahmad | 3/13/2002 | 10:31:00 PM | You implement the doPost method of a servlet to act on an invoation. |
| Naveed Ahmad | 3/13/2002 | 10:31:19 PM | For exampl e whe n I typed the URL. |
| Naveed Ahmad | 3/13/2002 | 10:31:24 PM | http://localhost/distrimon/servlet/ShowEmployee?empId=1 |
| Naveed Ahmad | 3/13/2002 | 10:31:55 PM | the code in the doPost method got invoked for the servlet |
| Naveed Ahmad | 3/13/2002 | 10:32:39 PM | A jsp eventually gets converted into a servlet. |
| Brian Burgner | 3/13/2002 | 10:32:50 PM | why do we have servlets instead of all jsps? |
| Naveed Ahmad | 3/13/2002 | 10:32:54 PM | But you can mix html with java code easily. |
| Naveed Ahmad | 3/13/2002 | 10:33:04 PM | A jsp also runs in a servlet engine. |
| Naveed Ahmad | 3/13/2002 | 10:33:31 PM | You write the java code in <% %> |
| Naveed Ahmad | 3/13/2002 | 10:33:33 PM | tags |
| Naveed Ahmad | 3/13/2002 | 10:33:49 PM | Anything outseide it is html |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:34:06 PM | Right. It's just like an ASP page. |
| Naveed Ahmad | 3/13/2002 | 10:34:10 PM | So you use jsp to display information |
| Naveed Ahmad | 3/13/2002 | 10:34:17 PM | Exactly! |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:34:35 PM | And so you're java bean is actually a COM component. |
| Naveed Ahmad | 3/13/2002 | 10:34:38 PM | Servlet acts like a controller or manager between jsp and java classes. |
| Naveed Ahmad | 3/13/2002 | 10:34:48 PM | Correct |
| Naveed Ahmad | 3/13/2002 | 10:35:01 PM | java classes are your business end. |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:35:06 PM | So the jsp is accessed by the user. the jsp calls the servlet which in turn calls the java bean to get at the database. |
| Naveed Ahmad | 3/13/2002 | 10:35:15 PM | Correct. |
| Naveed Ahmad | 3/13/2002 | 10:35:29 PM | The servlets are always transparent |
| Naveed Ahmad | 3/13/2002 | 10:35:50 PM | Because after exexuting they forward the control to a jsp |
| Naveed Ahmad | 3/13/2002 | 10:36:01 PM | Let me dra a diagram |
| Naveed Ahmad | 3/13/2002 | 10:38:11 PM | basically a jsp or an html sends info to a servlet |
| Naveed Ahmad | 3/13/2002 | 10:38:18 PM | using post or get |
| Naveed Ahmad | 3/13/2002 | 10:38:30 PM | the servlet picks the values from the request. |
| Naveed Ahmad | 3/13/2002 | 10:38:39 PM | Instantiates a java bean. |
| Naveed Ahmad | 3/13/2002 | 10:38:53 PM | Sets the values of the java beans, calls operations |
| Naveed Ahmad | 3/13/2002 | 10:39:02 PM | get values from the java beans |
| Naveed Ahmad | 3/13/2002 | 10:39:12 PM | forwards them to another jsp |
| Naveed Ahmad | 3/13/2002 | 10:39:25 PM | The servlet is never see by the user. |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:39:42 PM | Understood! So the java bean does respond to the servlet unlike your diagram? |
| Naveed Ahmad | 3/13/2002 | 10:39:43 PM | The servlet also creates the jdbc connection |
| Naveed Ahmad | 3/13/2002 | 10:39:55 PM | The java bean |
| Naveed Ahmad | 3/13/2002 | 10:40:07 PM | Or the EmployeeInfo object can be passed to the jsp |
| Naveed Ahmad | 3/13/2002 | 10:40:13 PM | for display purposes. |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:40:30 PM | Ok. |
| Naveed Ahmad | 3/13/2002 | 10:41:03 PM | Like the ei was set in the reqeust |
| Naveed Ahmad | 3/13/2002 | 10:41:27 PM | This is the MVC architecture. |
| Naveed Ahmad | 3/13/2002 | 10:41:43 PM | Extrme cases are that you can write ALL your code in a jsp |
| Naveed Ahmad | 3/13/2002 | 10:42:01 PM | Or all your code in a servlet (even the htm prints). |
| Naveed Ahmad | 3/13/2002 | 10:42:28 PM | But this is the corrst way to do it. |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:42:28 PM | Right! Just like we could have skipped the servlet - perhaps. |
| Naveed Ahmad | 3/13/2002 | 10:42:39 PM | Yah |
| Naveed Ahmad | 3/13/2002 | 10:42:53 PM | You can instanitate the object in a jsp |
| Naveed Ahmad | 3/13/2002 | 10:43:00 PM | But this really cluuters the jsp |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:43:24 PM | Right again. This architecture is what we use at work only on a microsoft shop. |
| Naveed Ahmad | 3/13/2002 | 10:43:26 PM | Practice is that the only code to be wrtten in a jsp is the code for display purposes. |
| Naveed Ahmad | 3/13/2002 | 10:43:51 PM | liek iterating a vector etc |
| Naveed Ahmad | 3/13/2002 | 10:44:21 PM | So are you guys ready to work on the java beans? |
| Mohammed Shabib | 3/13/2002 | 10:44:24 PM | yes |
| Naveed Ahmad | 3/13/2002 | 10:44:57 PM | Can you take 3 tables. |
| Naveed Ahmad | 3/13/2002 | 10:45:05 PM | Job Applicant |
| Naveed Ahmad | 3/13/2002 | 10:45:10 PM | Resume Pool |
| Naveed Ahmad | 3/13/2002 | 10:45:15 PM | and Web Attributes. |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:45:32 PM | I might run into a few questions once I dive in the code syntax wise, but otherwise I feel comfortable as well. |
| Naveed Ahmad | 3/13/2002 | 10:45:44 PM | Which tables you want to take? |
| Mohammed Shabib | 3/13/2002 | 10:45:59 PM | I'll take Job Applicant |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:46:12 PM | Submitted Resume |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:46:26 PM | Resume Of |
| Mohammed Shabib | 3/13/2002 | 10:46:43 PM | Job Posting |
| Naveed Ahmad | 3/13/2002 | 10:46:44 PM | Mohammad take one more. |
| Naveed Ahmad | 3/13/2002 | 10:46:54 PM | how about Resume Pool |
| Naveed Ahmad | 3/13/2002 | 10:47:35 PM | It is quite simple one you get an example running. |
| Mohammed Shabib | 3/13/2002 | 10:47:49 PM | I'll try it |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:48:11 PM | I'll give a shot! |
| Naveed Ahmad | 3/13/2002 | 10:48:15 PM | Ask Rahul to get you an account on his machine. |
| Mohammed Shabib | 3/13/2002 | 10:48:17 PM | ok |
| Naveed Ahmad | 3/13/2002 | 10:48:23 PM | You can always ask me a question. |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:48:24 PM | Ok |
| Mohammed Shabib | 3/13/2002 | 10:48:26 PM | great |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:48:31 PM | I probably will! |
| Naveed Ahmad | 3/13/2002 | 10:48:38 PM | You can also call me too. |
| Naveed Ahmad | 3/13/2002 | 10:48:51 PM | Home 732 2549977 |
| Naveed Ahmad | 3/13/2002 | 10:48:59 PM | Office 732 4202919 |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:49:11 PM | Excellent! Thanks for offering. |
| Mohammed Shabib | 3/13/2002 | 10:49:14 PM | thanks |
| Naveed Ahmad | 3/13/2002 | 10:49:29 PM | So whenever your stuck, call me |
| Naveed Ahmad | 3/13/2002 | 10:49:55 PM | So would you be able to finish this over the weekend? |
| Mohammed Shabib | 3/13/2002 | 10:49:59 PM | I think so |
| Naveed Ahmad | 3/13/2002 | 10:50:09 PM | Great. |
| Naveed Ahmad | 3/13/2002 | 10:50:26 PM | I think we can finish the java beans part pretty quickly. |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:50:27 PM | I might have it ready by the middle of next week. Would that work? |
| Naveed Ahmad | 3/13/2002 | 10:50:37 PM | Yah |
| Naveed Ahmad | 3/13/2002 | 10:51:23 PM | So shoudl we end know? |
| Mohammed Shabib | 3/13/2002 | 10:51:30 PM | sure |
| Naveed Ahmad | 3/13/2002 | 10:51:48 PM | Ok see you all after weekend. |
| Mohammed Shabib | 3/13/2002 | 10:51:53 PM | take care, later |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:52:10 PM | naveed, question on the homework? |
| Naveed Ahmad | 3/13/2002 | 10:52:12 PM | by |
| Naveed Ahmad | 3/13/2002 | 10:52:15 PM | Yah |
| Naveed Ahmad | 3/13/2002 | 10:52:27 PM | Have you started working on it. ? |
| Naveed Ahmad | 3/13/2002 | 10:52:39 PM | I have only read the question yet. |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:52:47 PM | did you and rahul discussed what metrics you will work on. |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:52:55 PM | me too. |
| Naveed Ahmad | 3/13/2002 | 10:52:56 PM | If you want to write some thing and mail it to me. |
| Naveed Ahmad | 3/13/2002 | 10:53:06 PM | I'll add and forward to rahul. |
| Naveed Ahmad | 3/13/2002 | 10:53:19 PM | No Rahul and I have not had any discussion. |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:53:21 PM | I will have something by tonight. |
| Naveed Ahmad | 3/13/2002 | 10:53:32 PM | Great. |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:53:36 PM | I'll send it to you and Rahul. |
| Naveed Ahmad | 3/13/2002 | 10:53:40 PM | Mail me a word file. |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:53:46 PM | Gotcha. |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:53:53 PM | I can let you go now. |
| Naveed Ahmad | 3/13/2002 | 10:54:02 PM | Ok by Cesar. |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:54:10 PM | See you. Thanks for everything. |
| Naveed Ahmad | 3/13/2002 | 10:54:16 PM | Sure. |
| Cesar R. (Rob) Nunez | 3/13/2002 | 10:54:19 PM | bye. |