Results 1 to 2 of 2
  1. #1
    herbozo2003 is offline Member
    Join Date
    Mar 2009
    Posts
    3
    Rep Power
    0

    Default Constructing simple Servlet

    Hi friends, I really need your help.

    I have an html file saved on my PC. my assignment is to construct a Servlet that will read the info entered by the user when he clicks the submit button.
    I know this!!!!

    Now, I'm using netbeans and I created a web application which also created an index.jsp file in the project.

    So my question is should I copy paste the html code from the file i have saved on my pc to the index.jsp? and then work from the index.jsp file?

    Or should I create a servlet and somehow link it to the HTML file that i have saved in my PC?----don;t know how to do that

    Or should I bring the saved html file into the netbeans project?

    Please i need your help, i need an explanation on what to do?

  2. #2
    kattavijay's Avatar
    kattavijay is offline Member
    Join Date
    Jan 2009
    Location
    Hyderabad,india
    Posts
    21
    Rep Power
    0

    Default

    yes you can do by the both the ways...
    you can copy the code from the html page to the index.jsp page,
    and u can copy the html file from ur system to the path netbeans\<ur project>\web directory location.
    then from this code u can call the servlet and read the data.

Similar Threads

  1. Replies: 1
    Last Post: 12-02-2008, 01:23 AM
  2. Replies: 0
    Last Post: 08-30-2008, 12:52 PM
  3. Need help with constructing code
    By Nine0joe in forum New To Java
    Replies: 6
    Last Post: 05-09-2008, 03:14 AM
  4. Replies: 2
    Last Post: 05-04-2008, 06:27 PM
  5. Replies: 1
    Last Post: 08-07-2007, 04:47 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
  •