Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By wsaryada

Thread: JSP include dynamically

  1. #1
    raghosh is offline Member
    Join Date
    Apr 2012
    Posts
    2
    Rep Power
    0

    Default JSP include dynamically

    I am new to JSP/Servlet. I am developing a website using jsp/servlet. I have developed it using jsp:include. I want to change the middle portion of my page , so that the header, menu bar and footer would not reload. I have designed the head, menu bar and footer in different jsp pages and included them. What should I do? Please help me as my project dead-line it knocking at the door.

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    757
    Rep Power
    7

    Default Re: JSP include dynamically

    I think you can do that, because jsp:include is done on the server side. All you get at the browser side is the full page that contains header, menu and the main page. If you want to update only the main content you need to do some ajax programming in there. So that you can update only a portion of your page without reloading the whole page.
    raghosh likes this.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default Re: JSP include dynamically

    Moved from New to Java

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    raghosh is offline Member
    Join Date
    Apr 2012
    Posts
    2
    Rep Power
    0

    Default Re: JSP include dynamically

    Thank you very much. Your suggestion solved my problem.

Similar Threads

  1. Replies: 0
    Last Post: 03-02-2010, 08:28 AM
  2. include-prelude/include-coda
    By devin in forum Java Servlet
    Replies: 0
    Last Post: 02-11-2009, 07:33 PM
  3. jsp:include in a sql:transaction
    By sam2020 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 07-31-2008, 08:11 PM
  4. Replies: 5
    Last Post: 07-29-2008, 02:13 PM
  5. jsp:include and include file
    By Heather in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 07-14-2007, 04:19 PM

Tags for this Thread

Posting Permissions

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