Results 1 to 3 of 3
  1. #1
    soichi is offline Member
    Join Date
    Jan 2011
    Posts
    14
    Rep Power
    0

    Default A servlet that generates html pages

    hi. I want to develop a Java servlet that generates html pages.

    For example,

    1.an user access the index.html.
    2.he enters texts and numbers in appropriate fields and hits a button form, "send".
    3.the button form activates the servlet, and it generates additional html pages depending on the data the user entered.

    so, the site

    http://www.XXX.com/index.html

    dynamically generates additional pages like

    http://www.XXX.com/pages/1/page1.html
    http://www.XXX.com/pages/1/page2.html
    ...
    http://www.XXX.com/pages/4/page3.html
    and so on.

    Would someone give me idea for start? I have no clue where and how to start to program.

    Thanks in advance.

    soichi

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    8

    Default

    All servlets "generate html pages", generally, unless they forward to something else for the output. What you actually want, however, is a seperate JSP or Servlet for each "page" and filter that forwards the request to the proper JSP/Servlet.

  3. #3
    soichi is offline Member
    Join Date
    Jan 2011
    Posts
    14
    Rep Power
    0

    Default

    Oh, thanks for your reply.
    Without those key words, I had no idea where to start.

    I will look for more information.

    soichi

Similar Threads

  1. calling up servlet from Html
    By mosto in forum Java Servlet
    Replies: 7
    Last Post: 10-18-2009, 03:38 PM
  2. how can i link html+servlet+xml to form servlet
    By balachandarr in forum Java Servlet
    Replies: 0
    Last Post: 04-15-2009, 04:06 PM
  3. Placing java code/html pages on website host
    By Bomber_Will in forum New To Java
    Replies: 8
    Last Post: 11-30-2008, 04:31 PM
  4. get data from servlet to html
    By lema in forum Java Servlet
    Replies: 7
    Last Post: 05-22-2008, 04:00 PM
  5. get data from html to servlet
    By lema in forum Java Servlet
    Replies: 66
    Last Post: 04-09-2008, 02:43 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
  •