virtual learning

Published on May 2016 | Categories: Documents | Downloads: 70 | Comments: 0 | Views: 271
of 185
Download PDF   Embed   Report

project report in java

Comments

Content

Project Report VIRTUAL DESKTOP

July-2012

1) Introduction / Objectives
Virtual desktop (E-Learning) is a type of Technology supported education/learning (TSL) where the medium of instruction is computer technology. In some instances, no in-person interaction takes place. E-learning is used interchangeably in a wide variety of contexts. In companies, it refers to the strategies that use the company network to deliver training courses to employees. In the USA, it is defined as a planned teaching/learning experience that uses a wide spectrum of technologies, mainly Internet or computer-based, to reach learners. Lately in most Universities, e-learning is used to define a specific mode to attend a course or programmes of study where the students rarely, if ever, attend face-to-face for on-campus access to educational facilities, because they study online. Virtual desktop (E-learning) is naturally suited to distance learning flexible learning, but can also be used in conjunction with face-to-face teaching. ELearning pioneer Bernard Luskin argues that the "E" must be understood to have broad meaning if e-Learning is to be effective. Luskin says that the "e" should be interpreted to mean exciting, energetic, enthusiastic, emotional, extended, excellent, and educational in addition to "electronic" that is a traditional national interpretation. This broader interpretation allows for 21st century applications and brings learning and media psychology into the equation. Virtual desktop (E-Learning) can also refer to educational web sites such as those offering learning scenarios, worksheets and interactive exercises for children. The term is also used extensively in the business sector where it generally refers to cost-effective online training. Virtual desktop (E-Learning) is the convergence of the web and learning on all levels, whether it be elementary school, college, or business. Knowledge is now considered a competitive advantage and a company’s most important asset. Many facts, figures, and forces behind e-Learning are not only causing excitement in boardrooms across the world but are also making Wall Street and the investment community take a closer look.

MCA, Sikkim Manipal University

25

Project Report VIRTUAL DESKTOP

July-2012

Virtual desktop (E-Learning) is made up of several methods of learning, which are enhanced or facilitated by technology. As a component of eLearning, web-based or online learning is likely to be the fastest-growing method for delivering education and training. Mega trends in areas such as demographics, technology, globalization, branding, consolidation/privatization, and outsourcing will greatly affect the way we learn. These mega trends will affect all learning markets including early education, K-12 education, post-secondary education, corporate training, and consumer products and services. The dearth of skilled labor in the corporate world will only increase the need for e-Learning. In order for the positive potential of learning objects to be realized, they need to be labeled, described, investigated and understood in ways that make the simplicity, compatibility and advantages claimed for them readily apparent to teachers, trainers and other practitioners. For the full potential of e-learning standardization and infrastructure efforts to be realized, it is important that these efforts place significantly greater attention on existing educational practice, on issues of innovation adoption, and on the heterogeneity of educational activities and contexts in general. To properly deal with this divergence and complexity--and with issues also now emerging from training and other communities--it is necessary to look beyond systems engineering techniques and standardization processes. These techniques and processes may work well for more exclusively technical applications, but they are proving inadequate for dealing with the ambiguities implied in education and even in the deceptively simple term "learning." They also bring with them a culture and set of connotations that are (at the very least) not entirely helpful in public education. Perhaps most importantly for e-learning content and standardization, it is important to recognize that objects and infrastructures for learning cannot simultaneously be both pedagogically neutral and pedagogically valuable. Developers and designers will have to recognize and choose relevant (and probably differing) pedagogical positions, or risk pedagogical irrelevance.

MCA, Sikkim Manipal University

26

Project Report VIRTUAL DESKTOP

July-2012

2) System Analysis

2.1) Identification of Need
Crunch time comes and goes many times in a single term. Sometimes you're faced with term papers. At other times, you're faced with tests and portfolios. the same time, you may be earning credit through exams, which can include CLEP, exitexams,and placement exams.At What is crunch time? What does it look like? You probably already know. It's the time in the semester perhaps in the beginning, when you have to pass a placement exam in order to be able to stay in a program. It can be a time when all your quizzes, papers, and presentations seem to occur at the same time. Or, it could be the traditional "crunch times" of mid-terms and final exams. The key to success has to do with succeeding at the tasks that you must do in order to make it to the end of the course. You may think that success has to do with achieving the outcomes, and conquering course goals. That's true enough. But, if you haven't determined what you need to do to get there the tasks you'll need to complete you'll get about halfway to the ultimate outcomes, and then will be totally stuck in a hopeless morasses and will have no time to extricate yourself. The Key: Task Identification: The first thing to do after taking a deep breath, and reassuring yourself that you can succeed is to remind yourself that the key to success is to tackle parts rather than the whole thing all at once. So, make a list of what you need to do. Then, print out your syllabus, your assignments, and your calendar. Keep those items at hand as you look at the following questions and answer them to your own satisfaction:


Task overview: What are the tasks you must do. In a few words, list the items you must do, and the things you'll need to do in order to accomplish the task. For example, if you must write a response to a reading, be sure to

MCA, Sikkim Manipal University

27

Project Report VIRTUAL DESKTOP

July-2012

do the reading. Practice active reading -- take notes, and relate the reading to the work you'll need to do.














Task breakdowns: Be sure to list the steps you'll need to do in order to accomplish your task. If you have to write a research paper, be sure to build in time to do an adequate job of online research in the virtual library. How much must you do? How much requires collaboration? What kind of paper do you have to write? What is the word count? Do you have to put it in a particular style? Be sure to keep that in mind. If you're required to collaborate with a classmate, or complete a peer review, be sure to keep that in mind as well. Identify outcomes / required work: What are the outcomes that are required? Are you expected to be able to list, detail, or explain items in the unit? Be sure to keep those in mind because they are key elements as you study for your exam. Estimating the time required: Make an honest assessment of the time that will be required. Avoid putting yourself in a situation that will be filled with distractions. Do you have problems resisting surfing the net as you do your online course? If so, download the items you need and go to a wifi-free zone or otherwise Internet-fewer places. Be sure to keep your focus on the work. Do whatever you have to do to maintain your concentration. Planning time: Keep in mind that you'll need to incorporate some planning time before you start working on your paper or assignments. If you do not build in planning time, you'll be very sorry later -- you may have to redo sections, or may be running down the wrong path. Inventory information needs: Sketch out your information needs. Make a quick inventory, or list of "must-have" -- will you need to obtain research statistics? Will you need to build an annotated bibliography? Do you need case studies? Statistics? If you know what you need, you'll save time. You'll go to the right databases and the right sources, rather than wasting time. Gather needed information: As you gather information, think about how you plan to use the information. Don't gather information you don't need -no matter how intriguing or quirky. Simply stick to what you must do -keep focused -- and as you gather information, keep in mind where you'll be placing it. That will be very helpful to you because you'll be thinking ahead, and will be, in essence, making a rough draft of what you'll be writing later.

Performance: Practice Your Skills •

What will you have to do? If you're taking a course that requires you to perform -- write a computer program, create digital art, develop a digital portfolio, assemble a presentation, create an audio or video file -- you'll 28

MCA, Sikkim Manipal University

Project Report VIRTUAL DESKTOP

July-2012

need to master the skills first of all. If you don't, you won't be able to communicate your ideas, etc.






Skills to practice: What are they? Identify which software programs you need to have, the hardware (digital camera? cell phone? microphone?) and make sure you know how to use them. Give yourself time to feel comfortable. As technology advances the use of e-learning across Europe is growing rapidly. Alongside this growth there is an increasing realisation that common standards must be introduced to validate the identity of the learner. This is seen as an essential requirement to minimise the possibility of learning fraud, enable the use of secure continuous assessment procedures, encourage and facilitate the transnational transfer of skills/ qualifications across Europe. The project will address these issues by exploring the use of emerging technologies; including biometrics, public key infrastructure, network forensics and smart cards, to determine a common framework of standards which will be tested and evaluated on European vocational e-learning programmes. The project will research and develop a new approach to the way in which learner identification and assessment is conducted. Both new and existing technologies and methodologies (e.g. biometrics, smart cards, network forensics and public key infrastructure) will be applied to a new environment (on-line learning). These technologies and methodologies will be used to create a framework of European standards in the identification of e-learners and the way in which they are assessed.

The principle aims of the project • •

Construct a European Standard for on-line learner identification. Construct a European Standard for linking on-line learner identification to continuous learner assessments.

The hypotheses and systems will be tested and evaluated through pilots delivered across all partner countries. Partners include ICT providers, Universities, Training Providers, Chambers of Commerce, Awarding Bodies, and Associations from seven European countries. All partners will contribute to all stages of the project, ensuring a truly transnational approach and result. Valorisation will occur via the Internet, targeted mail, press releases, workshops and presentations. In the short term the project will raise awareness of the need to further develop quality assurance systems for e-learning. In the mid to long term (2-5 years) the project is expected to have a more profound and concrete impact on European elearning systems.

MCA, Sikkim Manipal University

29

Project Report VIRTUAL DESKTOP

July-2012

The identification system is expected to be almost identical regardless of sector, and so can be readily replicated and transferred to learners studying other vocational subjects from other backgrounds. The assessment process, however, will vary depending on both vocational sector and the personal characteristics of the learner. The intention here is to produce a set of guidelines and standards for the electronic authentication of e-learning, around which assessments for learners studying different vocational subjects in different contexts can be constructed. The overall intention is to set out the findings of this pilot project in a set of reports which maximise transferability of the projects results and findings. This will take into consideration transferability to almost any e-learning institution, to almost any subject matter and to almost any learner. Future potential of the project will be the improved reliability and acceptability of elearning assessment, leading to increased learning opportunities available for the learner and facilitating the transnational transfer of skills/ qualifications across Europe.
Results and Products • •





A project website will be produced to facilitate communication between partners, dissemination of results and publicity for the project. Three research reports will be produced, firstly on the current position regarding how e-learning is assessed, secondly into developing appropriate innovative technologies to facilitate authentication of elearning and lastly a final report on the project as a whole. A web-based control system will allow for the authentication of elearners, and control access to e-learning materials and user management. This will involve thedevelopment of an Authentication Client, Authentication Server Application, and a User Database and Administration Applications. The Authentication Client and Documentation will also be distributed.

2.2) Preliminary investigation
Both e-learning and e-commerce are increasingly of interest to researchers in recent years. A body of research has emerged regarding the two trends. It was considered that e-learning could be taken as a special type of e-commerce, in which the education service provided online is, in fact, the product that being

MCA, Sikkim Manipal University

30

Project Report VIRTUAL DESKTOP

July-2012

purchased and delivered online from an e-commerce system. Based on this concept, some lessons or findings drawn from e-commerce researches should also be useful for e-learning system design. The purpose of this paper is to carry out a preliminary investigation on the e-learning system design considerations from users' (students') point of view by referring to some of the e-shop designing considerations. With literature reviewed and the author's previous study on ecommerce, the characteristics of e-learning systems were highlighted and compared with their counterparts in e-commerce systems. It was found that the characteristics of a product affect customers' preference of online shopping for that particular product. By the same token, an inference was made with this study that the content features of a particular course would influence students' acceptance of the e-learning approach. Content feature and its suitableness for online delivery may provide a new perspective when designing an e-course, and could be an early signal for the success of the service.

E-learning (EL) has become an increasingly popular mode of instruction in higher education due to the continual advances in Internet and multimedia technologies. Since many universities are adopting EL, an understanding of the critical factors involved in the implementation of EL technology can help to ensure the successful integration of EL in university administration planning and operations procedures. The objectives of this paper are twofold: to examine approaches to EL usage in universities in Thailand, and to report on a preliminary investigation into factors that influence EL implementation at the Thai tertiary level. Patterns of EL implementation from four cases are presented. Results from in-depth qualitative interviews with administrators, instructors, and students showed that three main factors and one key barrier influence the degree to which EL implementation was successful. The three factors are characteristics of the organization, the instructor and the Internet environment. Of these factors, the organizational component, including both the university policy towards EL and the organization of the EL unit itself, was the most important. The instructors' perceptions of the benefits of EL and the ease of use also contributed to implementation success, as does Internet accessibility. The key barrier was found to be student preference for instructor-led learning. Implications for both university and EL unit administrators as well as for instructors are suggested for the continued development of EL in Thai universities and similar educational contexts.

As a potential solution to increasing demands on mental health services at universities, this project seeks to develop an informal online learning community for mental health support and education. Students' use of the Internet and Information and Communication Technologies (ICT), especially to access health information, provides a supporting rationale for this project. The design for this study is grounded in the pedagogical principles of informal learning and the

MCA, Sikkim Manipal University

31

Project Report VIRTUAL DESKTOP

July-2012

practices for building successful online communities. The student online mental health community has been implemented at the authors' university (University of Dublin, Trinity College) for one academic term and the initial analysis of its usage is positive. Features that are being positively evaluated are the role of the reader participant, disinheriting that arises from anonymity, online provision acting as a gateway to further support, and online provision reaching an audience who ordinarily do not use face-to-face services. At the same time, difficulties specific to this type of community have surfaced, including technical issues, implications of anonymity and user safety. A Preliminary Investigation of the Effects of Giving Testimony and Learning Yogic Breathing Techniques on Battered Women's Feelings of Depression. It isn't just the promise of impressive technology that is driving people to elearning. Business need to get rapidly changing information to large numbers of people faster than ever. They need to lower the overall costs of creating a workforce that performs faster and better than the competition, and they need to do this around the clock. It's no longer a question of whether organizations will one day implement online learning, but whether they will do it well. Most organizations that need to train their employees are experimenting with some form of Web-delivered learning. But most organizations have focused on the technological challenges, buying the right software, getting enough bandwidth allocated for Web-based training, designing courseware, etc. These are important steps, but the larger strategic issues remain unsolved: how to make e-learning part of the daily work culture and fully implement its power. E-Learning is the first book in this exciting new field that addresses not just the technological challenges of Web-based training and knowledge management, but how to develop a comprehensive organization-wide learning strategy. Author Marc Rosenberg discusses the technological issues but, more importantly, assesses the dramatic strategic, organizational, and political issues involved in the process of making e-learning a reality. Written for professionals responsible for leading the revolution in workplace learning, E-Learning takes a broad, strategic perspective on corporate learning. This wake-up call for executives everywhere discusses: Requirements for building a viable e-learning strategy; how e-learning will change the nature of training organizations; Knowledge management and other new forms of e-learning. E-Learning explains the basic principles of a comprehensive Web-based learning strategy -- how to link your organization's Web sites, Web-based training, courseware, and all the other components of online learning. With an underlying focus on the "why" and not just the "how" Rosenberg provides a roadmap for growing and sustaining an e-learning culture that's based on his twenty years of observations, best (and worst) practices, and conversations with leaders in the learning technology fields. Divided into three parts, E-Learning offers an essential

MCA, Sikkim Manipal University

32

Project Report VIRTUAL DESKTOP

July-2012

balance between building great e-learning (design and technology issues) and implementing it (acceptance and support issues). Within each chapter, examples illustrate many key components of an effective e-learning framework. To keep within bounds; restrict: Please confine your remarks to the issues at hand. See Synonyms at limit. to the classroom walls. Students should have the opportunity to view the whole world through an ICT network, ICT literacy and the development of positive attitudes towards ICT. Mainly print-based learning materials supplemented with audio and videotapes, and television-based learning, including satellite broadcasts. With regard to distance education by electronic media, the communication infrastructure and technical equipment is also available but needs some upgrading. While the equipment is satisfactory for developing and delivering the type of material currently used by the distance teaching institutes, it will need to be upgraded if the new interactive real-time1. real-time - Describes an application which requires a program to respond to stimuli within some small upper limit of response time (typically milli- or microseconds). For traditional learning, I think important factors are friends, classatmosphere and teacher. If she teaches us seriously, it will depress us, so we will not want to learn. At first, I felt that this subject would be difficult, but after learning by repeating over again and practicing on the learning exercise several times, it became easy and fun. I was enthusiastic to learn. I did not like to learn this subject, but I gradually felt better and liked it at last. It was challenging to calculate and memorize formulas. When I got a right answer, I was glad and proud of it. The next two quotes focus on the benefits of e-learning: For an overall online learning course, it developed my knowledge and skill in using the Internet. Actually, I'm a very slow learner especially in mathematics and I need a lot of time to learn things, that's why online helps me to learn easier because I can revise the lesson as many times as I like. I can also test myself with the quiz after I have finished study so I know what level I am and what are my Weaknesses. I like the teaching method using online learning very much because it was not too boring like reading from a textbook. There are many things to study and play at the same time. Both e-learning and e-commerce are increasingly of interest to researchers in recent years. A body of research has emerged regarding the two trends. It was considered that e-learning could be taken as a special type of e-commerce, in which the education service provided online is, in fact, the product that being purchased and delivered online from an e-commerce system. Based on this concept, some lessons or findings drawn from e-commerce researches should also be useful for e-learning system design. The purpose of this paper is to carry out a MCA, Sikkim Manipal University 33

Project Report VIRTUAL DESKTOP

July-2012

preliminary investigation on the e-learning system design considerations from users' (students') point of view by referring to some of the e-shop designing considerations. With literature reviewed and the author's previous study on ecommerce, the characteristics of e-learning systems were highlighted and compared with their counterparts in e-commerce systems. It was found that the characteristics of a product affect customers' preference of online shopping for that particular product. By the same token, an inference was made with this study that the content features of a particular course would influence students' acceptance of the e-learning approach. Content feature and its suitableness for online delivery may provide a new perspective when designing an e-course, and could be an early signal for the success of the service.

2.3) Feasibility Study
Technical Feasibility As per the technology is considered it is advanced in terms of manpower, intelligence, machine requirements, the company has Tomcat Server, Daffodil Database, Window XP Professional operating system, J2EE as technology, hence the system is found to be technically feasible. Economical Feasibility Regarding the cost and benefits, the application, which is to be developed and implemented, will give large benefits to the company as it saves time and reduces efforts of interaction between various users. Thus this project is considered economically feasible. Operational Feasibility Operational feasibility is a consideration about the working of the application after the product being installed on to any system. The company, which will use the product, can also use the application to interact with its own people as well as its clients. This is meant to increase productivity in the long run. Thus this project is considered operational feasible. If we want to take a look at the educational situation for blind and visually impaired people in World, we will see quite a varied spectrum. There is not one general development typical for all countries, there are, however some common tendencies. Though I try to follow international developments in education for the visually impaired, I don’t claim to have all the answers and know everything worth knowing. So if anyone of you present here can augment or correct my MCA, Sikkim Manipal University 34

Project Report VIRTUAL DESKTOP

July-2012

statements in the discussions to follow, I would be happy to listen and learn . In the educational arena for the blind and visually impaired there are four scenarios that we have to consider: early intervention and pre-school activities,primary and secondary school, post secondary education in colleges and universities, continuous or life-long learning. The pre-school period is one I know very little of, so I will not deal with it here. Suffice it to say that the pre-school years are a vital phase to lay the foundations for future success in learning, general behavior and the acquisition of fundamental life skills. Primary and secondary education, the most formative years of our lives. In most European countries it is not a question of access to education for blind and visually impaired people, it is rather a question of access to quality education. Legal regulations in most countries guarantee access to education, the way in which education is delivered, however differs significantly and merits a closer look. In my mind, education serves a dual purpose both for disabled and non-disabled people. It is supposed to help us grow into cultural beings with a wide variety of interests and skills, and – in a society that still largely defines individuals by their status in the labor market – education should prepare us for just that labor market . Integrated education – or nowadays we favor the term inclusive education – is very much en vogue. And I agree with this tendency, but at the same time, I don’t hesitate to utter some doubts. Like all things in life, inclusive education can be successful if it is done right. But very often it isn’t done right, it is often introduced or even mandated in order to save money. Specialist segregated institutions for the blind and visually impaired are expensive to maintain, but high quality inclusive education doesn’t come cheap either. Sufficient qualified support staff, adapted teaching and learning materials, impairment specific computer hard- and software and adequate support services must be in place to successfully achieve the objectives of the so-called second curriculum. Now what do I mean by second curriculum ? There apparently is the first curriculum, all the subjects and skills we are taught at school. Blind and visually impaired students, however need to acquire a number of extra skills to master their school carreer and life in general. Training in orientation and mobility to get around independently, daily living skills to cope with food preparation, cleaning, maintenance of clothing and so forth, several Braille systems, there isn’t just the regular Braille alphabet, there are notations for

MCA, Sikkim Manipal University

35

Project Report VIRTUAL DESKTOP

July-2012

