Results 1 to 6 of 6
  1. #1
    kriti is offline Member
    Join Date
    May 2010
    Posts
    3
    Rep Power
    0

    Default payroll generation

    Hi,

    I am trying to calculate total salary of a particular employee according how he is paid per hour using jsp and servlet can any one help me how to do it please. I have no idea how to do it as I am new to java.:(

    Thank you,

  2. #2
    svidurs1 is offline Member
    Join Date
    Mar 2010
    Posts
    9
    Rep Power
    0

    Default

    Lets say you have a admin login on jsp who wants to determine the salary of all the employees. If he enters the no of working hours of each employee and hits the "calculate salary" button, he should get the gross salary displayed on his screen. m I going right ??
    So, passing number of working hours of each employee to the servlet, calculating the salary and returning back all the values to the jsp would be a bad idea (the number of parameters involved would be high).
    Instead, try using javascript on the jsp. pass on all the parameters using an ArrayList to the servlet and the servlet will also return the ArrayList containing salar(ies)..

    Happy (Java) Coding !!

  3. #3
    kriti is offline Member
    Join Date
    May 2010
    Posts
    3
    Rep Power
    0

    Default

    Hi,

    Well the actual problem is I need to calculate the number of hours he worked first when the user does check in check out their login details r sent to database and hours need to be generated n according to that I need to calculated their pay

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,305
    Rep Power
    25

    Default

    calculate the number of hours
    Is this a question of getting the data or ???
    Does it come from a user or from a database?

  5. #5
    kriti is offline Member
    Join Date
    May 2010
    Posts
    3
    Rep Power
    0

    Default

    It comes from a database.

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,305
    Rep Power
    25

    Default

    So your question is: How to get data from a database so that it can be processed?

Similar Threads

  1. Payroll part 3 errors help
    By arrech326 in forum New To Java
    Replies: 4
    Last Post: 03-08-2011, 05:43 AM
  2. Payroll output thingy...
    By ShadowUndertow in forum NetBeans
    Replies: 3
    Last Post: 08-25-2009, 02:25 AM
  3. Payroll Project 1 Troubles
    By KiskaBaker in forum New To Java
    Replies: 3
    Last Post: 08-16-2009, 12:41 PM
  4. help for payroll project in java
    By mageshwari in forum New To Java
    Replies: 2
    Last Post: 04-09-2008, 02:46 AM
  5. Payroll Part 2, Java
    By lplopez92 in forum New To Java
    Replies: 2
    Last Post: 03-24-2008, 01:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •