Results 1 to 2 of 2
  1. #1
    trill is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default Where i have to write the common data to jsp

    Hi, I am having one question on jsp. I am having 30 jsp pages in my application. I have some common data to the all pages.
    Where i have to write the common data to get all the pages.

    Thanks.

  2. #2
    toby is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default

    If there are many pages with the same data in them simply create an include file("my_include_file.jsp"). All you need to do in order to be able to do this is place all the html code that is common in one jsp file and then include it in any other jsp file(s) by using the following syntax:

    Java Code:
    <jsp:include page="my_include_file.jsp"/>

Similar Threads

  1. What are you using to write your code?
    By CaptainMorgan in forum New To Java
    Replies: 983
    Last Post: 03-26-2014, 10:12 AM
  2. how to write onto a file
    By mirage_87 in forum New To Java
    Replies: 6
    Last Post: 09-08-2009, 03:54 PM
  3. How do i write this in java...?
    By johnny7white in forum New To Java
    Replies: 1
    Last Post: 11-28-2007, 07:05 PM
  4. Joining two 2D Arrays over a common column
    By Sknight126 in forum Advanced Java
    Replies: 0
    Last Post: 11-02-2007, 11:29 AM
  5. About bean:write
    By yuchuang in forum Web Frameworks
    Replies: 1
    Last Post: 04-30-2007, 03:31 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
  •