music and science, there is contracted Braille not only for the mother tongue but also for foreign languages, computer skills must be mastered, the simplicity of the screen overview and the point and click navigation with a mouse does not exist for blind and severely visually impaired people. And, especially for blind people, there is the field of concept development in order to keep them from using empty phrases that have no meaning for them. Visual concepts such as color or the sheer size of objects are difficult to comprehend. You have to work with relief maps, models and lots of patient explanations to bring about an understanding of such phenomena. And this is just a short list to exemplify my point, I could go on for a while yet. But the necessary instruction in this second curriculum is in severe danger in a number of countries, and my own home country unfortunately is among those. In the past the field of special education for disabled people was a varied one with a number of disciplines catering to different disabilities. Today in many countries institutions of higher learning where special educators are being trained are conceiving training programs for so-called generic special education teachers, teachers that will maybe know a little bit about every disability but who lack the necessary knowledge to satisfy the special needs of individual disabilities. Especially for the sensory impairments this approach is extremely dangerous and could lead to irrevocable damage in the school careers of sensory impaired persons. But it is not only the danger of inadequate support in inclusive education that lets me return to my quest for the access to quality education. The closure of specialized institutions for the blind and visually impaired in a number of countries has further complicated the situation. These centers provided – and where they exist still provide – excellent support to students in inclusive settings, produce high quality teaching and learning materials and serve as sources for personnel training in mainstream systems. And they can serve the student clientel who cannot make it in an inclusive environment. And there is a growing number of students who fail in mainstream schools. Financial cuts for the support structures, inadequate assistance, social pressure, health problems, stigmatization and sometimes very long school days due to long travelling hours between home and school constitute the reasons for these failures. It is my strong felt personal opinion and it has been the governing policy of such self-help organizations as the European Blind Union that both systems of education need to coexist and that the respective programs must be funded appropriately. To clarify this statement, let me give you an example of one of the blind students whose school career I have followed and whom I supported as a resource teacher during a number of years of his mainstream education. He started out in the neighborhood school of his home town, and attended it for the course of his primary education which fortunately lasted for six years. He

MCA, Sikkim Manipal University

36

Project Report VIRTUAL DESKTOP

July-2012

went on to secondary school, again an inclusive environment, but after two years he felt he needed a change. He wanted to hone his blindness skills and above all feel equal among peers. Since he is a strong-willed person and because of very cooperative parents he attended a special school for the blind for two years after which time he happily returned to his former secondary school to finish the last three years of his school career with very good grades in his university entrance qualification. It is this kind of open system providing access in both ways which I consider the ideal situation for the education of the blind and visually impaired. But in Europe we unfortunately are far from this happy state of flexibility.

Post-secondary education
After having successfully prepared our students for a course of higher learning, a relatively small number of blind and visually impaired students tread these paths. Many universities provide resource centers to support visually impaired students by making available reading and transcription services as well as computer work stations equipped with assistive technology. In some countries there is even financial assistance available to individuals to cover some of the extra costs related to the pursuit of studies. Having overcome such initial difficulties as getting to know the new environment, adjusting to a new set of social circumstances and getting used to the coursework, suddenly another unforeseen obstacle appears: the Bologna process. These measures towards streamlining and compatibility of study programs across borders, place some heavy burdens on the visually impaired students. Very strict time constraints, sharing work packages among teams and unused formats of presentation or inaccessible content constitute signifcant barriers. Visual access to information is often fast and intuitive, the blind or visually impaired student, however will have to access content sequentially which takes considerably longer. To achieve similar standards as their sighted peers, blind and visually impaired people always need more time and effort. The legal procedures governing rules and regulations of university curricula and examinations will have to take this into account. And in some European countries this process is already well under way. Another major difficulty are internships and work study periods abroad which are sometimes mandatory components of a given course of study, but they are always highly sought after items on a job applicant's cv by personnel managers. Financial assistance to cover the cost of blindness related expenses of fulfilling these requirements is often impossible to come by or very difficult to arrange. The benefits and assistance granted to a blind or visually impaired student in his or her home country are either not available in the host country or the foreign student is simply not eligible for such compensations. In addition to the disability itself, these missing extra qualifications often constitute a significant disadvantage in the job hunt.

MCA, Sikkim Manipal University

37

Project Report VIRTUAL DESKTOP

July-2012

Continuous or life-long learning
Globalization, rapidly changing job profiles and newly emerging vocational challenges create the backdrop for the need to constantly refresh or even newly acquire professional knowledge. More often than not electronic media and the internet provide the building blocks to access this type of content. Distance learning, blended learning and e-learning are the buzz words of the trade. -elearning plattforms with their animated content, video presentations, chat rooms and white boards frequently create insurmountable barriers to blind and visually impaired learners. Taking into account that not even a majority of government internet sites is fully accessible today, one is bound to ask if providers of profit oriented e-learning plattforms will make the effort to open their sites to a marginal group of potential customers. Only legal requirements and the loosening of copyright restrictions all over Europe will improve this situation. There are European Union projects in place to demonstrate the feasibility of e-learning activities, but we need to observe these with a healthy amount of skepticism. I would like to confront you with two thought provoking questions concerning this aspect of access to education : What could be the advantages of a well-structured and barrier free e-learning plattform over such traditional means of learning as books, text and audio information on cd or the internet, e-mail and telephone contact to the trainer ? Can well-structured and barrier free e-learning offers for the blind and visually impaired achieve the same learning potential as e-learning for the sighted that make use of such visual features as animations, videos and white boards which are currently inaccessible to the visually impaired ? With all the above in mind, I will now briefly touch on one final aspect of access to education. Medical progress and generally more tolerant societies have brought growing numbers of learning disabled and multiply disabled blind and visually impaired people into the educational arena. I have very little experience in these areas, but as a blind person demanding equal opportunities for myself, I feel compassion for these groups of people and I know that they also have the right to access to education. They too require support and specialist assistance. With these thoughts I will conclude and thank you for your attention. The generation who grew up with the internet, emailing and text messaging is now in higher and further education. And universities and colleges are being pressured from several directions to introduce e-learning. Many schools have enthusiastically embraced online learning across the curriculum. Today's students are information and communications technology savvy, and teachers are developing an enthusiasm for innovation that takes them beyond the standard classroom approach. They are using e-learning to give pupils

MCA, Sikkim Manipal University

38

Project Report VIRTUAL DESKTOP

July-2012

the excitement of more independent learning, beyond the classroom, to link with learners elsewhere, and supporting home-school internet links. The pressure comes from the other end as well. Employers need graduates with eskills, such as information handling, network communication and data modelling. These skills cannot be acquired from basic information and communications technology courses. They are integral to how a subject is studied, as are laboratories and libraries. And these skills are transferable to a wide range of contexts in the workplace. E-learning creates new ways of delivering and accessing education, thus giving universities and colleges an incentive to get involved. Take history. Access to digital facsimiles, to historic census data or to linguistic analysis tools is changing how students can practise the skills of a historian. Some lecturers are giving students new kinds of resources to work with, so they can experience the excitement of engaging with history at a deeper level. Students still need the guidance of a lecturer to fully understand and check their work, but this kind of active learning can give them greater understanding of what they are studying. These days, students are looking for courses that offer more creative involvement in their studies. E-learning can give a boost to students in any discipline, but few universities and colleges are using its full potential. A recent survey conducted by Ultralab exposed the disparity between institutions and courses. We are barely halfway through the process of embedding e-learning facilities in post-school education, but I know that the further and higher education sectors want to support progression from school to further learning. E-learning offers the ideal link, and if some universities and colleges can do it, why not all? Some have invested in trials and initiatives that have shown the feasibility of e-learning. The further and higher education sectors have achieved pockets of excellence, and often the expertise is there. Some institutions are setting a lead. Their students are accessing materials and support through elearning design tools and assessment systems. But all too often a promising project falters when funding ends. Newly developed experts take their skills to the private sector. We know that under the right conditions, e-learning can transform the learning experience and enhance the reach and quality of what teachers can do for learners. We have to make those pockets of excellence universal. That is why this week we have published a consultation document, Towards a Unified E-learning Strategy. The white paper The Future of Higher Education cited the fact that, as part of this wider strategy, the Higher Education Funding Council for England has been asked to bring forward sustainable plans for e-learning. Its consultation paper, E-

MCA, Sikkim Manipal University

39

Project Report VIRTUAL DESKTOP

July-2012

Learning in Higher Education is also about to be published. The Learning and Skills Council will similarly announce its plans this month. The time has come to take the leap to make e-learning a natural part of our educational process. We have to envisage a future system of education and together work out how to achieve this. It will not be easy to transform an educational process designed in the 19th century to one tailored to 21st-century needs. But we have the example of many institutions, courses and departments that have done just that. Leadership is one of the key strategic actions in the proposed strategy.

2.4) Project Planning
Project Planning is part of project management, which relates to the use of schedules such as project Matrices, project Estimation, models Estimation and automated tools for Estimation report progress within the project environment. It is said that if you cannot measure, then it is not engineering. Effective management of software development process requires effective measurement of software development process. Often, from the input given by project leaders on the estimation of software project, the management decides whether to proceed with the project or not. Need for Project metrics: Historically, the process of software development has been witnessing inaccurate estimations of schedule and cost, overshooting delivery target and productivity of software engineers in not commensurate with the growth of demand. Software development projects are quite complex and there was no scientific method of measuring the software process. Thus effective measurement of the process was virtually absent. The following phrase is aptly describing the need for measurement: If you can not measure it, then, you can not improve it. Definition of metrics: Metrics deal with measurement of the software process and the software product. Metrics quantify the characteristics of a process or a product. Metrics are often used to estimate project cost and project schedule. Types of Project Metrics Metrics can be broadly divided into two categories namely, product metrics and process metrics. Product metrics: lines of code(LOC): LOC metric is possibly the most extensively used for measurement of size of a program. The reason is that LOC can be precisely

MCA, Sikkim Manipal University

40

Project Report VIRTUAL DESKTOP

July-2012

defined. LOC may include executable source code nod non-executable program code like comments etc. Module Module 1 Module 2 Module 3 Effort in man-months 3 4 5 LOC 24,00 25,00 26,00

Productivity of a person = LOC/man-month Quality = No. of defects/LOC Its evident that the productivity of the developer engaged in Module 1 is more than the reductively of the developer engaged in Module2. It is important to note here how derived metrics are very handy to project managers to measure various aspects of the projects. Software project estimation Software project estimation is the process of estimating various resources required for the completion of a project. Effective software project estimation is an important activity in any software developemtn project. Understtinating software project and under staffing it often leads to low quality deliverables, and the project misses the target deadline leading to customer dissatisfaction and loss of credibility to the company. On the other hand, overstaffing a project without proper control will increases the cost of the project and reduces the competitiveness of the company. Activity Planning Controlling Monitoring/improvin g Tasks involved Cost estimation, planning for training of manpower, project scheduling and budgeting the project. Size metrics and schedule metrics help the manager to keep control of the project during execution. Metrics are used to monitor progress of the project and wherever possible sufficient resources are allocated to improve.

User requirements Software Project Constraints estimation Schedule Effort Cost

MCA, Sikkim Manipal University

41

Project Report VIRTUAL DESKTOP

July-2012

Organizational Policies, Standards Estimating the size: Estimating the size of the software to be developed is the very first step to make an effective estimation of the project. Customer’s requirements and system specification forms a baseline for estimating the size of a software. At a later stage of the project, system design document can provide additional details for estimating the overall size of software. Estimating effort: Once the size of software is estimated, the next step is to estimate the effort based on the size. The estimation of effort can be made from the organizational specifics of software development life cycle. The development of any application software system is more than just coding of the system. Depending on deliverable requirements, the estimation of effort for project will vary. Efforts are estimated in number of man-months. Estimating Schedule: The next in estimation process is estimating the project schedule from the effort estimated. The schedule for a project will generally depend on human resources involved in a process. Efforts in man-month are translated to calendar months. Schedule in calendar moths=3.0*(man-months)power of 1/3. The parameter 3.0 is variable, used depending on the situation which works best for organization. Estimating cost: Cost estimation is the next step for projects. The cost of a project is derived not only from the estimates of effort and size but from other parameters such as hardware, travel expenses, telecommunication costs, training cost etc. should also be taken into account. Effort Hardware cost Travel expenses Training cost Cost estimation Process Project cost

MCA, Sikkim Manipal University

42

Project Report VIRTUAL DESKTOP

July-2012

Communication cost And other cost factors

Cost estimation process

Automated Tools For Estimation: Automated estimation tools, which estimate cost and effort, allow the project managers to perform “what if analysis”. Estimation tools may only support size estimation or conversion of size to effort and schedule to cost.

Requirements

Size estimation Tools

Project estimation tools

Reports Other cost drivers and constraints Cost Schedule Effort

Typical structure of estimation tools

2.5) Project scheduling
Project scheduling is part of project management, which relates to the use of schedules such as Gantt charts to plan and subsequently report progress within the project environment. Initially, the project scope is defined and the appropriate methods for completing the project are determined. Following this step, the durations for the various tasks necessary to complete the work are listed and grouped into a work breakdown structure. The logical dependencies between tasks are defined using an activity network diagram that enables identification of the critical path. Float or slack time in the schedule can be calculated using project management software. Then the

MCA, Sikkim Manipal University

43

Project Report VIRTUAL DESKTOP

July-2012

necessary resources can be estimated and costs for each activity can be allocated to each resource, giving the total project cost. At this stage, the project plan may be optimized to achieve the appropriate balance between resource usage and project duration to comply with the project objectives. Once established and agreed, the plan becomes what is known as the baseline. Progress will be measured against the baseline throughout the life of the project. Analyzing progress compared to the baseline is known as earned value management.

Sep RequirementGathering(T1) Design (T2) Test Cases (T3) Coding (T4) Quality Assurance (T5) Testing (T6) Build (T7)

Oct

Nov

Dec

Jan

Feb

GANTT CHART
A Gantt chart is a type of bar chart that illustrates a project schedule. Gantt charts illustrate the start and finish dates of the terminal elements and summary elements of a project. Terminal elements and summary elements comprise the work breakdown structure of the project. Some Gantt charts also show the dependency (i.e, precedence network) relationships between activities. Gantt charts can be used to show current schedule status using percent-complete shadings and a vertical "TODAY" line as shown here. In the 1980s, personal computers eased the creation and editing of elaborate Gantt charts. These desktop applications were intended mainly for project managers and project schedulers. In the late 1990s and early 2000s, Gantt charts became a common feature of web-based applications, including collaborative groupware. Although now regarded as a common charting technique, Gantt charts were considered revolutionary when they were introduced. In recognition of Henry Gantt's contributions, the Henry Laurence Gantt Medal is awarded for distinguished achievement in management and in community service. This chart is used also in Information Technology to represent data that has been collected.

MCA, Sikkim Manipal University

44

Project Report VIRTUAL DESKTOP Advantages and limitations

July-2012

Gantt charts have become a common technique for representing the phases and activities of a project work breakdown structure (WBS), so they can be understood by a wide audience. A common error made by those who equate Gantt chart design with project design is that they attempt to define the project work breakdown structure at the same time that they define schedule activities. This practice makes it very difficult to follow the 100% Rule. Instead the WBS should be fully defined to follow the 100% Rule, then the project schedule can be designed. Although a Gantt chart is useful and valuable for small projects that fit on a single sheet or screen, they can become quite unwieldy for projects with more than about 30 activities. Larger Gantt charts may not be suitable for most computer displays. A related criticism is that Gantt charts communicate relatively little information per unit area of display. That is, projects are often considerably more complex than can be communicated effectively with a Gantt chart. Gantt charts only represent part of the triple constraints of projects, because they focus primarily on schedule management. Moreover, Gantt charts do not represent the size of a project or the relative size of work elements, therefore the magnitude of a behind-schedule condition is easily miscommunicated. If two projects are the same number of days behind schedule, the larger project has a larger impact on resource utilization, yet the Gantt does not represent this difference. Although project management software can show schedule dependencies as lines between activities, displaying a large number of dependencies may result in a cluttered or unreadable chart. Because the horizontal bars of a Gantt chart have a fixed height, they can misrepresent the time-phased workload (resource requirements) of a project. In the example shown in this article, Activities E and G appear to be the same size, but in reality they may be orders of magnitude different. A related criticism is that all activities of a Gantt chart show planned workload as constant. In practice, many activities (especially summary elements) have front-loaded or back-loaded work plans, so a Gantt chart with percent-complete shading may actually miscommunicate the true schedule performance status. PERT is a method to analyze the involved tasks in completing a given project, especially the time needed to complete each task, and identifying the minimum time needed to complete the total project. This model was invented by Booz Allen Hamilton, Inc. under contract to the United States Department of Defense's US Navy Special Projects Office in 1958 as part of the Polaris mobile submarine-launched ballistic missile project. This

MCA, Sikkim Manipal University

45

Project Report VIRTUAL DESKTOP

July-2012

project was a direct response to the Sputnik crisis. Some US government contracts required that PERT be used as part of management supervision. PERT was developed primarily to simplify the planning and scheduling of large and complex projects. It was able to incorporate uncertainty by making it possible to schedule a project while not knowing precisely the details and durations of all the activities. It is more of an event-oriented technique rather than start- and completion-oriented, and is used more in R&D-type projects where time, rather than cost, is the major factor. This project model was the first of its kind, a revival for scientific management, founded in Fordism and Taylorism. Only DuPont corporation's critical path method was invented at roughly the same time as PERT.

T4 T2

T5

T7

T3 T1 T6

PERT CHART

The first step to scheduling the project is to determine the tasks that the project requires and the order in which they must be completed. The order may be easy to record for some tasks (e.g. When building a house, the land must be graded before the foundation can be laid) while difficult for others (There are two areas that need to be graded, but there are only enough bulldozers to do one). Additionally, the time estimates usually reflect the normal, non-rushed time. Many times, the time required to execute the task can be reduced for an additional cost or a reduction in the quality.

2.6) Software requirement Specifications (SRS)
MCA, Sikkim Manipal University 46

Project Report VIRTUAL DESKTOP

July-2012

This document is generated as output of requirement analysis. This requirement analysis involves obtaining a clear and thorouth understanding of the product to be developed. Thus SRS should be consistent, correct, unambiguous & complete, document. The developer of the system can prepare SRS after detailed communication with the customer. An SRS clearly defines the following:

2.7) Software Engineering Paradigm Applied
To solve actual problems in an industry setting, software engineer or a team of engineers must incorporate a development strategy that encompasses the process, methods and tools layer and the generic phases. The strategy is often referred to as process model or a software engineering paradigam. A process model for software engineering is chosen based on the nature of the project and application, the methods and tolls to be used, and the controls process.

Problem Definition

Status quo

Technical Development

Solution Integration All software development can be characterized as a problem-solving loop as shown in the above figure in which four distinct stages are encountered: Status quo, problem definition, technical development and solustion integration. Status quo “represents the current state of affairs” problem definition indentifies the specific problem to be solved, technical development solves the problem through the application of some technology, and solution integration delivers the results (e.g. documents, programs, data new business function, new product) to those who requested the solution in the first place.

MCA, Sikkim Manipal University

47

Project Report VIRTUAL DESKTOP

July-2012

This problem-solving loop applies to software engineering work at many different levels of resolution. It can be used at the macro level when the entire application is considered, at a mid-level when program components are being engineered, and even at the line of code level. Therefore, a fractal reqresentation can be used to provide an idealized view of process. Each stage in the broblem-solving loop contains an identical problem-solving loop, which contains still another problem solving loop. The generic phases that characterized the software process such as definition, development & support are applicable to whole software. The problem is to select the process model that is appropriate for the software to be engineered by a project team. In this software, I have used the linear sequential model. Following figure illustrates the linear sequentical model for software engineering:

System / information engineering

Analysis

Design

Code

Test

Modeled after a convention engineering cycle, the linear sequential model encompasses the activities: System / Information Engineering and Modeling: Because software is always part of a larger system (or business), work begins by establishing requirements for all system elements and then allocating some subset of these reuirements to software. This system view is essential when software must interact with other elements such as hardware, people and databases. System engineering and analysis encompass requirements gathering at the system level with a small amount of top-level design and analysis.

2.8) Data Model

MCA, Sikkim Manipal University

48

Project Report VIRTUAL DESKTOP

July-2012

Login form

Administrator Student Registration Trainer

Process handler

memory

2.9) Control Flow Diagrams

VD System CFD

MCA, Sikkim Manipal University

49

Project Report VIRTUAL DESKTOP

July-2012

Start

Login

Administrator
Student Trainer

Create Batch
Administrator

Create Courses and Sessions

Register courses for Batch

Register Trainers

Stop

For each batch do

Administration Process Register Students

Allot courses and session to Trainer Upload study material
MCA, Sikkim Manipal University 50

Return

Project Report VIRTUAL DESKTOP

July-2012

Trainer Process

Trainer

For each Course Allotted do

Download Study Material

Take online Class

Conduct Online Test

Sends Result

Reply Offline Query

Return

MCA, Sikkim Manipal University

51

Project Report VIRTUAL DESKTOP

July-2012

Student Process

Student

Download Study Material

Attend Online Class

Attend Online Test

View Result

Ask Offline Query

Return

MCA, Sikkim Manipal University

52

Project Report VIRTUAL DESKTOP

July-2012

2.10) State Diagrams / Sequence diagrams ERD’s
State Diagrams: State diagrams model the dynamic behaviour of inbividual classes or any other kind of object. The show the sequence of states that an object goes through, the events that case a transition from one state to another and the actions that result from a state change. Sequence diagrams: A sequence diagrams is graphical view of a scenario that shows object interaction in a time-based sequence of what happens first, what happens next. Sequence diagrams establish the roles of objects and help provide essential infromation to determine class responsibilities and interfaces.

:Admin

:Login Form

:Login Ctrl

:Login Information

1: Enter User id and Password

2: Retrieve data to validate

3: Get Values 4: Validate User

Administrator Sequence Diagram

MCA, Sikkim Manipal University

53

Project Report VIRTUAL DESKTOP

July-2012

:Trainer

:Login Form

:Login Ctrl

:Login Information

1: Enter User id and Password

2: Retrieve data to validate

3: Get Values 4: Validate User

Trainer Sequence Diagram

MCA, Sikkim Manipal University

54

Project Report VIRTUAL DESKTOP

July-2012

:Student

:Login Form

:Login Ctrl

:Login Information

1: Enter User id and Password

2: Retrieve data to validate

3: Get Values 4: Validate User

Student Sequence Diagram

MCA, Sikkim Manipal University

55

Project Report VIRTUAL DESKTOP

July-2012

Pwd SId

Address

Name

Email Phone Downloads Date m Register/ Edit

Mid

Mname

SSid Cid

Uid

m

STUDENT
m m EndDate StartDate Cname Cid Contains m

m

COURSE MATERIAL
m Uid Manipulates /Upload 1 m

COURSE

m Manipulates 1 1

Pwd

Takes

Manipulate /Allot

1

ADMINISTRATOR
1 Checks 1 Downloads Register/ Edit

m Attends SSid SSname Cid m SSdate m Conduct m

m

Feedback SSid DaysLeft

SESSION
m

m

SESSIONSTATUS
1

Update Request/ Takes 1 m Uid phone Train_id name address Email 1 m m

TEST
Tid Cid TDate Result

TRAINER

pwd

ER Diagram of VD

MCA, Sikkim Manipal University

56

Project Report VIRTUAL DESKTOP

July-2012

An Entity relationship Diagram is a data modeling technique that creates a graphical representation of the entities and the relationships between entities.

Entity

Entity An entity is an object or concept about which you want to store information.

Entity

Weak Entity A weak entity is dependent on another entity to exist.

Attribut e Attribut e

Attribute Attribute is the properties or characteristics of an entity Key attribute A key attribute is the unique, distinguishing characteristic of the entity. For example an employee’s social security number might be the employee’s key attribute.

Attribut e

Multi-valued Attribute A multi-valued attribute can have more than one value. For example, an employee entity can have multiple skill values

Attribut e

Derived attribute A derived attribute is based on another attribute. For example an employee’s monthly salary is based on the employee’s annual salary Relationships

Relatio nship

Relationships illustrate how two entities share information in the database structure.

MCA, Sikkim Manipal University

57

Project Report VIRTUAL DESKTOP

July-2012

2.11) Class Diagrams / CRC Models
A class diagram is a picture for describing generic descriptions of possible systems. Class diagrams contain classes and object diagrams contain objects, but it is possible to mix classes and objects when dealing with various kinds of metadata, so the separation is not rigid. Class diagrams are more prevalent than object diagrams. Class diagrams contain icons representing classes, interfaces, and their relationships. You can create one or more class diagrams to depict the classes at the top level of the current model; such class diagrams are themselves contained by the top level of the current model. You can also create one or more class diagrams to depict classes contained by each package in your model; such class diagrams are themselves contained by the package enclosing the classes they depict; the icon representing logical packages and classes in class diagras.

Administrator
Main Application Form ->Start() ->SetupSecurityContext() ->DisplayAvailOperations() Login Form ->EnterUserName() ->EnterUserId()

<<Interface>> SecureUser ->CreateBatch() ->CreateCourses&Sessions() ->RegisterCoursesforBatch() ->RegisterTrainer() ->RegisterStudent() ->AllotCourses&SessionTrainer() ->UploadStudyMaterial()

Administrator Class Diagram

MCA, Sikkim Manipal University

58

Project Report VIRTUAL DESKTOP

July-2012

Trainer
Main Application Form ->Start() ->SetupSecurityContext() ->DisplayAvailOperations() Login Form ->EnterUserName() ->EnterUserId()

<<Interface>> SecureUser ->DownloadStudyMaterial() ->TakeOnlineClass() ->ConductOnlinetest() ->SendResult() ->ReplyOfflineQuery()

Tainer Class Diagram

MCA, Sikkim Manipal University

59

Project Report VIRTUAL DESKTOP

July-2012

Student
Main Application Form ->Start() ->SetupSecurityContext() ->DisplayAvailOperations() Login Form ->EnterUserName() ->EnterUserId()

<<Interface>> SecureUser ->DownloadStudyMaterial() ->AttendOnlineClass() ->AttendOnlineTest() ->ViewResult() ->AskOffLineQuery()

Student Class Diagram

MCA, Sikkim Manipal University

60

Project Report VIRTUAL DESKTOP Zero Level Data flow diagram of Administrator Module (VD)

July-2012

STUDENT FILE

USER DETAIL
Check Validity

TRAINER FILE

COURSE FILE

Maintain Student Login

Maintain Trainer

ADMINISTRATOR

1 LOGIN PROCESS

Maintain Course

Maintain Session

Maintain Attendance Maintain Courseware

ATTENDANCE FILE

MATERIAL FILE
0-Level DFD of Administrator.

SESSION FILE

First Level DFD of Administrator Module (VD) MCA, Sikkim Manipal University 61

Project Report VIRTUAL DESKTOP

July-2012

SESSION FILE

COURSE FILE
Course Detail

Session Detail

3 MAINTAIN SESSION

USER DETAIL
Check Validity

2 MAINTAIN COURSE

Create Session Login

Create Course

ADMINISTRATOR

1 LOGIN PROCESS

Register/Edit

5 MAINTAIN TRAINER

Trainer Detail

TRAINER FILE

Register/Edit

Updated Materail

6 MAINTAIN STUDENT
Student Deatail

6 CHECK ATTENDENCE 4 MAINTAIN MATERIAL
Attendance Courseware

STUDENT FILE
Sent To

Study Material

7 UPLOAD

Sent To

ATTENDANCE FILE

MATERIAL FILE

1st level DFD of Administrator.

Zero Level DFD of Trainer Module (VD)

MCA, Sikkim Manipal University

62

Project Report VIRTUAL DESKTOP

July-2012

TEST FILE

USER DETAIL
Check Validity Create Test Login

COURSE FILE

TRAINER

1 LOGIN PROCESS

Check Course

Send To Students Download

Check Session

MESSAGE FILE

MATERIAL FILE
0-Level DFD of Trainer.

SESSION FILE

First Level DFD of Trainer Module (VD)

MCA, Sikkim Manipal University

63

Project Report VIRTUAL DESKTOP

July-2012

USER DETAIL
Check Validity

COURSE FILE
Validate

SESSION FILE
Validate

Login

TRAINER

1 LOGIN PROCESS

Course/Session

3 CHECK COURSE

Session

4 CHECK SESSION
Initiate Class

Create Test

Update Material

11 REQUEST TEST
Get Test Material

2 GET MATERIAL
Request Material

5 START CLASS

Send Msg To Students

TEST FILE

COURSE MATERIAL

MSG FILE

1st Level DFD of Trainer

Second Level DFD of Trainer Module (VD)

MCA, Sikkim Manipal University

64

Project Report VIRTUAL DESKTOP

July-2012

USER DETAIL
Check Validity Invoke

2 DOWN LOAD PROCESS

Courseware

COURSE MATERIAL

COURSE FILE
Study Material Validate Course

Login

TRAINER
Logout Invoke

1 LOGIN PROCESS
Invoke

Invoke

3 LOGIN CLASS

Login

4 SELECT COURSE
Valid Course

SESSION FILE

16 CHECK MESSAGE

11 REQUEST TEST
Online Paper Test Result

Validate Session

Session Status

Email

Email

5 SELECT SESSION
Valid Session

10 UPDATE SESSION

17 PROCESS MESSAGE

TEST FILE
Test Ans Online Paper Session Detail Study Materail

Query

MSG FILE

14 EVALUATE TEST

Test Result

12 SENT TO

6 START CLASS

7 GET MATERIAL

18 REPLY MESSAGE
Email

Virtual Dektop /Chat Msg Solved Paper Message Test Result

Query

8 SENT INFO
Message

MSG FILE
Msg Data

15 CREATE MSG
Offline Query

13 SUBMIT TEST
Online Paper Test Result

RESULT FILE
Answer Paper

9 ASK QUESTION
Query

STUDENT

2nd Level DFD of Trainer

Zero Level DFD of Student Module (VD)

MCA, Sikkim Manipal University

65

Project Report VIRTUAL DESKTOP

July-2012

USER DETAIL
Check Validity

TEST FILE
Attend Test

STUDENT

Login

1 LOGIN PROCESS

Receive from Trainer Download

MESSAGE FILE

MATERIAL FILE

0-Level DFD of Student.

MCA, Sikkim Manipal University

66

Project Report VIRTUAL DESKTOP First Level DFD of Student Module (VD)

July-2012

USER DETAIL
Check Validity Login Invoke

STUDENT
Logout Invoke

1 LOGIN PROCESS
Invoke

2 Course Materials DOWN LOAD PROCESS

MATERIAL FILE

Invoke

9 PROCESS MESSAGE

Online Paper

7 TEST PROCESS
Test Result Solved Paper

3 LOGIN CLASS ROOM

Observe Virtual Desktop / Chat Msg

4 SUBMIT QUERY
Query

Query Ans

MSG FILE
Msg Data Msg Data

TEST FILE 8 EVALUATE TEST
Test Result Offline Query / Assignment

Test Ans

6 REPLY QUERY

5 SEND QUERY

RESULT FILE
Chat Msg

Test Result

TRAINER

Query

1st Level DFD of Student

MCA, Sikkim Manipal University

67

Project Report VIRTUAL DESKTOP Second Level DFD of Student Module (VD)

July-2012

TEST FILE USER DETAIL
Online Paper Check Validity Invoke Login Test Ans Submit Paper

RESULT FILE
Test Result

STUDENT
Logout Invoke

1 LOGIN PROCESS
Invoke Invoke

8 TEST PROCESS

Start Test

9 GET QUES PAPER

Solve

10 ANS PAPER

11 EVALUATE TEST
Test Result

Send Test Result

13 CHECK MESSAGE

16 DOWN LOAD PROCESS
Select Material

2 LOGIN CLASS ROOM

Login

Observe Virtual Desktop

12 SENT TO

Chat Msg

3 START CLASS

4 ANALYZE CLASS

5 SUBMIT QUERY
Query

Test Result

Emails

Msg Data

14 PROCESS MESSAGE

MSG FILE
Query Ans

17 DOWN LOAD MATERIAL
Download

7 REPLY QUERY

Msg Data

Assignment / Query

6 SEND QUERY
Msg Data Chat Msg

15 REPLY MESSAGE MATERIAL FILE
Messages/ Attachments

TRAINER

2nd Level DFD of Student

MCA, Sikkim Manipal University

68

Project Report VIRTUAL DESKTOP

July-2012

2.12) Collaboration Diagrams / Use-case Diagrams

A collaboration diagram is an interaction diagram that shows the order of messages that implement an operation or a transaction. Collaboration diagrams show objects, their links, and their messages. The can also contain simple class instances. Administrator: Create Batch

Create Courses & Sessions

Login

Register Courses for Batch Register Trainer

Register Student

Allot Courses & Session to Trainer

Upload Study Material

MCA, Sikkim Manipal University

69

Project Report VIRTUAL DESKTOP

July-2012

Trainer: Download Study Material

Take Online Class

Login

Conduct Online Test

Send Result

Reply Offline Query

MCA, Sikkim Manipal University

70

Project Report VIRTUAL DESKTOP

July-2012

Student:

Download Study Material

Attend Online Class Login

Attend Online Test

View Result

Ask Off Line Query

Use Case: A use case is a sequence of actions a system performs that yields an observable result of value to a particular actor.

NewUseCase

MCA, Sikkim Manipal University

71

Project Report VIRTUAL DESKTOP

July-2012

Actor: An actor represents many things that interact with the system.

Actor A class icon is drawn as a 3 part box, with the class name in the top part, a list of attrubutes (with optional types and values) in the middle part, and a list of operations (with optional argument lists and return types) in the bottom part. NewClass Attribute

Operation()

Stereotype: Representing one model element in the form of another model element. Classes are stereotyped depending on the following categories: Boundary Class: A boundry class represents an interface between the system and some entity outside the system: a person or another system. Its role is to mediate the exchange of information with the outside world, and to insulate the system from changes in its surroundings. They are of the following types. • • • User Interface Classes: Intermediate communication with human users of the system. System Interface Classes: Intermediate communication with other system. Device Interface Classes: Intermediate communication with external devices.

MCA, Sikkim Manipal University

72

Project Report VIRTUAL DESKTOP Boundary class

July-2012

Control Class: A control class is a class used to model control behaviour specific to one or a few use cases. Control objects(instances of control classes) often control other objects, so their behavior is of the coordinating type. Control classes encapsulate use-case specific behaviour.

Control Class

Entity Class: An entity class is a class used to model information and associated behavior that must be stored. Entity objects (instances of entity classes) are used to hold and update information about some phenomenon, such as an event, a person, or some real-life object. They are usually persistent, having attributes and relationshops meeded for a long period, sometimes for the life of the system.

Entity Class

MCA, Sikkim Manipal University

73

Project Report VIRTUAL DESKTOP

July-2012

3) System Design 3.1) Modularization details

Admin Module â—™ Admin module should be able to authenticate each trainer and student and provide service for them. â—™Admin module should be able to update trainer and student. â—™ Admin module takes care of project management activities including registration setup, evaluation forms, and confirmation of registration and attendance reports. Student Module â—™ The student side software module is used to prepare student side application. â—™ Students can choose courses, attend lectures, give exams, view their attendance records, progress reports etc. â—™ The student can interact with trainer application by using this application.

MCA, Sikkim Manipal University

74

Project Report VIRTUAL DESKTOP

July-2012

Trainer Module â—™ This module is used to prepare trainer side application.

â—™ Trainer can upload lectures, assignments, announcements, evaluate answer sheets in various formats as in videos, power point presentation etc. â—™ Trainer should be able to interact with students using chat session.

3.2) Data Integrity And Constraints
Data integrity is a term used in computer science and telecommunications that can mean ensuring data is "whole" or complete, the condition in which data are identically maintained during any operation (such as transfer, storage or retrieval), the preservation of data for their intended use, or, relative to specified operations, the a priori expectation of data quality. Put simply, data integrity is the assurance that data is consistent and correct. Often such integrity is ensured by use of a number referred to as a Message Integrity Code (MIC) or Message Authentication Code (MAC). In cryptography and information security in general, integrity refers to the validity of data. Integrity can be compromised through: Malicious altering, such as an attacker altering an account number in a bank transaction, or forgery of an identity document Accidental altering, such as a transmission error, or a hard disk crash In terms of a database data integrity refers to the process of ensuring that a database remains an accurate reflection of the universe of discourse it is modelling or representing. In other words there is a close correspondence between the facts stored in the database and the real world it models. Data integrity is normally enforced in a database system by a series of integrity constraints or rules. Three types of integrity constraints are an inherent part of the relational data model: entity integrity, referential integrity and domain integrity.

MCA, Sikkim Manipal University

75

Project Report VIRTUAL DESKTOP

July-2012

Entity integrity concerns the concept of a primary key. Entity integrity is an integrity rule which states that every table must have a primary key and that the column or columns chosen to be the primary key should be unique and not null. Referential integrity concerns the concept of a foreign key. The referential integrity rule states that any foreign key value can only be in one of two states. The usual state of affairs is that the foreign key value refers to a primary key value of some table in the database. Occasionally, and this will depend on the rules of the business, a foreign key value can be null. In this case we are explicitly saying that either there is no relationship between the objects represented in the database or that this relationship is unknown. Domain integrity specifies that all columns in relational database must be declared upon a defined domain. The primary unit of data in the relational data model is the data item. Such data items are said to be non-decomposable or atomic. A domain is a set of values of the same type. Domains are therefore pools of values from which actual values appearing in the columns of a table are drawn. An example of a data integrity mechanism in cryptography is the use of MD5 hash values. These blocks of bytes function as a numeric summation of the content of a data item. Should the data change even slightly, the MD5 hash would yield a totally different result.

constraint
In artificial intelligence and operations research, constraint satisfaction is the process of finding a solution to a set of constraints that impose conditions that the variables must satisfy. A solution is therefore a vector of variables that satisfies all constraints. The techniques used in constraint satisfaction depend on the kind of constraints being considered. Often used are constraints on a finite domain, to the point that constraint satisfaction problems are typically identified with problems based on constraints on a finite domain. Such problems are usually solved via search, in particular a form of backtracking or local search. Constraint propagation are other methods used on such problems; most of them are incomplete in general, that is, they may solve the problem or prove it unsatisfiable, but not always. Constraint propagation methods are also used in conjunction with search to make a given problem simpler to solve. Other considered kinds of constraints are on real or rational numbers; solving problems on these constraints is done via variable elimination or the simplex algorithm. As originally defined in artificial intelligence, constraints enumerate the possible values a set of variables may take. Informally, a finite domain is a finite set of arbitrary elements. A constraint satisfaction problem on such domain contains a set of variables whose values can only be taken from the domain, and a set of MCA, Sikkim Manipal University 76

Project Report VIRTUAL DESKTOP

July-2012

constraints, each constraint specifying the allowed values for a group of variables. A solution to this problem is an evaluation of the variables that satisfies all constraints. In other words, a solution is a way for assigning a value to each variable in such a way all constraints are satisfied by these values. In practice, constraints are often expressed in compact form, rather than enumerating all values of the variables that would satisfy the constraint. One of the most used constraints is the one establishing that the values of the affected variables must be all different. Problems that can be expressed as constraint satisfaction problems are the Eight queens puzzle, the Sudoku solving problem, the Boolean satisfiability problem, scheduling problems and various problems on graphs such as the graph coloring problem. While usually not included in the above definition of a constraint satisfaction problem, arithmetic equations and inequalities bound the values of the variables they contain and can therefore be considered a form of constraints. Their domain is the set of numbers (either integer, rational, or real), which is infinite: therefore, the relations of these constraints may be infinite as well; for example, X = Y + 1 has an infinite number of pairs of satisfying values. Arithmetic equations and inequalities are often not considered within the definition of a "constraint satisfaction problem", which is limited to finite domains. They are however used often in constraint programming. Constraint satisfaction problems on finite domains are typically solved using a form of search. The most used techniques are variants of backtracking, constraint propagation, and local search. These techniques are used on problems with nonlinear constraints. Variable elimination and the simplex algorithm are used for solving linear and polynomial equations and inequalities, and problems containing variables with infinite domain. These are typically solved as optimization problems in which the optimized function is the number of violated constraints. Solving a constraint satisfaction problem on a finite domain is an NP complete problem. Research has shown a number of tractable subcases, some limiting the allowed constraint relations, some requiring the scopes of constraints to form a tree, possibly in a reformulated version of the problem. Research has also established relationship of the constraint satisfaction problem with problems in other areas such as finite model theory.

Administrator Login Table

MCA, Sikkim Manipal University

77

Project Report VIRTUAL DESKTOP

July-2012

Field Name Id User Name

Datatype varchar varchar

Size 10 20

Constraints Not Null(primary key) Not Null

Trainer Login Table Field Name Id User Name Datatype varchar varchar Size 10 20 Constraints Not Null(primary key) Not Null

Student Login Table Field Name Id User Name Datatype varchar varchar Size 10 20 Constraints Not Null(primary key) Not Null

3.3) Database Design / Procedural Design / Object Oriented Design
Database design is the process of producing a detailed data model of a database. This logical data model contains all the needed logical and physical design choices and physical storage parameters needed to generate a design in a Data Definition Language, which can then be used to create a database. A fully attributed data model contains detailed attributes for each entity.

MCA, Sikkim Manipal University

78

Project Report VIRTUAL DESKTOP

July-2012

The term database design can be used to describe many different parts of the design of an overall database system. Principally, and most correctly, it can be thought of as the logical design of the base data structures used to store the data. In the relational model these are the tables and views. In an object database the entities and relationships map directly to object classes and named relationships. However, the term database design could also be used to apply to the overall process of designing, not just the base data structures, but also the forms and queries used as part of the overall database application within the database management system (DBMS). Design process: The process of doing database design generally consists of a number of steps which will be carried out by the database designer. Not all of these steps will be necessary in all cases. Usually, the designer must:
• • •

Determine the data to be stored in the database Determine the relationships between the different data elements Superimpose a logical structure upon the data on the basis of these relationships.

Within the relational model the final step can generally be broken down into two further steps, that of determining the grouping of information within the system, generally determining what are the basic objects about which information is being stored, and then determining the relationships between these groups of information, or objects. This step is not necessary with an Object database. The tree structure of data may enforce a hierarchical model organization, with a parent-child relationship table. An Object database will simply use a one-to-many relationship between instances of an object class. It also introduces the concept of a hierarchical relationship between object classes, termed inheritance Determining data to be stored: In a majority of cases, the person who is doing the design of a database is a person with expertise in the area of database design, rather than expertise in the domain from which the data to be stored is drawn e.g. financial information, biological information etc. Therefore the data to be stored in the database must be determined in cooperation with a person who does have expertise in that domain, and who is aware of what data must be stored within the system. This process is one which is generally considered part of requirements analysis, and requires skill on the part of the database designer to elicit the needed information from those with the domain knowledge. This is because those with the necessary domain knowledge frequently cannot express clearly what their system requirements for the database are as they are unaccustomed to thinking in

MCA, Sikkim Manipal University

79

Project Report VIRTUAL DESKTOP

July-2012

