ASSIGNAMENT 3 - Enterprise Java Jan-June 2014 ASSIGNMENT...

Info icon This preview shows pages 1–2. Sign up to view the full content.

Enterprise Java Jan-June 2014 Prepared by: Mr. Hitesh Kumar Sharma & Mr. Ravi Tomar Page 1 To be submitted by: B.Tech CS VI Sem (MFT+O&G+OSS+CCVT) ASSIGNMENT 3 (Date of Submission 7 th April 2014) Write the Java Code for the following Problems (Mid-Term Exam Problems) Q1 . Write the HTML and Java Servlet code for the following two Web Pages. The HTML page will take name and Basic Salary as input and Servlet code will calculate Gross Salary and display on another web page. The calculation for Gross Salary is as per the following formula. Gross Salary = Basic + HRA+DA where HRA = 20% of Basic, DA = 90% of Basic. Q2 . Write the code to get the value of the following parameters present in web.xml file (I) using simple variable and (II) using Enumeration. <init-param> <param-name>driver</param-name> <param-value>com.mysql.jdbc.Driver</param-value> </init-param> <init-param> <param-name>URL</param-name> <param-value>jdbc:mysql://localhost:3306/MyDB</param-value> </init-param> GROSS SAL SHEET Hello Name Your Gross Sal is Gross Salary Gross.html GROSS BASIC SALARY basic.html NAME
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Image of page 2
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '16
  • Ravi Tomar
  • Java Community Process, basic salary, Gross Salary, servlet code, Hitesh Kumar Sharma

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern