1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem in fetching source for <jsp:include>..?

Discussion in 'JSP' started by prabhurangan, Feb 6, 2009.

  1. prabhurangan

    prabhurangan New Member

    Feb 6, 2009
    Likes Received:
    Trophy Points:
    Hi Members,

    Great to meet you all in this forum; this is my first post.

    Im using <jsp:include page="support.jsp>" in a jsp page name "home.jsp"

    support.jsp Content
    FYI: FInd the attachment code for 'support.jsp'
    In my above code i have used some <script src=""> tags for which the source file is fetched from a Remote Machine.

    When i open my home.jsp page in my browser and as i have included 'support.jsp' page in my home.jsp page it will look for the file specified in another machine that i have specified as a URL, '//192.xx.xx.xxx/dr/util.js' so if the corresponding system/machine is SLOW or it is DOWN at that time or if the INTERNET is slow, it takes long time to respond;

    Instead I have to try to connect for a certain time limit and it if goes beyond the time limit specified, I have to Include another page instead of 'support.jsp' page.

    Please help out in this;

    I have tried using UrlConnection.connect() in my java code, but it tries to fetch the content for long time;


Share This Page