terms of the discrete data elements which must be stored. Data to be stored can be determined by Requirement Specification. Conceptual schema: Once a database designer is aware of the data which is to be stored within the database, they must then determine how the various pieces of that data relate to one another. When performing this step, the designer is generally looking out for the dependencies in the data, where one piece of information is dependent upon another i.e. when one piece of information changes, the other will also. For example, in a list of names and addresses, assuming the normal situation where two people can have the same address, but one person cannot have two addresses, the name is dependent upon the address, because if the address is different then the associated name is different too. However, the inverse is not necessarily true, i.e. when the name changes address may be the same. (NOTE: A common misconception is that the relational model is so called because of the stating of relationships between data elements therein. This is not true. The relational model is so named such because it is based upon the mathematical structures known as relations.) Logically structuring data: Once the relationships and dependencies amongst the various pieces of information have been determined, it is possible to arrange the data into a logical structure which can then be mapped into the storage objects supported by the database management system. In the case of relational databases the storage objects are tables which store data in rows and columns. Each table may represent an implementation of either a logical object or a relationship joining one or more instances of one or more logical objects. Relationships between tables may then be stored as links connecting child tables with parents. Since complex logical relationships are themselves tables they will probably have links to more than one parent. In an Object database the storage objects correspond directly to the objects used by the Object-oriented programming language used to write the applications that will manage and access the data. The relationships may be defined as attributes of the object classes involved or as methods that operate on the object classes. Physical database design: The physical design of the database specifies the physical configuration of the database on the storage media. This includes detailed specification of data elements, data types, indexing options, and other parameters residing in the

MCA, Sikkim Manipal University

80

Project Report VIRTUAL DESKTOP

July-2012

DBMS data dictionary. It is the detailed design of a system that includes modules & the database's hardware & software specifications of the system. Object-oriented design is the process of planning a system of interacting objects for the purpose of solving a software problem. It is one approach to software design. An object contains encapsulated data and procedures grouped together to represent an entity. The 'object interface', how the object can be interacted, is also defined. An object-oriented program is described by the interaction of these objects. Object-oriented design is the discipline of defining the objects and their interactions to solve a problem that was identified and documented during objectoriented analysis. From a business perspective, Object Oriented Design refers to the objects that make up that business. For example, in a certain company, a business object can consist of people, data files and database tables, artefacts, equipment, vehicles, etc. What follows is a description of the class-based subset of object-oriented design, which does not include object prototype-based approaches where objects are not typically obtained by instancing classes but by cloning other (prototype) objects.

Input (sources) for object-oriented design
The input for object-oriented design is provided by the output of object-oriented analysis. Realize that an output artefact does not need to be completely developed to serve as input of object-oriented design; analysis and design may occur in parallel, and in practice the results of one activity can feed the other in a short feedback cycle through an iterative process. Both analysis and design can be performed incrementally, and the artefacts can be continuously grown instead of completely developed in one shot. Some typical input artefacts for object-oriented design are:




Conceptual model: Conceptual model is the result of object-oriented analysis, it captures concepts in the problem domain. The conceptual model is explicitly chosen to be independent of implementation details, such as concurrency or data storage. Use case: Use case is description of sequences of events that, taken together, lead to a system doing something useful. Each use case provides one or more scenarios that convey how the system should interact with the users called actors to achieve a specific business goal or function. Use case actors may be end users or other systems. In many circumstances use cases are further elaborated into use case diagrams. Use case diagrams are

MCA, Sikkim Manipal University

81

Project Report VIRTUAL DESKTOP

July-2012





used to identify the actor (users or other systems) and the processes they perform. System Sequence Diagram: System Sequence diagram (SSD) is a picture that shows, for a particular scenario of a use case, the events that external actors generate, their order, and possible inter-system events. User interface documentations (if applicable): Document that shows and describes the look and feel of the end product's user interface. It is not mandatory to have this, but it helps to visualize the end-product and therefore helps the designer. Relational data model (if applicable): A data model is an abstract model that describes how data is represented and used. If an object database is not used, the relational data model should usually be created before the design, since the strategy chosen for object-relational mapping is an output of the OO design process. However, it is possible to develop the relational data model and the object-oriented design artefacts in parallel, and the growth of an artefact can stimulate the refinement of other artefacts.



Object-oriented concepts
The five basic concepts of object-oriented design are the implementation level features that are built into the programming language. These features are often referred to by these common names:


Object/Class: A tight coupling or association of data structures with the methods or functions that act on the data. This is called a class, or object (an object is created based on a class). Each object serves a separate function. It is defined by its properties, what it is and what it can do. An object can be part of a class, which is a set of objects that are similar. Information hiding: The ability to protect some components of the object from external entities. This is realized by language keywords to enable a variable to be declared as private or protected to the owning class. Inheritance: The ability for a class to extend or override functionality of another class. The so-called subclass has a whole section that is the superclass and then it has its own set of functions and data. Interface: The ability to defer the implementation of a method. The ability to define the functions or methods signatures without implementing them. Polymorphism: The ability to replace an object with its subobjects. The ability of an object-variable to contain, not only that object, but also all of its subobjects.





• •

Designing concepts


Defining objects, creating class diagram from conceptual diagram: Usually map entity to class. 82

MCA, Sikkim Manipal University

Project Report VIRTUAL DESKTOP
• •

July-2012

Identifying attributes. Use design patterns (if applicable): A design pattern is not a finished design, it is a description of a solution to a common problem, in a context. The main advantage of using a design pattern is that it can be reused in multiple applications. It can also be thought of as a template for how to solve a problem that can be used in many different situations and/or applications. Object-oriented design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved. Define application framework (if applicable): Application framework is a term usually used to refer to a set of libraries or classes that are used to implement the standard structure of an application for a specific operating system. By bundling a large amount of reusable code into a framework, much time is saved for the developer, since he/she is saved the task of rewriting large amounts of standard code for each new application that is developed. Identify persistent objects/data (if applicable): Identify objects that have to last longer than a single runtime of the application. If a relational database is used, design the object relation mapping. Identify and define remote objects (if applicable).







Output (deliverables) of object-oriented design


Sequence Diagrams: Extend the System Sequence Diagram to add specific objects that handle the system events. A sequence diagram shows, as parallel vertical lines, different processes or objects that live simultaneously, and, as horizontal arrows, the messages exchanged between them, in the order in which they occur. Class diagram: A class diagram is a type of static structure UML diagram that describes the structure of a system by showing the system's classes, their attributes, and the relationships between the classes. The messages and classes identified through the development of the sequence diagrams can serve as input to the automatic generation of the global class diagram of the system.

Some design principles and strategies

MCA, Sikkim Manipal University

83

Project Report VIRTUAL DESKTOP


July-2012





Dependency injection: The basic idea is that if an object depends upon having an instance of some other object then the needed object is "injected" into the dependent object; for example, being passed a database connection as an argument to the constructor instead of creating one internally. Acyclic dependencies principle: The dependency graph of packages or components should have no cycles. This is also referred to as having a directed acyclic graph. For example, package C depends on package B, which depends on package A. If package A also depended on package C, then you would have a cycle. Composite reuse principle: Favor polymorphic composition of objects over inheritance.

3.4) User Interface Design
Student table: Field Name st_id course user_name Batch_id Start_date End_date Full_name add e-mail Phone_no Datatype char varchar varchar char char char varchar varchar varchar integer Size 10 20 20 10 10 10 25 50 25 10 Constraints Not Null(Primary Key) Not Null Not Null Not Null Not Null Not Null Not Null Not Null Not Null Not Null 84

MCA, Sikkim Manipal University

Project Report VIRTUAL DESKTOP Trainer table: Field Name Tr_id trainername Fullname Address e-mail Phone_no Datatype char varchar varchar varchar varchar integer Size 10 10 25 50 25 10 Constraints

July-2012

Not Null (Primary Key) Not Null Not Null Not Null Not Null Not Null

Batches table: Field Name Batch_id Course_name Batch_start_date Batch_details Datatype char varchar char varchar Size 10 20 10 20 Constraints Not Null Not Null Not Null Not Null

Batches_trainers: Field Name Batch_id Trainer_name Datatype char varchar Size 10 10 Constraints Not Null Not Null

MCA, Sikkim Manipal University

85

Project Report VIRTUAL DESKTOP Class_status table: Field Name Batch_id Trainer_sys_id Datatype char char Size 10 10 Constraints Not Null Not Null

July-2012

Test table: Field Name tid sid tdate result Datatype char char char char Size 10 10 10 10 Constraints Not Null Not Null (Primary Key) Not Null Not Null

Coursematerial table: Field Name mid mname sid date Datatype char varchar char char Size 10 20 10 10 Constraints Not Null (Primary Key) Not Null Not Null (Primary Key) Not Null

MCA, Sikkim Manipal University

86

Project Report VIRTUAL DESKTOP

July-2012

header.jsp

