Results 1 to 3 of 3
  1. #1
    raman_v is offline Member
    Join Date
    Dec 2009
    Posts
    4
    Rep Power
    0

    Smile search employee id

    hi,

    Anyone please tell me how to search the employee details using from jsp to servlet.


    Thanks,

    Ramakrishnan

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    5

    Default

    well, if you mean a JSP page presents a search form and POSTs the form to a servlet, which receives these HTTP parameters, and then invokes a query in the database, and then generates a response output, or redirects to a JSP page that does a response output, - there are many open source frameworks that work to do this. E.g. Struts (1,2), Spring -web-mvc. uh, JSF, I guess. and usually some kind of Java to database objects binding or mapping framework such as iBatis, or Hibernate., or other depending on app server.

    But in a simplistic way, like not using any frameworks at all its possible to do all of this with bare HTML form tags, Servlet that reads URL parameters, and JDBC to query the database. Assuming the employee details are in a database that is. and then generate HTML output directly from the servlet. - you just have to really want to do everything by hand for some reason.

  3. #3
    raman_v is offline Member
    Join Date
    Dec 2009
    Posts
    4
    Rep Power
    0

    Default code

    can u give me some example code?

    Thanks,
    Ramakrishnan

Similar Threads

  1. Jsp Project on Employee Details
    By 82rathi.angara in forum JavaServer Pages (JSP) and JSTL
    Replies: 8
    Last Post: 01-20-2014, 09:34 AM
  2. Replies: 0
    Last Post: 10-29-2009, 09:28 AM
  3. Implement a class Employee-Help due tmrw!
    By Britt7 in forum New To Java
    Replies: 3
    Last Post: 10-27-2008, 01:37 AM
  4. Replies: 5
    Last Post: 08-26-2008, 03:43 PM
  5. Employee Database using an Array
    By hajeer in forum AWT / Swing
    Replies: 2
    Last Post: 07-30-2008, 04:05 AM

Posting Permissions

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