Results 1 to 2 of 2
  1. #1
    R O C K Y's Avatar
    R O C K Y is offline Member
    Join Date
    Feb 2009
    Posts
    19
    Rep Power
    0

    Question how to update and display the hit counter on my very first jsp page.

    Dear member

    1.I want to update and display the hit counter on my very first jsp page.

    2.since the servlet contains the logic for updating the hit counter field so i need to call servlet first as soon as i loaded my first jsp page("welcome.jsp")

    3.Now do you have any solution for the above problem.....?


    waiting for your suggestion...........

  2. #2
    Join Date
    Oct 2008
    Posts
    68
    Rep Power
    0

    Default

    Well its fundamental problem you need to understand how to transfer data between servlet and JSP.

    you can transfer variable using requst.setAttribute() method and read it in JSP using request.getAttribute() method.

    You may also want to read about different scopes of application request/session/context.

    hope this helps...

    ____________________________________________
    Priya,
    Cooking is Fun | Eat Healthy Stay Fit | Sweets | Raita | Bread | Dal| Snacks

Similar Threads

  1. How to display Tabuler Data in J2EE application on jsp page
    By AMATYA-CHANAKYA in forum Advanced Java
    Replies: 2
    Last Post: 04-23-2008, 05:54 PM
  2. Display success message in same page when submit button is clicked
    By am17mu in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 03-29-2008, 10:56 AM
  3. unable to update MYSQL with values from jsp page
    By koushika in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 03-27-2008, 01:35 AM
  4. how to display image in jsp page(Struts)
    By rama6262 in forum Advanced Java
    Replies: 1
    Last Post: 12-21-2007, 07:50 AM
  5. How to display a database-image in a page?
    By simon in forum New To Java
    Replies: 1
    Last Post: 07-23-2007, 11:56 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
  •