<STYLE type=text/css>BODY { MARGIN-TOP: 10px; FONT-SIZE: 12px; BACKGROUND: #009966; MARGIN-LEFT: 5px; FONT-FAMILY: verdana, arial,helvetica; font-color: black } TD { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica } A:link { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } MCA, Sikkim Manipal University 87

Project Report VIRTUAL DESKTOP

July-2012

A:active { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:visited { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } </STYLE> <TABLE cellSpacing=0 cellPadding=0 width=100% align=center border=0> <TR><table> <TD align=left width=60 >&nbsp; <FONT size=2><B> <A href="home.jsp">Home</A> </B></FONT> <br> &nbsp; </TD> <TD align=center width=700 height=20> <img src="imgs/logo.jpg" width=60% > </TD> <TD align=left> <img src="imgs/desk.jpg" width=42% > </TD> </table> </TR> <hr size=2 > <TR> <TD> <FONT size=2><B> <A href="features.jsp">Features </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="e-learning.jsp">About ELearning </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="works.jsp">How it works? </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="aboutus.jsp">About us </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

MCA, Sikkim Manipal University

88

Project Report VIRTUAL DESKTOP </TD> <TD>

July-2012

<FONT size=2><B> <A href="contact.jsp">Contact us </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <hr size=2> <table> </TR> </TABLE> home.jsp <HTML> <BODY> <jsp:include page="header.jsp" /> <table> <tr> <td> <img src="imgs/central_india.jpg" width=550 height=300 > </td > <td bgcolor=#ffffd5 width=200 > <font size=2> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Our TrueLearn is the most true to its name, Online Education. <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;It not only does provide course details Online, It also does permi t handling of all class sessions online, including the process of examination, assignment submission and interaction. </font> </td> <td bgcolor=bbbbbb > <form action="login_page.jsp" method="post"> <table><tr ><td bgcolor=blue ><font color=white style=bold> <b > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L O G I N &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;</b> </font> </td> </tr> </table> <br><br><br> <font size=1>

MCA, Sikkim Manipal University

89

Project Report VIRTUAL DESKTOP

July-2012

ID &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;: <input type=text name=id> PASSWORD : <input type=password name=pwd> TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: <select name=type> <option value=Student>Student</option> <option value=Trainer>Trainer</option> <option value=Administrator>Administrator</option> </select> </font><br><br> &nbsp;&nbsp;&nbsp;<input type=submit value=" Login ">&nbsp;&nbsp;&nbsp;<input type=reset> </form> </td> </tr>&nbsp;&nbsp; <tr> <td > </td> <td > </td> <td > <img src="imgs/ebusiness.gif" > </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML>

footer.jsp <table width=100%> <tr> <td bgcolor=cccccc align=center> <font size=1> &copy 2009 MCA, Indira Ghandi National Open University, New Delhi All rights reserved.</font> </td> </tr> </table>

MCA, Sikkim Manipal University

90

Project Report VIRTUAL DESKTOP login_error.jsp:

July-2012

<HTML> <BODY> <jsp:include page="header.jsp" /> <table> <tr> <td width=200> <img src="imgs/err.jpg" align=left width=200> </td > <td bgcolor=ffffcc width=600 > <font size=2 > <b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Login operation failed.<br> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;You may try again. </b> </font> </td> <td bgcolor=bbbbbb > <form action="login_page.jsp" method="post"> <table><tr ><td bgcolor=blue ><font color=white style=bold> <b > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L O G I N &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;</b> </font> </td> </tr> </table> <br><br><br> <font size=1> ID &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;: <input type=text name=id> PASSWORD : <input type=password name=pwd> TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: <select name=type> <option value=Student>Student</option> <option value=Trainer>Trainer</option>

MCA, Sikkim Manipal University

91

Project Report VIRTUAL DESKTOP <option value=Administrator>Administrator</option> </select> </font><br><br> &nbsp;&nbsp;&nbsp;<input type=submit>&nbsp;&nbsp;&nbsp;<input type=reset> </form> </td> </tr>&nbsp;&nbsp; <tr> <td > </td> <td > </td> <td > <img src="imgs/ebusiness.gif" > </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML>

July-2012

login_handler.jsp: <%@ page import="java.sql.*" %> <% Connection conn = null; PreparedStatement stat = null; ResultSet rs = null; try{ String usr_name = request.getParameter("id").trim(); String passwd = request.getParameter("pwd").trim(); String login_type = request.getParameter( "type" ).trim(); System.out.println( usr_name + "..." + passwd + "..." + login_type ); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:virtualdesktop"); stat= conn.prepareStatement("SELECT * FROM user_details where username=?"); stat.setString( 1, usr_name); rs = stat.executeQuery(); boolean id_found = false;

if( rs.next() ) { String a = rs.getString(1).trim();

MCA, Sikkim Manipal University

92

Project Report VIRTUAL DESKTOP String b = rs.getString(2).trim(); String c = rs.getString(3).trim(); if( usr_name.equals(a) && passwd.equals(b) && login_type.equals( c ) ) { out.println( "success" ); } else //password does not match { out.println( "failure2" ); } } else //username does not exist { out.println( "failure" ); } }catch( Exception e){ System.out.println( "Exception in client_login_handler.jsp : " + e ); } finally { try{ if( stat != null ) { stat.close(); stat = null; } if( conn != null ) { conn.close(); conn = null; } if( rs != null ) { rs.close(); rs = null; } }catch( Exception ee ){ } System.gc(); } %>

July-2012

login_page.jsp:

MCA, Sikkim Manipal University

93

Project Report VIRTUAL DESKTOP

July-2012

<%@ page import="java.sql.*" %> <HTML> <BODY> <% Connection conn = null; PreparedStatement stat = null; ResultSet rs = null; try{ String usr_name = request.getParameter("id").trim(); String passwd = request.getParameter("pwd").trim(); String login_type = request.getParameter( "type" ).trim(); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:virtualdesktop"); stat= conn.prepareStatement("SELECT * FROM user_details where username=?"); stat.setString( 1, usr_name); rs = stat.executeQuery(); boolean id_found = false;

while( rs.next() ) { String a = rs.getString(1).trim(); String b = rs.getString(2).trim(); String c = rs.getString(3).trim(); if( usr_name.equals(a) && passwd.equals(b) && login_type.equals( c ) ) { session.setAttribute( "user_name", a ); session.setAttribute( "user_type", c ); if( c.equals( "Administrator" ) ) { %> <%@ include file="admin_home.jsp" %> <% }else if( c.equals( "Trainer" ) ) { %> <%@ include file="trainer_home.jsp" %> <% }else if( c.equals( "Student" ) ) { %> <%@ include file="student_home.jsp" %>

MCA, Sikkim Manipal University

94

Project Report VIRTUAL DESKTOP <% } id_found = true; break; } } rs.close(); stat.close(); if( ! id_found ) { %> <%@ include file="login_error.jsp" %> <% } } catch(Exception E) { %> <%@ include file="login_error.jsp" %> <% } finally { try{ if( rs != null ) rs.close(); if( stat != null ) stat.close(); if( conn != null ) conn.close(); }catch( Exception e ){System.out.println( e ); } %> </BODY></HTML>

July-2012

}

loginclass.jsp <HTML> <BODY> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

MCA, Sikkim Manipal University

95

Project Report VIRTUAL DESKTOP

July-2012

<STYLE type=text/css>BODY { MARGIN-TOP: 10px; FONT-SIZE: 12px; BACKGROUND: #009966; MARGIN-LEFT: 5px; FONT-FAMILY: verdana, arial,helvetica; font-color: black } TD { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica } A:link { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:active { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:visited { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } </STYLE> <TABLE cellSpacing=0 cellPadding=0 width=100% align=center border=0> <TR><table> <TD align=left width=60 >&nbsp; <FONT size=2><B> <A href="student_home.jsp">Home</A> </B></FONT> <br> &nbsp; </TD> <TD align=center width=700 height=20>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; <img src="imgs/logo.jpg" width=60% > </TD> <TD align=left > <img src="imgs/consulting2.jpg" width=50% > </TD> </table> </TR> <hr size=2 > <TR> <TD>

MCA, Sikkim Manipal University

96

Project Report VIRTUAL DESKTOP

July-2012

<FONT size=2><B> <A href="loginclass.jsp">login to classroom </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="download.jsp">Down load material </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="Bonus1.jar">Test </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="logout.jsp">Logout </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <hr size=2> <table> </TR> </TABLE> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><br> <b>Please note that this facility of web-enabled access to classroom is currently not available. You can use the online tools available for downloads instead.<br><br><br><br></b> <input type=button name=fullscreen value="FULL SCREEN"> <input type=text name="msg" value="enter the queies"> <input type=button name=send value="SEND"> <br><input type=richtext name="msg" value="enter the queies" size=70 > </td> </tr> </table> <table width=100%> <tr>

MCA, Sikkim Manipal University

97

Project Report VIRTUAL DESKTOP

July-2012

<td bgcolor=cccccc align=center> <font size=1> &copy 2009 MCA, Indira Ghandi National Open University, New Delhi All rights reserved. </font> </td> </tr> </table> </BODY></HTML>

logout.jsp <% session.setAttribute( "user_name", "" ); session.setAttribute( "user_type", "" ); session.invalidate() ; session = null; System.out.println( "session deleted" ); %> <jsp:include page="home.jsp" />

admin_home.jsp <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> <% if( session.getAttribute( "user_name" ) == null || ( (String) session.getAttribute( "user_name" ) ).trim().equals( "" ) ) { %> <br><br><b> You cannot do this task at this state. the session has expired. You need to login to proceed further. <br> Please do oblige and furgive the inconvenience. We think it is necessary to preserve the applications integrity. </b>

MCA, Sikkim Manipal University

98

Project Report VIRTUAL DESKTOP <% } %>

July-2012

Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> </b></p></font> <h2> Alert </h2> <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;You have got (-----) Messages. </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML>

admin_header.jsp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <STYLE type=text/css>BODY { MARGIN-TOP: 10px; FONT-SIZE: 12px; BACKGROUND: #009966; MARGIN-LEFT: 5px; FONT-FAMILY: verdana, arial,helvetica; font-color: black } TD { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica } A:link { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:active { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:visited { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } </STYLE>

MCA, Sikkim Manipal University

99

Project Report VIRTUAL DESKTOP

July-2012

<TABLE cellSpacing=0 cellPadding=0 width=100% align=center border=0> <TR><table> <TD align=left width=60 >&nbsp; <FONT size=2><B> <A href="admin_home.jsp">Home</A> </B></FONT> <br> &nbsp; <FONT size=2><B> <A href="credits.jsp">Credits </A> </B></FONT> </TD> <TD align=center width=700 height=20>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; <img src="imgs/logo.jpg" width=60% > </TD> <TD align=left > <img src="imgs/consulting2.jpg" width=50% > </TD> </table> </TR> <hr size=2 > <TR> <TD> <FONT size=2><B> <A href="register_student.jsp">Register a new student </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="edit_student.jsp">Edit student details </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="register_trainer.jsp">Register a new Trainer </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="edit_trainer.jsp">Edit Trainer details </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="search.jsp">Search </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD>

MCA, Sikkim Manipal University

100

Project Report VIRTUAL DESKTOP

July-2012

<FONT size=2><B> <A href="logout.jsp">Logout </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <hr size=2> <table> </TR> </TABLE>

aboutus.jsp <HTML> <BODY> ?<HTML> <BODY> ?<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <STYLE type=text/css>BODY { MARGIN-TOP: 10px; FONT-SIZE: 12px; BACKGROUND: #009966; MARGIN-LEFT: 5px; FONT-FAMILY: verdana, arial,helvetica; font-color: black } TD { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica } A:link { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:active { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:visited { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } </STYLE> <TABLE cellSpacing=0 cellPadding=0 width=100% align=center border=0> <TR><table> <TD align=left width=60 >&nbsp;

MCA, Sikkim Manipal University

101

Project Report VIRTUAL DESKTOP

July-2012

<FONT size=2><B> <A href="admin_home.jsp">Home</A> </B></FONT> <br> &nbsp; <FONT size=2><B> <A href="credits.jsp">Credits </A> </B></FONT> </TD> <TD align=center width=700 height=20> <img src="imgs/logo.jpg" width=60% > </TD> <TD align=left > <img src="imgs/desk.jpg" width=42% > </TD> </table> </TR> <hr size=2 > <TR> <TD> <FONT size=2><B> <A href="features.jsp">Features </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="e-learning.jsp">About ELearning </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="works.jsp">How it works? </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="aboutus.jsp">About us </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="contact.jsp">Contact us </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <hr size=2> <table> </TR> </TABLE> <table>

MCA, Sikkim Manipal University

102

Project Report VIRTUAL DESKTOP <tr>

July-2012

<td bgcolor=ffffcc width=2000> <font size=2 > <b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br> STEP Online private Limited is a software development and Wireless Solutions consultancy firm. STEP Stands for Software Technology Educational Programs. We specialize in Internet Solutions, Corporate Training, Computer Based Training, Integration of Hardware, and Networks. We are committed to provide the best support in training industry related services to your organization whatever your requirements might be in technical arena.<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b> </font> </td> </tr>&nbsp;&nbsp; <tr> <td > </td> <td > </td> </tr> </table> <table width=100%> <tr> <td bgcolor=cccccc align=center> <font size=1> &copy 2009 MCA, Indira Ghandi National Open University, New Delhi All rights reserved. </font> </td> </tr> </table> </BODY></HTML> </BODY></HTML>

edit_trainer_handler.jsp <%@ page import="java.sql.*" %> <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td >

MCA, Sikkim Manipal University

103

Project Report VIRTUAL DESKTOP <img src="imgs/org.jpg" width=200>

July-2012

</td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br> <h5 align=center>Enter details of student to modify . </h5> <pre> <form action="modify1.jsp" method="post"> <% String usr_name = request.getParameter( "id" ); Connection conn = null; PreparedStatement stat = null; ResultSet rs = null; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:virtualdesktop"); stat= conn.prepareStatement("SELECT * FROM user_details where username=?"); stat.setString( 1, usr_name.trim()); rs = stat.executeQuery(); rs.next(); String password = rs.getString( 2 ).trim(); stat= conn.prepareStatement("SELECT * FROM trainer where trainername = ?"); stat.setString( 1, usr_name.trim() ); rs = stat.executeQuery(); rs.next(); String name = rs.getString( 1 ); String full_name = rs.getString( 2 ); String add = rs.getString( 3 ); String mail = rs.getString( 4 ); String ph = rs.getString( 5 ); %> <table border=1 width=100%> <tr> <td><b>Particulars</b></td> <td><b>Original Data</b></td>

MCA, Sikkim Manipal University

104

Project Report VIRTUAL DESKTOP <td><b>Enter new Data</b></td> </tr> <tr>

July-2012

<td>Trainer Name</td> <td><%=name%></td> <td><%=name%></td> <input type=hidden name=name value=<%=name.trim() %> > </tr> <tr> <td>Password</td> <td><%=password %></td> <td> <input type=text name=pass value=<%=password %>> </td> </tr> <tr> <td>Full Name</td> <td><%=full_name%></td> <td> <input type=text name=full value=<%=full_name%>> </td> </tr> <tr> <td>Address</td> <td><%=add%></td> <td> <input type=text name=add value=<%=add%>> </td> </tr> <tr> <td>Email Id</td> <td><%=mail%></td> <td> <input type=text name=mail value=<%=mail%>> </td> </tr> <tr> <td>Phone No.</td> <td><%=ph%></td> <td> <input type=text name=ph value=<%=ph%>> </td> </tr>

MCA, Sikkim Manipal University

105

Project Report VIRTUAL DESKTOP <tr> <td></td> <td align=center><input type=reset></td> <td align=center><input type=submit></td> </tr> </table> <% }catch( Exception e ){out.println( e ); %>

July-2012

}

edit_trainer.jsp <%@ page import="java.sql.*" %> <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> <% if( session.getAttribute( "user_name" ) == null || ( (String) session.getAttribute( "user_name" ) ).trim().equals( "" ) ) { %> <br><br> <% } %><form action="edit_trainer_handler.jsp" method="post"> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> <font size=1> ID &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;: <%

MCA, Sikkim Manipal University

106

Project Report VIRTUAL DESKTOP Connection conn = null; PreparedStatement stat = null; ResultSet rs = null;

July-2012

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:virtualdesktop","scott","tiger"); stat= conn.prepareStatement("SELECT trainername FROM trainer"); rs = stat.executeQuery(); %> <select name=id> <% String str = ""; while( rs.next() ) { str = rs.getString( 1 ); %> <option value="<%= str %>"><%= str %></option> <% } %> </select> &nbsp;&nbsp;&nbsp;&nbsp;<input type=submit>&nbsp;&nbsp;&nbsp; </font> </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML> edit_student_handler1.jsp <%@ page import="java.sql.*" %> <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br>

MCA, Sikkim Manipal University

107

Project Report VIRTUAL DESKTOP

July-2012

<h5 align=center>Enter details of student to modify . </h5> <pre> <form action="modify.jsp" method="post"> <% String usr_name = request.getParameter( "id" ); Connection conn = null; PreparedStatement stat = null; ResultSet rs = null; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:virtualdesktop"); System.out.println("am here ######### 1111"); stat= conn.prepareStatement("SELECT * FROM user_details where username=?"); stat.setString( 1, usr_name.trim()); rs = stat.executeQuery(); System.out.println("am here ######### 2222"); rs.next(); String password = rs.getString( 2 ).trim(); stat= conn.prepareStatement("SELECT * FROM student where user_name = ?"); stat.setString( 1, usr_name.trim() ); rs = stat.executeQuery(); System.out.println("am here ######### 33333"); rs.next(); String name = rs.getString( 1 ); String cour = rs.getString( 2 ); String b_id = rs.getString( 3 ); String st_dt = rs.getString( 4 ); String ed_dt = rs.getString( 5 ); System.out.println("am here ######### 44444"); String f_name = rs.getString( 6 ); String add = rs.getString(7); String mail = rs.getString( 8 ); String ph = rs.getString( 9 ); System.out.println("am here ######### 5555"); %> <table border=1 width=100%> <tr>

MCA, Sikkim Manipal University

108

Project Report VIRTUAL DESKTOP <td><b>Particulars</b></td> <td><b>Original Data</b></td> <td><b>Enter new Data</b></td> </tr> <tr>

July-2012

<td>student Name</td> <td><%=name%></td> <td><%=name%></td> <input type=hidden name=id value=<%=name.trim()%> > </tr> <tr> <td>course</td> <td><%=cour %></td> <td> <input type=text name=cour value=<%=cour.trim() %>> </td> </tr> <tr> <td>batch_id</td> <td><%=b_id%></td> <td> <input type=text name=b_id value=<%=b_id%>> </td> </tr> <tr> <td>start_date</td> <td><%=st_dt%></td> <td> <input type=text name=st_dt value=<%=st_dt%>> </td> </tr> <tr> <td>End_date</td> <td><%=ed_dt%></td> <td> <input type=text name=ed_dt value=<%=ed_dt%>> </td> </tr> <tr> <td>full name.</td> <td><%=f_name%></td> <td> <input type=text name=f_name value=<%=f_name%>> </td>

MCA, Sikkim Manipal University

109

Project Report VIRTUAL DESKTOP </tr> <tr> <td>Address.</td> <td><%=add%></td> <td> <input type=text name=add value=<%=add%>> </td> </tr> <tr>

July-2012

<td>mail id.</td> <td><%=mail%></td> <td> <input type=text name=mail value=<%=mail%>> </td> </tr> <tr> <td>phone</td> <td><%=ph%></td> <td> <input type=text name=ph value=<%=ph%>> </td> </tr>

<tr> <td></td> <td align=center><input type=reset></td> <td align=center><input type=submit></td> </tr> </table> <% }catch( Exception e ){out.println( e ); %>

}

edit_student_hander.jsp <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200>

MCA, Sikkim Manipal University

110

Project Report VIRTUAL DESKTOP

July-2012

</td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br> <h5 align=center>Enter details of student to modify . </h5> <form action="modify.jsp" method="post"> <input type=hidden name=type value=Student> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> User Name </B></FONT>&nbsp; <input type="text" name=id> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Password </B></FONT> &nbsp;&nbsp;&nbsp; <input type="text" name=pwd> <br> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Course </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name=course><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Batch ID </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name=batch><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Start date </B></FONT> &nbsp;&nbsp; <input type="text" name=start_dt><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> End date </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name=end_dt><br> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Full Name </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name=full_name><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Address </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name=address><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Email -id </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name=mail_id><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Phone No </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name=phone><br><input type=submit> <br>

MCA, Sikkim Manipal University

111

Project Report VIRTUAL DESKTOP &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </form> < </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML> edit_student.jsp <!-- <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> <% if( session.getAttribute( "user_name" ) == null || ( (String) session.getAttribute( "user_name" ) ).trim().equals( "" ) ) { %> <br><br> <%

July-2012

} %><form action="edit_student_handler.jsp" method="post"> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> <font size=1> ID &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;: <input type=text name=id> PASSWORD : <input type=password name=pwd> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=submit>&nbsp;&nbsp;&nbsp;<input type=reset>

MCA, Sikkim Manipal University

112

Project Report VIRTUAL DESKTOP </font> <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML> --> <%@ page import="java.sql.*" %> <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> <% if( session.getAttribute( "user_name" ) == null || ( (String) session.getAttribute( "user_name" ) ).trim().equals( "" ) ) { %> <br><br> <%

July-2012

} %><form action="edit_student_handler1.jsp" method="post"> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> <font size=1> ID &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;: <% Connection conn = null; PreparedStatement stat = null; ResultSet rs = null;

MCA, Sikkim Manipal University

113

Project Report VIRTUAL DESKTOP

July-2012

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:virtualdesktop","scott","tiger"); stat= conn.prepareStatement("SELECT user_name FROM student"); rs = stat.executeQuery(); %> <select name=id> <% String str = ""; while( rs.next() ) { str = rs.getString( 1 ); %> <option value="<%= str %>"><%= str %></option> <% } %> </select> &nbsp;&nbsp;&nbsp;&nbsp;<input type=submit>&nbsp;&nbsp;&nbsp; </font> </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML>

e-learning.jsp <HTML> <BODY> <HTML> <BODY> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <STYLE type=text/css>BODY { MARGIN-TOP: 10px; FONT-SIZE: 12px; BACKGROUND: #009966; MARGIN-LEFT: 5px; FONT-FAMILY: verdana, arial,helvetica; font-color: black } TD {

MCA, Sikkim Manipal University

114

Project Report VIRTUAL DESKTOP

July-2012

COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica } A:link { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:active { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:visited { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } </STYLE> <TABLE cellSpacing=0 cellPadding=0 width=100% align=center border=0> <TR><table> <TD align=left width=60 >&nbsp; <FONT size=2><B> <A href="home.jsp">Home</A> </B></FONT> <br> &nbsp; <FONT size=2><B> <A href="credits.jsp">Credits </A> </B></FONT> </TD> <TD align=center width=700 height=20> <img src="imgs/logo.jpg" width=60% > </TD> <TD align=left > <img src="imgs/desk.jpg" width=42% > </TD> </table> </TR> <hr size=2 > <TR> <TD> <FONT size=2><B> <A href="features.jsp">Features </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="e-learning.jsp">About ELearning </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD>

MCA, Sikkim Manipal University

115

Project Report VIRTUAL DESKTOP

July-2012

<FONT size=2><B> <A href="works.jsp">How it works? </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="aboutus.jsp">About us </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="contact.jsp">Contact us </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <hr size=2> <table> </TR> </TABLE> <table> <tr> <td width=200> <img src="imgs/err.jpg" align=left width=200> </td > <td bgcolor=ffffcc width=1000 > <font size=2 > <b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b> </font> </td> </tr>&nbsp;&nbsp; <tr> <td > </td> <td > </td> <td > <img src="imgs/ebusiness.gif" > </td> </tr> </table> <table width=100%> <tr> <td bgcolor=cccccc align=center>

MCA, Sikkim Manipal University

116

Project Report VIRTUAL DESKTOP

July-2012

<font size=1> &copy 2009 MCA, Indira Ghandi National Open University, New Delhi All rights reserved. </font> </td> </tr> </table> </BODY></HTML> </BODY></HTML>

download.jsp <a href="downloads/tools.jar">download your books here </a>

trainer_home.jsp <HTML> <BODY> <jsp:include page="trainer_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> <% if( session.getAttribute( "user_name" ) == null || ( (String) session.getAttribute( "user_name" ) ).trim().equals( "" ) ) { %> <br><br><b> welcome "user_name"<br> </b> <% } %> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> </b></p></font> </td>

MCA, Sikkim Manipal University

117

Project Report VIRTUAL DESKTOP </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML>

July-2012

trainer_header.jsp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <STYLE type=text/css>BODY { MARGIN-TOP: 10px; FONT-SIZE: 12px; BACKGROUND: #009966; MARGIN-LEFT: 5px; FONT-FAMILY: verdana, arial,helvetica; font-color: black } TD { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica } A:link { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:active { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:visited { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } </STYLE> <TABLE cellSpacing=0 cellPadding=0 width=100% align=center border=0> <TR><table> <TD align=left width=60 >&nbsp; <FONT size=2><B> <A href="student_home.jsp">Home</A> </B></FONT> <br> &nbsp; </TD> <TD align=center width=700 height=20>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; <img src="imgs/logo.jpg" width=60% > </TD>

MCA, Sikkim Manipal University

118

Project Report VIRTUAL DESKTOP

July-2012

<TD align=left > <img src="imgs/consulting2.jpg" width=50% > </TD> </table> </TR> <hr size=2 > <TR> <TD> <FONT size=2><B> <A href="trainer_download.jsp">Download material </A> </B></FONT> &nbsp;&nbsp </TD> <TD> <FONT size=2><B> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="Bonus1.jar">Test </A> </B></FONT>&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="logout.jsp">Logout </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <hr size=2> <table> </TR> </TABLE>

trainer_registration_handler.jsp <%@ page import="java.sql.*" %> <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <% Connection conn = null; PreparedStatement stat = null;

MCA, Sikkim Manipal University

119

Project Report VIRTUAL DESKTOP ResultSet rs = null; try{

July-2012

String usr_name = request.getParameter("id").trim(); String pwd = request.getParameter("pwd").trim(); String full_name = request.getParameter( "full_name" ).trim(); String address = request.getParameter( "address" ).trim(); String mail_id = request.getParameter( "mail_id" ).trim(); String phone = request.getParameter( "phone" ).trim(); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:virtualdesktop"); stat= conn.prepareStatement("SELECT * FROM user_details where username=?"); stat.setString( 1, usr_name); rs = stat.executeQuery(); boolean id_found = false; while( rs.next() ) { id_found = true; } if( id_found ) { %> <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> </b></p></font> <h2> Alert </h2> <b>Registration of Trainer with id < %=usr_name %> could not be completed.<br> The specified user id already exists <br> You may try again.</b> </td> <% } else { String query = "insert into trainer values ( ?, ?, ?, ?, ?)";

MCA, Sikkim Manipal University

120

Project Report VIRTUAL DESKTOP

July-2012

stat = conn.prepareStatement( query ); stat.setString( 1, usr_name ); stat.setString( 2, full_name ); stat.setString( 3, address ); stat.setString( 4, mail_id ); stat.setString( 5, phone ); int count = stat.executeUpdate(); query = "insert into user_details values ( ?, ?, ? )"; stat = conn.prepareStatement( query ); stat.setString( 1, usr_name ); stat.setString( 2, pwd ); stat.setString( 3, "Trainer" ); count = stat.executeUpdate(); %> <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> </b></p></font> <h2> Alert </h2> <b>Registration of trainer with id < %=usr_name %> completed successfully. </td> <% } } catch(Exception E) { System.out.println( E ); %> <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> </b></p></font>

MCA, Sikkim Manipal University

121

Project Report VIRTUAL DESKTOP

July-2012

<b>Registration of trainer with id <%= request.getParameter("id").trim() %> could not be completed.<br> An internal error occured. comments : <%= "" + E %> </td> </tr> </table> <% out.println( "A6" ); } finally { try{ if( rs != null ) rs.close(); if( stat != null ) stat.close(); if( conn != null ) conn.close(); }catch( Exception e ){System.out.println( e ); } out.println( "A7" ); %> <jsp:include page="footer.jsp" /> </BODY></HTML>

}

trainer_search_hander.jsp <%@ page import="java.sql.*" %> <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b>

MCA, Sikkim Manipal University

122

Project Report VIRTUAL DESKTOP

July-2012

Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br> <h5 align=center>Search results for trainer < %=request.getParameter( "trainer_name" )%> </h5> <pre> <form action="search.jsp" method="post"> <% String usr_name = request.getParameter( "trainer_name" ); Connection conn = null; PreparedStatement stat = null; ResultSet rs = null; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:virtualdesktop"); stat= conn.prepareStatement("SELECT * FROM trainer where trainername = ?"); stat.setString( 1, usr_name.trim() ); rs = stat.executeQuery(); rs.next(); String name = rs.getString( 1 ); String full_name = rs.getString( 2 ); String add = rs.getString( 3 ); String mail = rs.getString( 4 ); String ph = rs.getString( 5 ); %> <table border=1 width=100%> <tr> <td><b>Trainer Name<b></td> <td><%=name%></td> </tr> <tr> <td><b>Full Name<b></td> <td><%=full_name%></td> </tr> <tr>

MCA, Sikkim Manipal University

123

Project Report VIRTUAL DESKTOP <td><b>Address<b></td> <td><%=add%></td> </tr> <tr> <td><b>Email Id<b></td> <td><%=mail%></td> </tr> <tr> <td><b>Phone No.<b></td> <td><%=ph%></td> </tr> <tr>

July-2012

<td></td> <td align=center><input type=submit value="New Search"></td> </tr> </table> <% }catch( Exception e ) { %> <HTML> <BODY> <!-- <jsp:include page="admin_header.jsp" /> --> <form action="search.jsp" method="post"> <table> <h1> Alert </h1> <h1><b> Trainer name not found </h1> </table> <input type=submit value="New Search"> </form> <jsp:include page="footer.jsp" /> </BODY></HTML>

<% } %>

Update.jsp <HTML>

MCA, Sikkim Manipal University

124

Project Report VIRTUAL DESKTOP <BODY bgColor=#9596CC> <%@ page import="java.lang.*,java.sql.*" %> <%! Connection conn; ResultSet rs; Statement st; %> <%

July-2012

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:virtualdesktop"); String usr_name,f_name,add,m_id,pno; usr_name=(String)session.getAttribute("id"); f_name=request.getParameter("full_name"); add=request.getParameter("address"); m_id=request.getParameter("mail_id"); pno=request.getParameter("phone"); int i=st.executeUpdate("update triner set trainername='"+usr_name+"',fullname="+f_name+",address='"+add+"',emilid='"+ m_id+"',phoneno='"+pno+"' where trainername='"+usr_name+"'"); if(i==1) { out.println("<br><br><br><br><br><br><center><b>Your details has been modified</center></b>"); } else { out.println("<br><br><br><br><br><br><center><b>Your details has not been modified</center></b>"); } %> trainer_download_instructions.jsp <HTML> <BODY> <jsp:include page="trainer_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> <%

MCA, Sikkim Manipal University

125

Project Report VIRTUAL DESKTOP if( session.getAttribute( "user_name" ) == null || ( (String) session.getAttribute( "user_name" ) ).trim().equals( "" ) ) { %> <br><br><b> welcome "user_name"<br> </b> <% } %>

July-2012

Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> </b></p></font> <pre> <b> * This package contains a zip filed named trainer.zip * Download the zip file to your system * Extract its contacts * Execute (double click) the setup file * This will complete the installation * Further to execute the software when you want to take part in the online training session, execute (double click) the program named run. * Wish you happy working with your software. </b> </pre> <a href="trainer_download.jsp">Go back to download page</a> </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML>

trainer_download.jsp <HTML> <BODY> <jsp:include page="trainer_header.jsp" /> <table> <tr bgcolor=ffffcc>

MCA, Sikkim Manipal University

126

Project Report VIRTUAL DESKTOP <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> <% if( session.getAttribute( "user_name" ) == null || ( (String) session.getAttribute( "user_name" ) ).trim().equals( "" ) ) { %> <br><br><b> welcome "user_name"<br> </b> <% } %>

July-2012

Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> </b></p></font> <pre> <b> <a href="trainer_download_instructions.jsp" >Installation Instructions </a>

<a href="trainer.zip" >Download </a> </b> </pre> </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML>

trainer_batchdetails_handler.jsp <%@ page import="java.sql.*" %> <% Connection conn = null; PreparedStatement stat = null; ResultSet rs = null;

MCA, Sikkim Manipal University

127

Project Report VIRTUAL DESKTOP

July-2012

try{ String bat_id = request.getParameter("bid").trim(); String t_id = request.getParameter("tid").trim();

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:virtualdesktop","scott","tiger"); stat= conn.prepareStatement("SELECT * FROM user_details where username=?"); String usr_name = request.getParameter("id").trim(); stat.setString( 1, usr_name); rs = stat.executeQuery(); boolean id_found = false; while( rs.next() ) { id_found = true; } if( id_found ) { %> <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> </b></p></font> <h2> Alert </h2> <b>Registration of Student with id < %=usr_name %> could not be completed.<br>

MCA, Sikkim Manipal University

128

Project Report VIRTUAL DESKTOP

July-2012 The specified user id already exists

<br> You may try again.</b> </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML> <% } else { String query = "insert into batches_traineres values ( ?,? )"; stat = conn.prepareStatement( query ); stat.setString( 1, bat_id ); stat.setString( 2, t_id ); int count = stat.executeUpdate(); %> <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> </b></p></font> <h2> Alert </h2> <b>Registration of tainer completed successfully. </td> </tr> </table> </BODY></HTML> <% } }

MCA, Sikkim Manipal University

129

Project Report VIRTUAL DESKTOP catch(Exception E) { System.out.println( E ); %> <% } finally { try{ if( rs != null ) rs.close(); if( stat != null ) stat.close(); if( conn != null ) conn.close(); }catch( Exception e ){System.out.println( e ); } %> </BODY></HTML>

July-2012

}

student_home.jsp <HTML> <BODY> <jsp:include page="student_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> <% if( session.getAttribute( "user_name" ) == null || ( (String) session.getAttribute( "user_name" ) ).trim().equals( "" ) ) { %> <br><br><b> welcome "user_name"<br> </b> <%

MCA, Sikkim Manipal University

130

Project Report VIRTUAL DESKTOP } %>

July-2012

Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> </b></p></font> </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML>

student_registration_handler.jsp <%@ page import="java.sql.*" %> <% Connection conn = null; PreparedStatement stat = null; ResultSet rs = null; try{ String usr_name = request.getParameter("id").trim(); String passwd = request.getParameter("pwd").trim(); String login_type = request.getParameter( "type" ).trim(); String course = request.getParameter( "course" ).trim(); String batch_id = request.getParameter( "batch" ).trim(); String start_dt = request.getParameter( "start_dt" ).trim(); String end_dt = request.getParameter( "end_dt" ).trim(); String full_name = request.getParameter( "full_name" ).trim(); String address = request.getParameter( "address" ).trim(); String mail_id = request.getParameter( "mail_id" ).trim(); String phone = request.getParameter( "phone" ).trim(); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:virtualdesktop","scott","tiger"); stat= conn.prepareStatement("SELECT * FROM user_details where username=?"); stat.setString( 1, usr_name);

MCA, Sikkim Manipal University

131

Project Report VIRTUAL DESKTOP rs = stat.executeQuery(); boolean id_found = false; while( rs.next() ) { id_found = true; } if( id_found ) { %>

July-2012

<HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> </b></p></font> <h2> Alert </h2> <b>Registration of Student with id < %=usr_name %> could not be completed.<br> The specified user id already exists <br> You may try again.</b> </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML> <% } else { String query = "insert into student values ( ?, ?, ?, ?, ?, ?, ?, ?, ? )"; stat = conn.prepareStatement( query ); stat.setString( 1, usr_name );

MCA, Sikkim Manipal University

132

Project Report VIRTUAL DESKTOP stat.setString( 2, course ); stat.setString( 3, batch_id ); stat.setString( 4, start_dt ); stat.setString( 5, end_dt ); stat.setString( 6, full_name ); stat.setString( 7, address ); stat.setString( 8, mail_id ); stat.setString( 9, phone ); int count = stat.executeUpdate();

July-2012

query = "insert into user_details values ( ?, ?, ? )"; stat = conn.prepareStatement( query ); stat.setString( 1, usr_name ); stat.setString( 2, passwd ); stat.setString( 3, login_type ); count = stat.executeUpdate(); %> <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> </b></p></font> <h2> Alert </h2> <b>Registration of Student with id < %=usr_name %> completed successfully. </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML> <% } }

MCA, Sikkim Manipal University

133

Project Report VIRTUAL DESKTOP catch(Exception E) { System.out.println( E ); %>

July-2012

<HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> </b></p></font> <b>Registration of Student with id < %= request.getParameter("id").trim() %> could not be completed.<br> An internal error occured. comments : <%= "" + E %> </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML> <% } finally { try{ if( rs != null ) rs.close(); if( stat != null ) stat.close(); if( conn != null ) conn.close(); }catch( Exception e ){System.out.println( e ); } %> </BODY></HTML>

}

MCA, Sikkim Manipal University

134

Project Report VIRTUAL DESKTOP

July-2012

student_search_handler.jsp <%@ page import="java.sql.*" %> <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br> <h5 align=center>Search Results</h5> <pre> <form action="search.jsp" method="post"> <% //String queryField = request.getParameter( "student" ); String queryValue = request.getParameter( "student_value"); Connection conn = null; PreparedStatement stat = null; ResultSet rs = null; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:virtualdesktop"); /*System.out.println("am here ######### 1111"); stat= conn.prepareStatement("SELECT * FROM user_details where username=?"); stat.setString( 1, queryValue.trim()); rs = stat.executeQuery(); System.out.println("am here ######### 2222"); rs.next(); String password = rs.getString( 2 ).trim(); */ System.out.println(" before executing "); //String query = "SELECT * FROM student where "+queryField+"="+"'"+queryValue+"'";

MCA, Sikkim Manipal University

135

Project Report VIRTUAL DESKTOP

July-2012

//System.out.println(" before create statenment" + query); //stat=conn.createStatement(query); System.out.println(" after create statenment"); stat= conn.prepareStatement("SELECT * FROM student where user_name= ?"); //stat= conn.createStatement("SELECT * FROM student where "+queryField+"="+"'"+queryValue+"'"); //stat.setString( 1, queryField.trim() ); stat.setString( 1, queryValue.trim() ); rs = stat.executeQuery(); System.out.println(" its there "); System.out.println(" after executing " + rs); System.out.println("am here ######### 33333"); rs.next(); String name = rs.getString( 1 ); System.out.println("am here ######### 44444"); String cour = rs.getString( 2 ); String b_id = rs.getString( 3 ); String st_dt = rs.getString( 4 ); String ed_dt = rs.getString( 5 ); System.out.println("am here ######### 44444"); String f_name = rs.getString( 6 ); String add = rs.getString(7); String mail = rs.getString( 8 ); String ph = rs.getString( 9 ); System.out.println("am here ######### 5555"); %> <table border=1 width=100%> <tr> <td><b>Particulars</b></td> <td><b>Original Data</b></td> </tr> <tr> <td>student Name</td> <td><%=name%></td> </tr> <tr> <td>course</td> <td><%=cour %></td> </tr> <tr> <td>batch_id</td>

MCA, Sikkim Manipal University

136

Project Report VIRTUAL DESKTOP <td><%=b_id%></td> </tr> <tr> <td>start_date</td> <td><%=st_dt%></td> </tr> <tr> <td>End_date</td> <td><%=ed_dt%></td> </tr> <tr> <td>full name.</td> <td><%=f_name%></td> </tr> <tr> <td>Address.</td> <td><%=add%></td> </tr> <tr> <td>mail id.</td> <td><%=mail%></td> </tr> <tr> <td>phone</td> <td><%=ph%></td> </tr> <tr>

July-2012

<td></td> <td align=center><input type=submit value="New Search"></td> </tr> </table> <% }catch( Exception e ) { %>

MCA, Sikkim Manipal University

137

Project Report VIRTUAL DESKTOP

July-2012

<HTML> <BODY> <!-- <jsp:include page="admin_header.jsp" /> --> <form action="search.jsp" method="post"> <table> <h1> Alert </h1> <h1><b> Student name not found </h1> </table> <input type=submit value="New Search"> </form> <jsp:include page="footer.jsp" /> </BODY></HTML>

<% } %>

student_download_instruction.jsp <HTML> <BODY> <jsp:include page="trainer_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> <% if( session.getAttribute( "user_name" ) == null || ( (String) session.getAttribute( "user_name" ) ).trim().equals( "" ) ) { %> <br><br><b> welcome "user_name"<br> </b> <% } %> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1>

MCA, Sikkim Manipal University

138

Project Report VIRTUAL DESKTOP <br><br><br><br><br><br><br><br> </b></p></font> <pre>

July-2012

<b> * This package contains a zip filed named student.zip * Download the zip file to your system * Extract its contacts * Execute (double click) the setup file * This will complete the installation * Further to execute the software when you want to take part in the online training session, execute (double click) the program named run. * Wish you happy working with your software. </b> </pre> <a href="student_download.jsp">Go back to download page</a> </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML>

student_download.jsp <HTML> <BODY> <jsp:include page="student_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> <% if( session.getAttribute( "user_name" ) == null || ( (String) session.getAttribute( "user_name" ) ).trim().equals( "" ) ) { %> <br><br><b> welcome "user_name"<br> </b>

MCA, Sikkim Manipal University

139

Project Report VIRTUAL DESKTOP <% } %>

July-2012

Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> </b></p></font> <pre> <b> <a href="student_download_instructions.jsp" >Installation Instructions </a>

<a href="student.zip" >Download </a> </b> </pre> </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML>

student_class_starter.jsp <%@ page import="java.sql.*" %> <% Connection conn = null; PreparedStatement stat = null; ResultSet rs = null; try{ String student_id = request.getParameter( "id" ).trim(); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:virtualdesktop"); System.out.println( student_id ); stat= conn.prepareStatement( "SELECT batch_id FROM student where user_name =?" ); stat.setString( 1, student_id.trim() ); rs = stat.executeQuery(); rs.next();

MCA, Sikkim Manipal University

140

Project Report VIRTUAL DESKTOP String batch_id = rs.getString( 1 ); System.out.println( batch_id );

July-2012

stat= conn.prepareStatement( "SELECT trainer_sys_ip FROM class_status where batch_id = ?" ); stat.setString( 1, batch_id.trim() ); rs = stat.executeQuery(); if( ! rs.next() ) { out.println( "failure" ); //indicates class is not currently going on. } else { String ip = rs.getString( 1 ); out.println( "success;" + ip.trim() ); //indicates that the class is currently going on and the respective trainers machines ip has been retrieved. } }catch( Exception e){ System.out.println( "Exception in client_login_handler.jsp : " + e ); } finally { try{ if( stat != null ) { stat.close(); stat = null; } if( conn != null ) { conn.close(); conn = null; } if( rs != null ) { rs.close(); rs = null; } }catch( Exception ee ){ } System.gc(); } %>

MCA, Sikkim Manipal University

141

Project Report VIRTUAL DESKTOP

July-2012

student_batchdetails_handler.jsp <%@ page import="java.sql.*" %> <% Connection conn = null; PreparedStatement stat = null; ResultSet rs = null; try{ String bat_id = request.getParameter("id").trim(); String cours = request.getParameter("course").trim(); String b_s_d = request.getParameter( "bsd" ).trim(); String b_details = request.getParameter( "bed" ).trim(); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:virtualdesktop","scott","tiger"); stat= conn.prepareStatement("SELECT * FROM batches where batch_id =?"); String b_name = request.getParameter("id").trim(); stat.setString( 1, b_name); rs = stat.executeQuery(); boolean id_found = false; while( rs.next() ) { id_found = true; } if( id_found ) { %> <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td >

MCA, Sikkim Manipal University

142

Project Report VIRTUAL DESKTOP

July-2012

<td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "b_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> </b></p></font> <b>Registration of Student with id < %=b_name %> could not be completed.<br> The specified user id already exists <br> You may try again.</b> </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML> <% } else { String query = "insert into batches values ( ?, ?, ?, ? )"; stat = conn.prepareStatement( query ); stat.setString( 1, bat_id ); stat.setString( 2, cours ); stat.setString( 3, b_s_d ); stat.setString( 4, b_details ); int count = stat.executeUpdate(); %> <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "b_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1>

MCA, Sikkim Manipal University

143

Project Report VIRTUAL DESKTOP

July-2012

<br><br><br><br><br><br><br><br> </b></p></font> <b>Registration of Student with id < %=b_name %> completed successfully. </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML> <% } } catch(Exception E) { System.out.println( E ); %> <% } finally { try{ if( rs != null ) rs.close(); if( stat != null ) stat.close(); if( conn != null ) conn.close(); }catch( Exception e ){System.out.println( e ); } %> </BODY></HTML>

}

search.jsp <head> <title>Search Items</title> </head> <jsp:include page="admin_header.jsp" />

MCA, Sikkim Manipal University

144

Project Report VIRTUAL DESKTOP

July-2012

<h2 align=center> Search your required details here<hr size=1 color=yellow width=450></h2> <script language="JavaScript"> function validate() { var x= document.studentForm.student_value.value; if ( x == "" ) { alert('Please enter the student name !!!' ) document.studentForm.student_value.focus(); } else { document.studentForm.submit(); } } function validate1() { var x= document.trainerForm.trainer_name.value; if ( x == "" ) { alert('Please enter the trainer name !!!' ) document.trainerForm.trainer_name.focus(); } else { document.trainerForm.submit(); } } </script> <form name="studentForm" action="student_search_hander.jsp" > <h3> ENTER STUDENT NAME</h3> <!-- <select size="1" name="student"> <option>Name</option> <option>Course</option> <option>specific student</option> </select> --> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=text name=student_value> <input type=button name="student1" value=" Search " onClick="validate()">&nbsp;&nbsp;&nbsp;<input type=reset> </form> <form name="trainerForm" action="trainer_search_hander.jsp" > <h3> ENTER TRAINER NAME</h3>

MCA, Sikkim Manipal University

145

Project Report VIRTUAL DESKTOP

July-2012

<!-- <select size="1" name="trainer"> <option> none </option> <option>all trainers</option> <option>specific trainer</option> </select> --> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=text name=trainer_name> <input type=button value=" Search " onClick="validate1()">&nbsp;&nbsp;&nbsp;<input type=reset> </form> <jsp:include page="footer.jsp" />

register_trainer.jsp <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "Trainer_name" ) %>", You have logged in as (<%=session.getAttribute( "Trainer_type" ) %>) <hr size=1> <br> <h5 align=center> Enter the following details to register a new Trainer. </h5> <form action="trainer_registration_handler.jsp" method="post"> <input type=hidden name=type value=Trainer> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Trainer id </B></FONT>&nbsp; <input type="text" name=id> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Password </B></FONT>&nbsp; <input type="text" name=pwd> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Full Name </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name=full_name><br>

MCA, Sikkim Manipal University

146

Project Report VIRTUAL DESKTOP

July-2012

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Address </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name=address><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Email -id </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name=mail_id><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Phone No </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name=phone><br> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=submit> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=reset> </form> </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML>

register_student.jsp <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br> <h5 align=center> Enter the following details to register a new student. </h5> <form action="student_registration_handler.jsp" method="post"> <input type=hidden name=type value=Student>

MCA, Sikkim Manipal University

147

Project Report VIRTUAL DESKTOP

July-2012

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> User Name </B></FONT>&nbsp; <input type="text" name=id> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Password </B></FONT> &nbsp;&nbsp;&nbsp; <input type="text" name=pwd> <br> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Course </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name=course><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Batch ID </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name=batch><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Start date </B></FONT> &nbsp;&nbsp; <input type="text" name=start_dt><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> End date </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name=end_dt><br> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Full Name </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name=full_name><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Address </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name=address><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Email -id </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name=mail_id><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Phone No </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name=phone><br> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=submit> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=reset> </form> </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML>

MCA, Sikkim Manipal University

148

Project Report VIRTUAL DESKTOP modify1.jsp <%@ page import="java.sql.*" %> <% String name = request.getParameter( "name" ); String pass = request.getParameter( "pass" ); Connection conn = null; PreparedStatement stat = null; ResultSet rs = null; try{

July-2012

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:virtualdesktop"); try{ stat= conn.prepareStatement("update user_details set password=? where username=?"); stat.setString( 1, pass.trim() ); stat.setString( 2, name.trim() ); System.out.println(" ### inside trainer modify A"); stat.executeUpdate(); System.out.println(" ### inside trainer modify after A"); }catch( Exception ee ){ System.out.println( ee ); } String full = request.getParameter( "full" ); String add = request.getParameter( "add" ); String mail = request.getParameter( "mail" ); String ph = request.getParameter( "ph" ); try{ stat= conn.prepareStatement("update trainer set fullname = ?, address = ?, emailid = ?, phoneno = ? where trainername=?"); stat.setString( 1, full.trim() ); stat.setString( 2, add.trim() ); stat.setString( 3, mail.trim() ); stat.setInt( 4, Integer.parseInt( ph.trim() ) ); stat.setString( 5, name.trim() ); System.out.println(" ### inside trainer modify BB"); stat.executeUpdate(); System.out.println(" ### inside trainer modify after BB"); %>

MCA, Sikkim Manipal University

149

Project Report VIRTUAL DESKTOP

July-2012

<HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> </b></p></font> <h2> Alert </h2> <b> Trainer details updated successfully . </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML> <% }catch( Exception ee ){ System.out.println( ee ); %> <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> </b></p></font> <h2> Alert </h2> <b> Trainer details not updated . Contact Support Team </td>

MCA, Sikkim Manipal University

150

Project Report VIRTUAL DESKTOP </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML> <% } if( stat != null ) stat.close(); if( rs != null ) rs.close(); System.out.println( "6" ); }catch(Exception E) { System.out.println( E ); //out.println( E ); } %>

July-2012

modify.jsp <%@ page import="java.lang.*,java.sql.*" %> <% Connection conn = null; PreparedStatement stat = null; ResultSet rs = null,rs1=null; String usr_name,passwd,cours,batch,st_dt,ed_dt,f_name,add,m_id,pno; try{ System.out.println(" ### inside modify 11"); usr_name = request.getParameter("id").trim(); System.out.println(" ### inside modify A"); //passwd = request.getParameter("pwd").trim(); cours = request.getParameter("cour").trim(); System.out.println(" ### inside modify B"); batch= request.getParameter("b_id").trim(); System.out.println(" ### inside modify C"); st_dt = request.getParameter("st_dt").trim(); System.out.println(" ### inside modify D"); ed_dt = request.getParameter("ed_dt").trim(); System.out.println(" ### inside modify E"); f_name = request.getParameter("f_name").trim(); System.out.println(" ### inside modify F"); add = request.getParameter("add").trim();

MCA, Sikkim Manipal University

151

Project Report VIRTUAL DESKTOP

July-2012

System.out.println(" ### inside modify G"); m_id = request.getParameter("mail").trim(); System.out.println(" ### inside modify H"); pno = request.getParameter("ph").trim(); System.out.println(" ### inside modify 22"); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:virtualdesktop"); stat= conn.prepareStatement("update student set course=?, batch_id=?, start_date=?, end_date=?, full_name=?, add=?, mail=?, phone=? where user_name=?"); System.out.println(" ### inside modify 33"); // //stat.setString(1,usr_name); stat.setString(2,passwd); stat.setString(1,cours); stat.setString(2,batch); stat.setString(3,st_dt); stat.setString(4,ed_dt); stat.setString(5,f_name); stat.setString(6,add); stat.setString(7,m_id); stat.setString(8,pno); stat.setString(9,usr_name); System.out.println(" ### inside modify 44"); stat.executeUpdate(); System.out.println(" ### inside modify 55"); stat.close(); System.out.println("student modified success"); %> <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1>

MCA, Sikkim Manipal University

152

Project Report VIRTUAL DESKTOP

July-2012

<br><br><br><br><br><br><br><br> </b></p></font> <h2> Alert </h2> <b> Student details updated successfully . </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML> <% }

catch(Exception E) { System.out.println("student modified failed"+E); %> <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br><br><br><br><br><br><br><br> </b></p></font> <h2> Alert </h2> <b> Student details not updated . Contact Support Team </td> </tr> </table> <jsp:include page="footer.jsp" /> </BODY></HTML> <%

MCA, Sikkim Manipal University

153

Project Report VIRTUAL DESKTOP

July-2012

} %>

message.jsp <HTML> <BODY> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <STYLE type=text/css>BODY { MARGIN-TOP: 10px; FONT-SIZE: 12px; BACKGROUND: #009966; MARGIN-LEFT: 5px; FONT-FAMILY: verdana, arial,helvetica; font-color: black } TD { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica } A:link { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:active { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:visited { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } </STYLE> <% String role = (String)session.getAttribute("user_type"); if (role.equals("Trainer")) { %> <jsp:include page="trainer_header.jsp" /> <% } else { %> <jsp:include page="student_header.jsp" /> <% } %> <!-<TABLE cellSpacing=0 cellPadding=0 width=100% align=center border=0>

MCA, Sikkim Manipal University

154

Project Report VIRTUAL DESKTOP <TR><table> <TD align=left width=60 >&nbsp; <FONT size=2><B> <A href="student_home.jsp">Home</A> </B></FONT> <br> &nbsp;

July-2012

</TD> <TD align=center width=700 height=20>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; <img src="imgs/logo.jpg" width=60% > </TD> <TD align=left > <img src="imgs/consulting2.jpg" width=50% > </TD> </table> </TR> <hr size=2 > <TR> <TD> <FONT size=2><B> <A href="loginclass.jsp">login to classroom </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="download.jsp">Down load material </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="message.jsp">Messages </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="test.jsp">Test </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="logout.jsp">Logout </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <hr size=2> <table> </TR>

MCA, Sikkim Manipal University

155

Project Report VIRTUAL DESKTOP

July-2012

</TABLE> --> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=50 align=top bgcolor=ffffcc > <font size=2><br> <input type=button name=inbox value="inbox"><br> <input type=button name=compose value="compose"> <br> <input type=button name=send value="SEND"> <br><input type=button name=delete value="delete" > </td> <td width=300 align=center bgcolor=ffffcc> <font size=2 ><br> <table><tr> <th>sender</th> <th>date</th> <th>subject</th></tr> <tr> </tr> </table> </td> </tr> </table> <table width=100%> <tr> <td bgcolor=cccccc align=center> <font size=1> &copy 2009 MCA, Indira Ghandi National Open University, New Delhi All rights reserved. </font> </td> </tr> </table> </BODY></HTML>

features.jsp <HTML> <BODY> ?<HTML> <BODY> ?<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

MCA, Sikkim Manipal University

156

Project Report VIRTUAL DESKTOP

July-2012

<STYLE type=text/css>BODY { MARGIN-TOP: 10px; FONT-SIZE: 12px; BACKGROUND: #009966; MARGIN-LEFT: 5px; FONT-FAMILY: verdana, arial,helvetica; font-color: black } TD { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica } A:link { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:active { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:visited { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } </STYLE> <TABLE cellSpacing=0 cellPadding=0 width=100% align=center border=0> <TR><table> <TD align=left width=60 >&nbsp; <FONT size=2><B> <A href="home.jsp">Home</A> </B></FONT> <br> &nbsp; <FONT size=2><B> <A href="credits.jsp">Credits </A> </B></FONT> </TD> <TD align=center width=700 height=20>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; <img src="imgs/logo.jpg" width=60% > </TD> <TD align=left > <img src="imgs/consulting2.jpg" width=50% > </TD> </table> </TR> <hr size=2 > <TR> <TD>

MCA, Sikkim Manipal University

157

Project Report VIRTUAL DESKTOP

July-2012

<FONT size=2><B> <A href="features.jsp">Features </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="e-learning.jsp">About ELearning </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="works.jsp">How it works? </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="aboutus.jsp">About us </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="contact.jsp">Contact us </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <hr size=2> <table> </TR> </TABLE> <table> <tr> <td bgcolor=ffffcc width=1000 > <font size=2 > <b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>To help customers achieve their business objectives by providing innovative, best-in-class consulting, IT solutions and services. Make it a joy for all stakeholders to work with us. <br> Bridging Technology gap, address the technology transition issues and to provide service excellence to our business partners. We endeavor to add value to your business and reduce the cost of owning and managing your organization. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b> </font> </td>

MCA, Sikkim Manipal University

158

Project Report VIRTUAL DESKTOP

July-2012

</tr>&nbsp;&nbsp; <tr> <td > </td> <td > </td> </tr> </table> <table width=100%> <tr> <td bgcolor=cccccc align=center> <font size=1> &copy 2009 MCA, Indira Ghandi National Open University, New Delhi All rights reserved. </font> </td> </tr> </table> </BODY></HTML> </BODY></HTML>

credits.jsp <HTML> <BODY> <HTML> <BODY> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <STYLE type=text/css>BODY { MARGIN-TOP: 10px; FONT-SIZE: 12px; BACKGROUND: #009966; MARGIN-LEFT: 5px; FONT-FAMILY: verdana, arial,helvetica; font-color: black } TD { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica } A:link { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:active { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline }

MCA, Sikkim Manipal University

159

Project Report VIRTUAL DESKTOP

July-2012

A:visited { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } </STYLE> <TABLE cellSpacing=0 cellPadding=0 width=100% align=center border=0> <TR><table> <TD align=left width=60 >&nbsp; <FONT size=2><B> <A href="home.jsp">Home</A> </B></FONT> <br> &nbsp; <FONT size=2><B> <A href="credits.jsp">Credits </A> </B></FONT> </TD> <TD align=center width=700 height=20>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; <img src="imgs/logo.jpg" width=60% > </TD> <TD align=left > <img src="imgs/desk.jpg" width=41% > </TD> </table> </TR> <hr size=2 > <TR> <TD> <FONT size=2><B> <A href="features.jsp">Features </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="e-learning.jsp">About ELearning </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="works.jsp">How it works? </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="aboutus.jsp">About us </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD>

MCA, Sikkim Manipal University

160

Project Report VIRTUAL DESKTOP <TD>

July-2012

<FONT size=2><B> <A href="contact.jsp">Contact us </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <hr size=2> <table> </TR> </TABLE> <table> <td bgcolor=ffffcc width=1000 > <font size=2 > <b> <br><br><br><br> <br><br><br> <br><br><br> <br><br> </b> </font> </td> </tr>&nbsp;&nbsp; </table> <table width=100%> <tr> <td bgcolor=cccccc align=center> <font size=1> &copy 2009 MCA, Indira Ghandi National Open University, New Delhi All rights reserved.</font> </td> </tr> </table> </BODY></HTML> </BODY></HTML> create_batch_trainer.jsp <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table> <tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200>

MCA, Sikkim Manipal University

161

Project Report VIRTUAL DESKTOP

July-2012

</td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br> <h5 align=center> Enter the following details of a Trainer. </h5> <form action="trainer_batchdetails_handler.jsp" method="post"> <input type=hidden name=type value=Student> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B>Batch ID </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <input type="text" name=bid> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B>Trainer ID</B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp; <input type="text" name=tid> <br> <br> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=submit> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=reset> </form> </td> </tr> </table> </BODY></HTML>

create_batch_student.jsp <HTML> <BODY> <jsp:include page="admin_header.jsp" /> <table>

MCA, Sikkim Manipal University

162

Project Report VIRTUAL DESKTOP

July-2012

<tr bgcolor=ffffcc> <td > <img src="imgs/org.jpg" width=200> </td > <td width=700 align=top bgcolor=ffffcc > <font size=2><p align=center><b> Welcome "<%=session.getAttribute( "user_name" ) %>", You have logged in as (<%=session.getAttribute( "user_type" ) %>) <hr size=1> <br> <h5 align=center> Enter the following details of a student. </h5> <form action="student_batchdetails_handler.jsp" method="post"> <input type=hidden name=type value=Student> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B>Batch ID </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <input type="text" name=id> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B>Course </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <input type="text" name=course> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Batch Start Date </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name=bsd><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT size=2><B> Batch Details </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name=bed><br><br> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=submit> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=reset> </form> </td> </tr> </table>

MCA, Sikkim Manipal University

163

Project Report VIRTUAL DESKTOP

July-2012

</BODY></HTML>

contant.jsp <HTML> <BODY> ?<HTML> <BODY> ?<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <STYLE type=text/css>BODY { MARGIN-TOP: 10px; FONT-SIZE: 12px; BACKGROUND: #009966; MARGIN-LEFT: 5px; FONT-FAMILY: verdana, arial,helvetica; font-color: black } TD { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica } A:link { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:active { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:visited { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } </STYLE> <TABLE cellSpacing=0 cellPadding=0 width=100% align=center border=0> <TR><table> <TD align=left width=60 >&nbsp; <FONT size=2><B> <A href="home.jsp">Home</A> </B></FONT> <br> &nbsp; <FONT size=2><B> <A href="credits.jsp">Credits </A> </B></FONT> </TD> <TD align=center width=700 height=20> <img src="imgs/logo.jpg" width=60% > </TD>

MCA, Sikkim Manipal University

164

Project Report VIRTUAL DESKTOP

July-2012

<TD align=left > <img src="imgs/desk.jpg" width=42% > </TD> </table> </TR> <hr size=2 > <TR> <TD> <FONT size=2><B> <A href="features.jsp">Features </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="e-learning.jsp">About ELearning </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="works.jsp">How it works? </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="aboutus.jsp">About us </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="contact.jsp">Contact us </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <hr size=2> <table> </TR> </TABLE> <table> <tr> > <td bgcolor=ffffcc width=1000 > <font size=2 > <b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>37/113E,<br> pankaj singh,<br>

MCA, Sikkim Manipal University

165

Project Report VIRTUAL DESKTOP bunku katra,<br> gwalior road,Agra<br> E-mail: [email protected]<br> Ph: +91 9411650217<br> <br>

July-2012

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b> </font> </td> </tr>&nbsp;&nbsp; <tr> <td > </td> <td > </td> </tr> </table> <table width=100%> <tr> <td bgcolor=cccccc align=center> <font size=1> &copy 2009 MCA, Indira Ghandi National Open University, New Delhi. All rights reserved.</font> </td> </tr> </table> </BODY></HTML> </BODY></HTML>

class_terminator.jsp <%@ page import="java.sql.*" %> <% Connection conn = null; PreparedStatement stat = null; try{ String batch_id = request.getParameter( "id" ).trim(); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:virtualdesktop"); stat= conn.prepareStatement( "delete from class_status where batch_id=?" );

MCA, Sikkim Manipal University

166

Project Report VIRTUAL DESKTOP stat.setString( 1, batch_id );

July-2012

int count = stat.executeUpdate(); if( count > 0 ) { out.println( "success" ); //indicates removal of record from class_status to end the class } else { out.println( "failure" ); //indicates failure of deleting the record from class_status } System.out.println( "I here" ); }catch( Exception e){ System.out.println( "Exception in client_login_handler.jsp : " + e ); } finally { try{ if( stat != null ) { stat.close(); stat = null; } if( conn != null ) { conn.close(); conn = null; } }catch( Exception ee ){ } System.gc(); } %> class_starter.jsp <%@ page import="java.sql.*" %> <% Connection conn = null; PreparedStatement stat = null; ResultSet rs = null; try{ String trainer_id = request.getParameter( "trainer_id" ).trim(); String batch_id = request.getParameter( "batch_id" ).trim(); String ip = request.getParameter( "ip" ).trim();

MCA, Sikkim Manipal University

167

Project Report VIRTUAL DESKTOP

July-2012

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:virtualdesktop"); stat= conn.prepareStatement( "SELECT * FROM batches where batch_id=?" ); stat.setString( 1, batch_id ); rs = stat.executeQuery(); if( ! rs.next() ) { out.println( "failure" ); //indicates batch id is wrong } else { stat= conn.prepareStatement( "SELECT * FROM batches_trainers where batch_id = ? and trainer_name = ?" ); stat.setString( 1, batch_id ); stat.setString( 2, trainer_id ); rs = stat.executeQuery(); if( ! rs.next() ) { out.println( "failure2" ); //indicates faculty does not belong to this batch } else { stat= conn.prepareStatement( "SELECT * FROM class_status where batch_id = ?" ); stat.setString( 1, batch_id ); rs = stat.executeQuery(); if( rs.next() ) { out.println( "failure3" ); class is already in progress } else { stat= conn.prepareStatement( "insert into class_status values ( ?, ? )" ); stat.setString( 1, batch_id ); stat.setString( 2, ip );

//indicates

MCA, Sikkim Manipal University

168

Project Report VIRTUAL DESKTOP

July-2012

stat.executeUpdate(); out.println( "success" ); successful entry of class start details into database } } } }catch( Exception e){ System.out.println( "Exception in client_login_handler.jsp : " + e ); } finally { try{ if( stat != null ) { stat.close(); stat = null; } if( conn != null ) { conn.close(); conn = null; } if( rs != null ) { rs.close(); rs = null; } }catch( Exception ee ){ } System.gc(); } %>

//indicates

changeinfo.jsp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <BODY bgColor=#9596CC> <%@ page import="java.sql.*" %> <jsp:useBean id="dcon" scope="session" class="dbean.DBCon" /> <%!

MCA, Sikkim Manipal University

169

Project Report VIRTUAL DESKTOP Connection con; ResultSet rs; Statement st; String aname,occ,address,email,uname,pwd,phno; int age; %> <% String ano=(String)session.getAttribute("accnum"); con=dcon.getCon(); st=con.createStatement(); ResultSet rs=st.executeQuery("select *from acc_master where acc_num='"+ano+"'"); while(rs.next()) { aname=rs.getString(2); occ=rs.getString(4); address=rs.getString(5); phno=rs.getString(6); email=rs.getString(8); uname=rs.getString(11); pwd=rs.getString(12); age=rs.getInt(3); }

July-2012

%> <form method=post action="update.jsp"> <TABLE style="Z-INDEX: 100; LEFT: 10px; WIDTH: 570px; POSITION: absolute; TOP: 71px; HEIGHT: 441px" cellSpacing=1 cellPadding=1 width=570 border=0> <TR> <TD> <TABLE style="Z-INDEX: 100; LEFT: 3px; POSITION: absolute; TOP: 4px" cellSpacing=1 cellPadding=1 width="75%" border=0> <TR> <TD><STRONG><FONT color=#330066 size=4>Change Personal Info</FONT></STRONG></TD></TR></TABLE>

MCA, Sikkim Manipal University

170

Project Report VIRTUAL DESKTOP

July-2012

<TABLE style="Z-INDEX: 101; LEFT: 5px; WIDTH: 343px; POSITION: absolute; TOP: 36px; HEIGHT: 294px" cellSpacing=1 cellPadding=1 width=343 border=0> <TR> <TD><STRONG><FONT color=darkorchid>Name</FONT></STRONG></TD> <TD><INPUT id=text1 name=accholder_name value=<%=aname %>></TD></TR> <TR> <TD><STRONG><FONT color=darkviolet>Age</FONT></STRONG></TD> <TD><INPUT id=text2 name=ah_age value=<%=age%>></TD></TR> <TR> <TD><STRONG><FONT color=darkviolet>Occupation</FONT></STRONG></TD> <TD><INPUT id=text3 name=ah_occ value=<%=occ%>></TD></TR> <TR> <TD><STRONG><FONT color=darkviolet>Address</FONT></STRONG></TD> <TD><TEXTAREA id=TEXTAREA1 name=ah_address ><%=address %></TEXTAREA></TD></TR> <TR> <TD><STRONG><FONT color=darkviolet>Phone Number</FONT></STRONG></TD> <TD><INPUT id=text4 name=ah_phno value=<%=phno%>></TD></TR> <TR> <TD><STRONG><FONT color=darkviolet>EMail</FONT></STRONG></TD> <TD><INPUT id=text5 name=ah_email value=<%=email %>></TD></TR> </TABLE> <TABLE style="Z-INDEX: 102; LEFT: 8px; POSITION: absolute; TOP: 363px" cellSpacing=1 cellPadding=1 width="75%" border=0> <TR> <TD><STRONG><FONT color=darkviolet>Login&nbsp;Id</FONT></STRONG>&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;</TD> <TD><INPUT id=text9 name=loginid value=<%=uname%>></TD></TR> <TR> <TD><STRONG><FONT

MCA, Sikkim Manipal University

171

Project Report VIRTUAL DESKTOP

July-2012

color=darkviolet>Password</FONT></STRONG></TD> <TD><INPUT id=password1 type=password name=password value=<%=pwd%>></TD></TR></TABLE> <TABLE style="Z-INDEX: 103; LEFT: 4px; POSITION: absolute; TOP: 332px" cellSpacing=1 cellPadding=1 width="75%" border=0> <TR> <TD><STRONG><FONT color=#330066 size=4>Change Login Info</FONT></STRONG></TD></TR></TABLE></TD></TR></TABLE></P > <INPUT id=submit1 style="Z-INDEX: 101; LEFT: 105px; POSITION: absolute; TOP: 516px" type=submit value=Submit name=submit1><INPUT id=reset1 style="Z-INDEX: 102; LEFT: 257px; POSITION: absolute; TOP: 515px" type=reset value=Reset name=reset1> </form> </BODY> </HTML>

student_header.jsp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <STYLE type=text/css>BODY { MARGIN-TOP: 10px; FONT-SIZE: 12px; BACKGROUND: #009966; MARGIN-LEFT: 5px; FONT-FAMILY: verdana, arial,helvetica; font-color: black } TD { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica } A:link { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:active { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:visited {

MCA, Sikkim Manipal University

172

Project Report VIRTUAL DESKTOP

July-2012

COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } </STYLE> <TABLE cellSpacing=0 cellPadding=0 width=100% align=center border=0> <TR><table> <TD align=left width=60 >&nbsp; <FONT size=2><B> <A href="student_home.jsp">Home</A> </B></FONT> <br> &nbsp; </TD> <TD align=center width=700 height=20>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; <img src="imgs/logo.jpg" width=60% > </TD> <TD align=left > <img src="imgs/consulting2.jpg" width=50% > </TD> </table> </TR> <hr size=2 > <TR> <TD> <FONT size=2><B> <A href="loginclass.jsp">login to classroom </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="student_download.jsp">Download Material </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="message.jsp">Messages </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="test.jsp">Test </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="logout.jsp">Logout </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

MCA, Sikkim Manipal University

173

Project Report VIRTUAL DESKTOP </TD> <hr size=2> <table> </TR> </TABLE>

July-2012

work.jsp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <STYLE type=text/css>BODY { MARGIN-TOP: 10px; FONT-SIZE: 12px; BACKGROUND: #009966; MARGIN-LEFT: 5px; FONT-FAMILY: verdana, arial,helvetica; font-color: black } TD { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica } A:link { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:active { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } A:visited { COLOR: black; FONT-STYLE: normal; FONT-FAMILY: verdana, arial,helvetica; TEXT-DECORATION: underline } </STYLE> <TABLE cellSpacing=0 cellPadding=0 width=100% align=center border=0> <TR><table> <TD align=left width=60 >&nbsp; <FONT size=2><B> <A href="student_home.jsp">Home</A> </B></FONT> <br> &nbsp; </TD>

MCA, Sikkim Manipal University

174

Project Report VIRTUAL DESKTOP

July-2012

<TD align=center width=700 height=20>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp; <img src="imgs/logo.jpg" width=60% > </TD> <TD align=left > <img src="imgs/consulting2.jpg" width=50% > </TD> </table> </TR> <hr size=2 > <TR> <TD> <FONT size=2><B> <A href="loginclass.jsp">login to classroom </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="student_download.jsp">Download Material </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="message.jsp">Messages </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="test.jsp">Test </A> </B></FONT>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <TD> <FONT size=2><B> <A href="logout.jsp">Logout </A> </B></FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </TD> <hr size=2> <table> </TR> </TABLE>

MCA, Sikkim Manipal University

175

Project Report VIRTUAL DESKTOP

July-2012

S.No. Test Case 1. Admin login

2.

Trainer login

Do Enter Administrator name in the text box of id label. Adminstrator name must not be more than 20 characters ant is should not contain any special characters and no spaces including in the start. Enter password the text box of password. Select the type of login person as Adminstrator. Enter Trainer name in the the text box of id label. Trainer name must not be

Expected Result Successful login in to the system if the values are found in the database.

Successful login in to the system if the values are found in the 176

MCA, Sikkim Manipal University

Project Report VIRTUAL DESKTOP more than 20 characters ant is should not contain any special characters and no spaces including in the start. Enter password the text box of password. Select the type of login person as Trainer. 3. Student login Enter Student name in the text box of id label. Student name must not be more than 20 characters ant is should not contain any special characters and no spaces including in the start. Enter password the text box of password. Select the type of login person as Student. Click on register new Trainer and fill form, click submit button. Click on edit trainer details and change any information of Trainer left of name and click on submit button. Click on register new student and fill form, click submit button. Click on edit Student details and change any information of Student left of name and click on submit button. Click on Search and select search button of Student or Trainer, fill the name of Student or Trainer and database.

July-2012

Successful login in to the system if the values are found in the database.

4.

Admin window

Successfully registeration has been completed. Successfully update information of Trainer.

Successfully registeration has been completed. Successfully update information of Student.

Successfully search found.

MCA, Sikkim Manipal University

177

Project Report VIRTUAL DESKTOP click on submit button. 5. Trainer window Click on Logout. Click on download study material. Save the file where Trainer wants. Click on test. 6. Click Logout. Student window Click on login class room. Click on download study material.

July-2012 Successfully Logout. One filedownload window open. Successfully file download. One test page open. Successfully Logout. Successfully login in class room. One filedownload window open.

Save the file where Student Successfully file wants. download. Click on test. Select the right answer and click on submit button. Click on Logout. One test page open. Successfully result (marks) show. Successfully Logout.

Debugging and Code improvement Debugging occurs as a consequence of successful testing. Debugging refers to the process of indentifying the cause for defective behavior of a system and addressing that problem. In less complex terms-fixing a bug. When a test case uncovers an error, debugging is the process that results in the rmoval of theerror. The debugging process begings with the execution of a test case. The debugging process attempts to match symptoms with cause, therby leading to error correction. Characteristics of bugs: 1. The symptom and the cause may be geographically remote. That is the symptom may appear in one part of a program, while the cause may actually be located at a site that is far removed. Highly coupled program structures exacerbate this situation. The symptom may disappear when another error is corrected. 2. The symptom may disappear when another error is corrected.

MCA, Sikkim Manipal University

178

Project Report VIRTUAL DESKTOP

July-2012

3. The symptom may actully be caused by non errors. 4. The symptom may be caused by human error that is not easily traced. 5. The symptom may be a result of timing problems, rather than processing problims. 6. It may be difficult to accurately reproduce input conditions. 7. The symptom may be intermittent. This is particularly common in embedded systems that couple hardware and software inextricably. 8. The symptom may be due to causes that are distributed across a number of tasks running on different processors.

Database/data security:

create database virtualdesktop use virtualdesktop create table user_details ( username varchar(20), password char(10), type varchar(15) ) insert into user_details values('pankaj','pankaj','Administrator')

MCA, Sikkim Manipal University

179

Project Report VIRTUAL DESKTOP

July-2012

insert into user_details values('kamal','kamal','Administrator') insert into user_details values('dd','dd','Trainer') insert into user_details values('suman','suman','Trainer') insert into user_details values('shivangi','shivangi','Trainer') insert into user_details values('rohit','rohit','Trainer') insert into user_details values('alok','alok','Trainer') insert into user_details values('vivek','vivek','Student') insert into user_details values('surbhi','surbhi','Student') insert into user_details values('mayuri','mayuri','Student') insert into user_details values('pavan','pavan','Student') insert into user_details values('manoj','manoj','Student') insert into user_details values('sagar','sagar','Student') insert into user_details values('komal','komal','Student') insert into user_details values('pooja','pooja','Student') insert into user_details values('upasna','upasna','Student') insert into user_details values('ankur','ankur','Student') insert into user_details values('anand','anand','Student') insert into user_details values('ashish','ashish','Student') insert into user_details values('rahul','rahul','Student') insert into user_details values('neeraj','neeraj','Student') insert into user_details values('vinay','vinay','Student') insert into user_details values('ajay','ajay','Student') insert into user_details values('aproov','aproov','Student') insert into user_details values('shivam','shivam','Student')

MCA, Sikkim Manipal University

180

Project Report VIRTUAL DESKTOP insert into user_details values('pratik','pratik','Student') select *from user_details

July-2012

Username pankaj kamal dd suman shivangi rohit alok vivek surbhi mayrui pavan manoj sagar komal pooja upasna ankur ashish rahul neeraj ajay aproov shivam pratik

password pankaj kamal dd suman shivangi rohit alok vivek surbhi mayrui Pavan manoj sagar Komal pooja Upasna ankur ashish rahul neeraj Ajay Aproov shivam pratik

type Administrator Administrator Trainer Trainer Trainer Trainer Trainer Student Student Student Student Student Student Student Student Student Student Student Student Student Student Student Student Student

create table trainer ( trainername varchar(20), fullname varchar(25), address varchar(50), emailid varchar(25), phoneno char(10) ) insert into trainer values('dd','deen dayal','bangalore','[email protected]','9965874553')

MCA, Sikkim Manipal University

181

Project Report VIRTUAL DESKTOP

July-2012

insert into trainer values('suman','suman singh','new delhi','[email protected]','9865658563') insert into trainer values('shivangi','shivangi','lucknow','shivangi@gmail .com','9656447455') insert into trainer values('rohit','rohit kumar','bangalore','[email protected]','954125478 4') insert into trainer values('alok','alok kumar','bangalore','[email protected]','9898985555') select *from trainer trainernam e dd suman shivangi rohit alok fullname deen dayal suman singh shivangi Rohit kumar Alok kumar address bangalore new delhi lucknow bangalore bangalore emailid [email protected] [email protected] [email protected] [email protected] m [email protected] Phoneno 9965874553 9865658563 9656447455 9541254784 9898985555

create table student ( user_name varchar(10), course char(10), batch_id char(5), start_date char(11), end_date char(11), full_name varchar(25), address varchar(50), mail varchar(25), phone char(10) ) insert into student values('vivek',',mca','mca12','1/2/2008','12/1/2011',' vivek kumar','kanpur','[email protected]','9658985472')

MCA, Sikkim Manipal University

182

Project Report VIRTUAL DESKTOP

July-2012

insert into student values('surbhi','btech','bch12','1/7/2007','1/7/2011', 'surbhi chuhan','nagpur','[email protected]','9898658745') insert into student values('mayuri','bsc','bsc12','1/7/2008',',1/5/2011',' mayuri singh','broda','[email protected]','9658457454') insert into student values('pavan','bca','bca12','1/2/2008','1/1/2011','pa van gupta','allahabad','[email protected]','9254684745') insert into student values('manoj','mca','mca12','1/2/2008','12/1/2011','m anoj kumar','agra','[email protected]','9356589874') insert into student values('sagar','bsc','bsc12','1/7/2008','1/5/2011','sa gar gupta','lucknow','[email protected]','9656854746') insert into student values('komal','bsc','bsc12','1/7/2008','1/5/2011','ko mal soni','raebareli','[email protected]','9654758453') insert into student values('pooja','bca','bca12','1/2/2008','1/1/2011','po oja rani','kanpur','[email protected]','9259599939') insert into student values('upasna','mca','mca12','1/2/2008','12/1/2011',' upasna tivari','banaglore','[email protected]','9307895689') insert into student values('ankur','msc','msc12','1/7/2009','15/5/2011','a nkur sarswat','new delhi','[email protected]','9897548745') insert into student values('anand','mca','mca12','1/2/2008','12/1/2011','a nand gupta','agra','[email protected]','9475846584') insert into student values('ashish','msc','msc12','1/7/2009','15/5/2011',' ashish rajput','broda','[email protected]','9898656451') insert into student values('rahul','bca','bca12','1/2/2008','1/1/2011','ra hul nagpal','allahabad','[email protected]','9654784575') insert into student values('neeraj','ma','ma12','1/7/2008','1/5/2010','nee raj kapoor','mathura','[email protected]','9359586478') insert into student values('vinay','mca','mca12','1/2/2008','12/1/2011','v inay kushwaha','jaipur','[email protected]','9897546857')

MCA, Sikkim Manipal University

183

Project Report VIRTUAL DESKTOP

July-2012

insert into student values('ajay','ma','ma12','1/7/2008','1/5/2010','ajay kapoor','goa','[email protected]','9856585852') insert into student values('aproov','mca','mca12','1/2/2008','12/1/2011',' aproov gutam','lucknow','[email protected]','9658474512') insert into student values('shivam','bca','bca12','1/2/2008','1/1/2011','s hivam dhoni','jaipur','[email protected]','9844741415') insert into student values('pratik','mca','mca12','1/2/2008,','12/1/2011', 'pratik kushwaha','agra','[email protected]','9214547874') select *from student

MCA, Sikkim Manipal University

184

user Cou Bat start_dat End_dat _ rse ch e e nam _id Project Report VIRTUAL DESKTOP e vive mca Mc 1/2/200 12/1/20 k a12 8 11 surb hi may uri btech bsc Bch 1/7/200 12 7 Bsc 12 1/7/200 8 1/7/201 1 1/5/201 1 1/1/201 1 12/2/20 08 1/5/201 1 1/5/201 1 1/1/201 1 12/1/20 11 15/5/20 11 12/1/20 11 15/5/20 11 1/1/201 1 1/5/201 0

Full_na me Vivek kumar Surbhi chuhan Mayuri singh Pavan gupta Manoj kumar Sagar gupta Komal sonni Pooja rani upasna Ankur sarswat Anand gupta Ashish rajput Rahul nagpal Neeraj kapoor Vinay kushwa ha Ajay

addr ess kanp ur

mail

phone July-2012

pava bca n man oj saga r kom al pooj a upas na mca

Bca 1/2/200 12 8 Mc a12 Bsc 12 Bsc 12 1/2/200 8 1/7/200 8 1/7/200 8

bsc

bsc bca mca

Bca 1/2/200 12 8 Mc a12 Ms c12 Mc a12 Ms c12 1/2/200 8 1/7/200 9 1/2/200 8 1/7/200 9

anku msc r anan mca d ashi sh rahu l neer aj msc

bca ma

Bca 1/2/200 12 8 Ma 12 1/7/200 8

vina mca Mc 1/2/200 12/1/20 y a12 8 University 11 MCA, Sikkim Manipal ajay ma Ma 1/7/200 1/5/201

Vivek2 @ yahoo.co m nagp surbhi@ ur gmail.co m brod mayuri a @ gmail.co m allah pavan@ abad rediffma il.com agra agmanoj @ yahoo.co .in luck sagar@h now ot mail.co m raeba komal@ reli hotmail. com kanp pooja@g ur mail.co m bana upasna@ glore yahoo.co .in New ankur@y delhi a hoo.co.i n agra anand@ ya hoo.com brod ashish@ a g mail.co m allah rahul@g abad mail.co m math neeraj@ ura gmail.co m jaipu vinay@h r otmail.c om goa ajay@g

96589 85472 98986 58745 96584 57454 92546 84745 93565 89874 96568 54746 96547 58453 92595 99939 93078 95689 98975 48745 94758 46584 98986 56451 96547 84575 93595 86478 98975 46857 185 98565

Project Report VIRTUAL DESKTOP

July-2012

create table class_status ( batch_id char(5), trainer_sys_ip char(10) ) insert insert insert insert insert into into into into into class_status class_status class_status class_status class_status values('mca12','127.0.0.1') values('bca12','127.12.0.1') values('ma12','198.14.0.1') values('bch12','127.0.0.1') values('msc12','127.0.0.1')

select *table class_status Batch_id Mca12 Bca12 Ma12 Bch12 Msc12 Trainer_sys_ip 127.0.0.1 127.12.0.1 198.14.0.1 127.0.0.1 127.0.0.1

create table batches_trainers ( batch_id char(10), trainer_name char(20) ) insert insert insert insert insert insert insert insert into into into into into into into into batches_trainers batches_trainers batches_trainers batches_trainers batches_trainers batches_trainers batches_trainers batches_trainers values('mac12','dd') values('bca12','suman') values('mac12','dd') values('bca12','suman') values('bch12','dd') values('bsc12','shivangi') values('ma12','rohit') values('bcs12','alok')

selcet *from batches_trainers Batch_id Mca12 Bca12 Mac12 Bca12 Trainer_name Dd Suman dd suman 186

MCA, Sikkim Manipal University

Project Report VIRTUAL DESKTOP Bch12 Dd

July-2012

create table batches ( batch_id char(10), course_name varchar(10), batch_start_date char(10), batch_details varchar(20) ) insert into batches values('mca12','mca','1/2/2008','java') insert into batches values('bca12','bca','1/2/2008','c++') insert into batches values('ma12','ma','1/7/2008','english') insert into batches values('bch12','btech','1/7/2007','java') insert into batches values('bsc12','bsc','1/17/2007','physics') select *from batches Batch_id Mca12 Bca12 Ma12 Bch12 Bsc12 Course_name mca bca ma btech bsc Batch_start_date 1/2/2008 1/2/2008 1/7/2008 1/7//2007 1/7/2007 Batch_details Java C++ english java physics

Enterprise businesses and government agencies around the world face the certainty of losing sensitive data from a lost laptop, removable media or other plug-and-play storage device. This drives the need for a complete data protection solution that secures data on all common platforms, deploys easily, scales to any size organization and meets strict compliance requirements related to privacy laws and regulations. Check Point Endpoint Security solutions provide data protection for laptops, PCs, removable media and mobile devices. Our independently certified data security products ensure that our enterprise, government and law enforcement customers remain in compliance with regulatory standards. By leveraging a strong and efficient blend of full disk encryption, access control, removable media

MCA, Sikkim Manipal University

187

Project Report VIRTUAL DESKTOP

July-2012

encryption and port management, Check Point Endpoint Security solutions deliver comprehensive data security Authentication security: “To make information available to those who need it and who can be trusted with it, organizations use authentication and authorization. Authentication is proving that a user is whom he or she claims to be. That proof may involve something the user knows (such as a password), something the user has (such as a 'smartcard'), or something about the user that proves the person's identity (such as a fingerprint). Authorization is the act of determining whether a particular user (or computer system) has the right to carry out a certain activity, such as reading a file or running a program. Authentication and authorization go hand in hand. Users must be authenticated before carrying out the activity they are authorized to perform. Security is strong when the means of authentication cannot later be refuted – the user cannot later deny that he or she performed the activity. This is known as no repudiation.” java security: java’s security model is one of the language’s key architectural features that makes it an appropriate technology for networked environments. Security is important because networks provide a potential avenue of attack to any computer hooked to them. This concern becomes especially strong in an environment in which software is downloaded across the network and executed locally, as is done with java applets, for example. Because the class files for an applet are automatically downloaded when a user goes to the containing web page in a browser, it is likely that a user will encounter applets from untrusted sources. Without any security, this would be a convenient way to spread viruses. Thus, java securities mechanisms help make java suitable of networks because they establish a needed trust in the safety of network-mobile code. web server security: The web Services Security specification (WS-Security) provides a set mechanisms to help developers of Web Services secure SOAP message exchange. Specifically, WS-Security describes enhancements to the existing SOAP messaging to provide quality of protection through the application of message integrity, message confidentiality and single message authentication to SOAP messages. These basic mechanisms can be combined in various ways to accommodate building wide variety of security models using a variety of cryptographic technologies. WS-Security also provides a general-purpose mechanism for association security tokens with message. However, no specific type of security token is required by SW-Security. It is designed to be extensible (e.g. support multiple security token formats) to accommodate a variety of authentication and authorization MCA, Sikkim Manipal University 188

Project Report VIRTUAL DESKTOP

July-2012

mechanisms. For example, a requestor might provide proof of identify and a signed claim that they have a particular business cortication. A Web service, receiving such a message could then determine what kind of trust they place in the claim. Creation of User profiles and access rights: Users have different type rights as, user gives the test when his/her course has been finished and gets the result on same time. User can attend the class when ever he/she want. User can download study material when ever he/she want.

In the early days of computing, software costs constituded a small percentage of the overall computer-based system cost. An order of magnitude error in estimates of software cost had relatively little impact. Today, software is the most expensive element of virtually all computer-based systems. For complex, custom systems, a large cost estimation error can make the difference between profit and loss. Cost overrun can be stimation for the developer. Software cost and effort estimation will never be exact science. Too many variables- human, technical, environmental political- can affect the ultimate cost of software and effort applied to develop it. However, software project estimation can be transformed from a black art to a series of systematic steps that provide estimates with acceptable risk. To achieve reliable cost and effort estimates, a number of options arise: 1. Delay estimation until late in the project (obviously, we can achieve 100% accurate estimates after the project is complete). MCA, Sikkim Manipal University 189

Project Report VIRTUAL DESKTOP

July-2012

2. Base estimates on similar projects that have already been completed. 3. Use relatively simple decomposition techniques to generate project cost and effort estimates. 4. Use one or more empirical models for software cost and effort estimation. Unfortunately, the first option, however attractive, is not practical. Cost estimates must be provided “up front”. However, we should recognize that the longer we wait, the more we know, and the less likely we are to make serious errors in our estimates. The second option can work reasonably well, if the current project is quite similar to past efforts and other project influences (e.g, the customer, business conditions, the SEE, deadlines) are equivalent. Unfortunately, past experience has not always been a good indicator of future results.

MCA, Sikkim Manipal University

190

Project Report VIRTUAL DESKTOP

July-2012

MCA, Sikkim Manipal University

191

Project Report VIRTUAL DESKTOP

July-2012

MCA, Sikkim Manipal University

192

Project Report VIRTUAL DESKTOP

July-2012

MCA, Sikkim Manipal University

193

Project Report VIRTUAL DESKTOP

July-2012

MCA, Sikkim Manipal University

194

Project Report VIRTUAL DESKTOP

July-2012

MCA, Sikkim Manipal University

195

Project Report VIRTUAL DESKTOP

July-2012

MCA, Sikkim Manipal University

196

Project Report VIRTUAL DESKTOP

July-2012

MCA, Sikkim Manipal University

197

Project Report VIRTUAL DESKTOP

July-2012

MCA, Sikkim Manipal University

198

Project Report VIRTUAL DESKTOP

July-2012

MCA, Sikkim Manipal University

199

Project Report VIRTUAL DESKTOP

July-2012

MCA, Sikkim Manipal University

200

Project Report VIRTUAL DESKTOP

July-2012

MCA, Sikkim Manipal University

201

Project Report VIRTUAL DESKTOP

July-2012

Gantt chart is part of project management, which relates to the use of schedules such as Gantt charts to plan and subsequently report progress within the project environment. Initially, the project scope is defined and the appropriate methods for completing the project are determined. Following this step, the durations for the various tasks necessary to complete the work are listed and grouped into a work breakdown structure. The logical dependencies between tasks are defined using an activity network diagram that enables identification of the critical path. Float or slack time in the schedule can be calculated using project management software. Then the necessary resources can be estimated an d costs for each activity can be allocated to each resource, giving the total project cost. At this stage, the project plan may be optimized to achieve the appropriate balance between resource usage and project duration to comply with the project objectives. Once established and agreed, the plan becomes what is known as the baseline. Progress will be measured against the baseline throughout the life of the project. Analyzing progress compared to the baseline is known as earned value management.

Sep RequirementGathering(T1) Design (T2) Test Cases (T3) Coding (T4) Quality Assurance (T5) Testing (T6)

Oct

Nov

Dec

Jan

Feb

MCA, Sikkim Manipal University

202

Project Report VIRTUAL DESKTOP Build (T7)

July-2012

GANTT CHART
A Gantt chart is a type of bar chart that illustrates a project schedule. Gantt charts illustrate the start and finish dates of the terminal elements and summary elements of a project. Terminal elements and summary elements comprise the work breakdown structure of the project. Some Gantt charts also show the dependency (i.e, precedence network) relationships between activities. Gantt charts can be used to show current schedule status using percent-complete shadings and a vertical "TODAY" line as shown here. In the 1980s, personal computers eased the creation and editing of elaborate Gantt charts. These desktop applications were intended mainly for project managers and project schedulers. In the late 1990s and early 2000s, Gantt charts became a common feature of web-based applications, including collaborative groupware. Although now regarded as a common charting technique, Gantt charts were considered revolutionary when they were introduced. In recognition of Henry Gantt's contributions, the Henry Laurence Gantt Medal is awarded for distinguished achievement in management and in community service. This chart is used also in Information Technology to represent data that has been collected. Advantages and limitations Gantt charts have become a common technique for representing the phases and activities of a project work breakdown structure (WBS), so they can be understood by a wide audience. A common error made by those who equate Gantt chart design with project design is that they attempt to define the project work breakdown structure at the same time that they define schedule activities. This practice makes it very difficult to follow the 100% Rule. Instead the WBS should be fully defined to follow the 100% Rule, then the project schedule can be designed. Although a Gantt chart is useful and valuable for small projects that fit on a single sheet or screen, they can become quite unwieldy for projects with more than about 30 activities. Larger Gantt charts may not be suitable for most computer displays. A related criticism is that Gantt charts communicate relatively little information per unit area of display. That is, projects are often considerably more complex than can be communicated effectively with a Gantt chart. Gantt charts only represent part of the triple constraints of projects, because they focus primarily on schedule management. Moreover, Gantt charts do not represent the size of a project or the relative size of work elements, therefore the magnitude of a behind-schedule condition is easily miscommunicated. If two projects are the

MCA, Sikkim Manipal University

203

Project Report VIRTUAL DESKTOP

July-2012

same number of days behind schedule, the larger project has a larger impact on resource utilization, yet the Gantt does not represent this difference. Although project management software can show schedule dependencies as lines between activities, displaying a large number of dependencies may result in a cluttered or unreadable chart. Because the horizontal bars of a Gantt chart have a fixed height, they can misrepresent the time-phased workload (resource requirements) of a project. In the example shown in this article, Activities E and G appear to be the same size, but in reality they may be orders of magnitude different. A related criticism is that all activities of a Gantt chart show planned workload as constant. In practice, many activities (especially summary elements) have front-loaded or back-loaded work plans, so a Gantt chart with percent-complete shading may actually miscommunicate the true schedule performance status. Pert chart is a method to analyze the involved tasks in completing a given project, especially the time needed to complete each task, and identifying the minimum time needed to complete the total project. This model was invented by Booz Allen Hamilton, Inc. under contract to the United States Department of Defense's US Navy Special Projects Office in 1958 as part of the Polaris mobile submarine-launched ballistic missile project. This project was a direct response to the Sputnik crisis. Some US government contracts required that PERT be used as part of management supervision. PERT was developed primarily to simplify the planning and scheduling of large and complex projects. It was able to incorporate uncertainty by making it possible to schedule a project while not knowing precisely the details and durations of all the activities. It is more of an event-oriented technique rather than start- and completion-oriented, and is used more in R&D-type projects where time, rather than cost, is the major factor. This project model was the first of its kind, a revival for scientific management, founded in Fordism and Taylorism. Only DuPont corporation's critical path method was invented at roughly the same time as PERT. The most recognizable feature of PERT is the "PERT Networks", a chart of interconnecting timelines. PERT is intended for very large-scale, one-time, complex, non-routine projects.

T4 T2 MCA, Sikkim Manipal University

T5

204

Project Report VIRTUAL DESKTOP

July-2012

T7

T3 T1 T6

PERT CHART

The first step to scheduling the project is to determine the tasks that the project requires and the order in which they must be completed. The order may be easy to record for some tasks (e.g. When building a house, the land must be graded before the foundation can be laid) while difficult for others (There are two areas that need to be graded, but there a re only enough bulldozers to do one). Additionally, the time estimates usually reflect the normal, non-rushed time. Many times, the time required to execute the task can be reduced for an additional cost or a reduction in the quality.

MCA, Sikkim Manipal University

205

Project Report VIRTUAL DESKTOP

July-2012

Future scope.
• • • • • • • • • • • • • •

Learning is self-paced and gives students a chance to speed up or slow down as necessary Learning is self-directed, allowing students to choose content and tools appropriate to their differing interests, needs, and skill levels Accommodates multiple learning styles using a variety of delivery methods geared to different learners; more effective for certain learners Designed around the learner Geographical barriers are eliminated, opening up broader education options 24/7 accessibility makes scheduling easy and allows a greater number of people to attend classes On-demand access means learning can happen precisely when needed Travel time and associated costs (parking, fuel, vehicle maintenance) are reduced or eliminated Overall student costs are frequently less (tuition, residence, food, child care) Potentially lower costs for companies needing training, and for the providers Fosters greater student interaction and collaboration Fosters greater student/instructor contact Enhances computer and Internet skills Draws upon hundreds of years of established pedagogical principles

MCA, Sikkim Manipal University

206

Project Report VIRTUAL DESKTOP


July-2012

Has the attention of every major university in the world, most with their own online degrees, certificates, and individual courses

In this project some necessary enhancement can be made i.e.
• Use of the discussion forums –Specific topics –Understand student’s use of the forums • • • • • • • • • • Further evaluation and development of the online marking scheme Complete electronic submission Implement the lessons learnt and software developed to support other large classes Further evaluation of student use and requirements Full implementation of SAQ tests Online marking form saving to a my sql database Facilities for marking, remarking and moderation Final grades and feedback emailed direct to student Grades produced in format for uploading to university database

MCA, Sikkim Manipal University

207

Project Report VIRTUAL DESKTOP

July-2012

1. 2. 3. 4. 5. 6.

Khalid A. Mughal, Rolf W. Rasmussen eight Impression,2008 Phill Hanna, JSP: The complete Reference jaworski, Java 2 Platform, Techmedia. Dieter Gollmann,Computer Security, Johan Wiley & sons. Elias M. Awad, System Analysis and Design, IInd edition Roger S. Pressman, Software Engineering (A Practitoner’s Approach), The Mc Graw-Hill Companies, 5th Edition 2002. 7. Pallavi Jain and Shadab Siddiqui with NIIT, J2EE Professional Projects. Web Sites: a. www.google.com b. www.jakarta.apache.org c. www.jdk.com d. www.wikipedia.org e. www.java.sun.com

MCA, Sikkim Manipal University

208

Project Report VIRTUAL DESKTOP

July-2012

MCA, Sikkim Manipal University

209

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close