Include Tag

When I use the include tag (<!--#include file="top_nav.html -->) it works on the internet, but when I go to edit the rest of the page in the design view, everything below this tage disappears. Any solutions?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>St. Lucian's Residence Inc.</title>
<style type="text/css">
<!--
margin: 0px;
padding: 0px;
-->
</style>
<link href="layout.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
#body {
height: 340px;
width: 780px;
text-align: center;
background-image: url(Images/body-bg.png);
background-color: #F4F1ED;
padding-top: 20px;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 10px;
body,td,th {
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
color: #0000B3;
body {
background-color: #FFE217;
background-image: url(Images/bg.png);
background-repeat: repeat-x;
-->
</style>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
//-->
</script>
</head>
<body onload="MM_preloadImages('Images/leftNav-hover_fundraiser.png','Images/leftNav-hover_appl y.png','Images/leftNav-hover_directions.png','Images/about-us_hover.png','Images/services_ hover.png','Images/giving-opportunities_hover.png','Images/directions_hover.png','Images/c ontact_hover.png')">
<div class="topNav" id="topNav"><a href="index.html">Home</a> | Site Map | Contact | 860-223-2123</div>
<div id="shadow">
  <div id="wrapper">
    <div id="header"><img src="Images/header.png" width="800" height="100" /></div>
    <div>
     <!--#include virtual="top_nav.html" -->
    </div>
    <div id="leftNav">
     <!--#include virtual="left_nav.html" -->
    </div>
    <div class="shadow" id="body">
      <p class="reg">St Lucian's is a non-profit home for seniors, providing them with basic living needs.    </p>
      <p class="reg"> </p>
      <p class="reg">All applicants for the residence must be 65 years of age, </p>
      <p class="reg">independent, ambulatory and capable of self-care. An</p>
      <p class="reg">application and an interview are required prior to admission.</p>
      <p class="heading"><img src="http://schlissellaw.files.wordpress.com/2010/03/nursing-home.jpg" width="134" height="95" /></p>
      <p class="reg">St. Lucian's provides a refreshing, </p>
      <p class="reg">residential community environment </p>
      <p class="reg">for the elderly to relax, socialize and</p>
      <p class="reg"> enjoy their retirement years.</p>
      <p class="heading"> </p>
      <p class="heading"></p>
    </div>
    <div>
      <!--#include virtual="footer.html" -->
    </div>
  </div>
</div>
</body>
</html>
The pages is saintlucians.org

Similar Messages

  • Including Tagged Text in a Table of Contents

    I would like to include only a few words from a given paragraph in the Table of Contents.
    For example in the example paragraph, I would like only the term Blather to appear in the TOC "Blather - Blah blah blah blah."
    Is there a way I can tag "Blather" and then have the TOC dialog include Tagged Text?
    I'm using CS 5.5.
    Thanks you.

    Thanks Peter,
    I like the auto-updating feature of the second option.
    So that I understand, you're suggesting I create a hyperlink destination on the text to display in the TOC (right-click --> Interactive --> New Hyperlink Destination), and then manually insert a cross-reference to that hyperlink destination in my TOC (Type --> Hyperlinks & Cross-References --> Insert Cross-References --> Link to: Text Anchor)?

  • Problem with flush=true in the jsp:include tag

    Hello
    I have deployed a JSP based application , based on the apache struts framework. The web server is Sun One Webserver 6 Service Pack4, on a windows 2000 machine
    The same application was tried on SunONE application server 7, and it works without any problem. However in this case the following error , on the page
    javax:servlet.jspexception:Illegal to flush within a custom tag
    Does this mean flush="true" is not allowed within custom tags
    Or is there a workaround for this
    Any help is appreciated
    thanks
    - Aniruddha

    Hi,
    This is a known problem, ��flush before you include�� limitation in JSP 1.1.
    As a result, you have to state flush="true" every time you include a jsp using <jsp:include> tag if you are using JSP1.1.
    Fortunately, it is fixed in JSP1.2. The flush attribute controls flushing. If true, then, if the page output is buffered and the flush attribute is given a ��true�� value, then the buffer is flushed prior to the inclusion, otherwise the buffer is not flushed. The default value for the flush attribute is ��false��.
    Gary Wang
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • How to dynamically include jsp files using jsf el in include tag ?

    Hi,
    I'm trying to get the jsp file name from my backing bean to use it in an include tag but I can't make it work
    When using this piece of code I can get the generated path
             <h:outputText value="/_partial/#{myBean.jspName}.jsp"/>whereas in this code the jsf el is not replaced by this value.
            <%@ include file="/_partial/#{myBean.jspName}.jsp" %> Have you any idea of how to solve this ? I'm currently developing for J2EE 1.4 platform.     
    Thanks for your help,
    Regards.

    If you're using JSF 1.2 and JSTL 1.2 at a JSP 2.1 environment, then you can just use <jsp:include> with unified EL.
    If you're using JSF 1.1, then you may find this article useful [http://balusc.blogspot.com/2007/01/dynamic-jsf-subviews.html]

  • Scriptlet within a jsp:include tag

    In Jrun 2.3.3 you could include a scriptlet within a <jsp:include> tag like this:
    <%
    String language = "E";
    %>
    <jsp:include page="/Conditions<%= language %>.html"/>
    Since I have to programme for four languages on our site, I used this convenient way of including different language pages on the fly all over the site.
    I then had a problem with 2.3.3 so I got 2.3.8 and discovered that all of these jsp:includes with scriptlets didn't work any more.
    I hastily uninstalled 2.3.8 and have continued with 2.3.3 ever since, thinking that they would sort this out in 3.0., which they didn't.
    Presumably to deal with this when I want to upgrade JRun I will have to use a load of if{} statements instead, but for four languages I will need four if {} statements which is incredibly long-winded compared to the single line of code above.
    <%
    if(language.equals("E")){
    %>
    <jsp:include page="/ConditionsE.html"/>
    <%
    %>
    Can anybody help:
    1) by giving me a neater solution that the one I've come up with.
    2) by explaining what happened at JRun to cause this change.
    Thanks.

    I could be wrong, but at least with WSAD (WebSphere), I couldn't do this:
    <html:text maxlength="14" size="10" property="proofOfClaim[<%=memberAccountIndex%>].sentDate%>"/>
    but could do this:
    <% String property = "proofOfClaim[" + memberAccountIndex +"].sentDate"; %>
    <html:text maxlength="14" size="10" property="<%=property%>%>"/>
    I think the reason is that since <html:text> is a custom tag, any scriptlets <%=...%> must be the ENTIRE value, and not be inserted in the middle of a value, for an attribute. Try it out. :)

  • Flush in the jsp:include tag

    should I state flush="true" every time I include a jsp using <jsp:include> tag in a jsp pages? For example I am trying to include a menu bar on the top of every jsp pages. Should I flush the buffer every time? if not, will it affect the performance?
    Thank you
    Cal

    Hi,
    This is a known problem, ��flush before you include�� limitation in JSP 1.1.
    As a result, you have to state flush="true" every time you include a jsp using <jsp:include> tag if you are using JSP1.1.
    Fortunately, it is fixed in JSP1.2. The flush attribute controls flushing. If true, then, if the page output is buffered and the flush attribute is given a ��true�� value, then the buffer is flushed prior to the inclusion, otherwise the buffer is not flushed. The default value for the flush attribute is ��false��.
    Gary Wang
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • Jsp include tag 1.1

    Hi all,
    i am getting the following error if my code snippet has a <jsp:include> tag
    org.apache.jasper.JasperException: Invalid jsp:include tag
    i am using VAJ3.5.3 and i modified the hosts file to support jsp1.1.
    But when i change to jsp1.0 the code works fine and fetching me the page contents.
    Need inputs.
    Regards
    Ramesh Kesavanarayanan

    Hi kesavramesh,
    I think some time ago, you're looking for something like this
    - Can I use jsp includes inside the taglib ?-
    See point 1 and 2.
    -- Paul
    1. link:
    http://www.jguru.com/faq/view.jsp?EID=115446
    2. text from the link:
    Normally when you call one JSP page from another you have no significant access to the result of the called JSP. So if I have
    Hi, I like nice clean JSP output
    <jsp:include page="gobbledegook.jsp" flush="true"/>
    Doh!
    When it would be much nicer to be able to do this:
    <%@ taglib uri="blahblah" prefix="myTags"%>
    Hi, I like nice clean JSP output
    <myTags:cleanUp>
    <jsp:include page="gobbledegook.jsp" flush="true"/>
    </myTags:cleanUp>
    Wahoo!
    This can be accomplish with the tag class:
    public class TakeOutTheTrashTag extends BodyTagSupport
    public int doStartTag() throws JspTagException
    return EVAL_BODY_TAG;
    public int doAfterBody() throws JspTagException
    try {
    if (bodyContent != null) {
    String messy = bodyContent.getString();
    String clean = takeOutTheTrash(messy);
    bodyContent.getEnclosingWriter().print(clean);
    } catch (IOException ie) {}
    return EVAL_PAGE;
    public int doEndTag() throws JspTagException
    return EVAL_PAGE;
    private String takeOutTheTrash(String messy)
    String cleanedUp = messy;
    return cleanedUp;

  • Can we change source of fx:include tag from controller class?

    Is it possible to change source of <fx:include> tag from controller class? The requirement is to dynamically change certain section of a page.

    Thanks Daniel.
    Is it possible to load <fx:include> into Anchor Tag from controller class?
    Edited by: Ravi_Teja on Jun 15, 2012 3:45 AM

  • Jsp include tag giving exception in Jboss

    Hi,
    I have a jsp page with the include tag
    <jsp:include name="w.jsp" />
    When the jsp is compiled in Jboss 3 its givin an exception as
    \Temp\Jetty_0_0_0_0_7001__blsapp\jsp\agent\A_jsp.java:220: cannot resolve symbol [javac] symbol : method include (javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.String,javax.servlet.jsp.JspWriter,boolean) [javac] location: class org.apache.jasper.runtime.JspRuntimeLibrary [javac] JspRuntimeLibrary.include(request, response, "w.jsp", out, false);
    Have any one come across this error pls help me in solving this

    check ur sytnax dear its page not name

  • How to add fragment in jsf page using include tag in jdeveloper

    Hi all
    Can you tell me wat is syntax of using include tag .or how to add fragment in jsf page ..
    Edited by: 947228 on Jul 18, 2012 5:01 AM

    Hi,
    Why do you want to do that?
    Check [url https://blogs.oracle.com/jheadstart/entry/avoid_use_of_jspinclude_where]this out before proceeding further.
    Btw, always mention your JDev version, clear usecase to get help.
    -Arun

  • Jsp:include tag does not preserve encoding of the text

    hi
    I am using Apache web server and Tomcat 4.1.
    I have a jsp:include tag (in say test1.jsp) and I am trying to include a data1.html file. This html file contains UTF-8 encoded text. When this JSP is executed, the UTF-8 text is displayed as garbage characters.
    I have included following in the JSP
    <%@ page contentType="text/html; charset=UTF-8" %>
    I have included following in the info.html
    <meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8">
    However if I rename the info.html to data1.jsp and then include, the UTF-8 text gets displayed correctly.
    I suppose, the JSP engine does not interprete the content of the html file correctly according to its encoding.
    Where as if it is a .jsp, then it is int erpreting it appropriately?
    Can anybody throw some lite on this?
    regards
    haresh
    sample files.......
    test1.jsp..........
    <%@ page contentType="text/html; charset=UTF-8" %>
    <%
    response.setContentType("text/html; charset=UTF-8");
    %>
    <HTML>
    <HEAD>
    <meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8">
    </HEAD>
    <BODY>
    <jsp:include page="data1.html" flush="true"/>
    </BODY>
    </HTML>
    data1.html.....
    <meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8">
    <br>
    &#2361;&#2366;&#2340;&#2368; &#2328;&#2381;&#2351;&#2366;&#2354; &#2340;&#2375; &#2340;&#2337;&#2368;&#2360; &#2344;&#2381;&#2351;&#2366;.
    <br>

    Your generated HTML will be flawed.
    The output of the included JSP is included in the outputstream of the enclosing one.
    Browsers will normally skip any illegal tags when encountered. This included your complete html headers from the included jsp and may (depending on the browser) include all code after the html close tag from that jsp.
    Stricter browsers may simply refuse to display anything at all.
    Read up on what the include mechanism exactly does and on wellformed HTML.

  • JSP include tag not showing page content

    Below is my code for a JSP page that uses JSP:include tag to include footer.jsp. The footer page does not display on show_email_entry.jsp. The error I am getting is variable emailAddress cannot be resolved. What am I doing wrong?
    Here is my code.
    show_email_entry.jsp
    <!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <%@ include file="../includes/header.htm" %>
    <body>
    <%
    String firstName = request.getParameter("firstName");
    String lastName = request.getParameter("lastName");
    String emailAddress = request.getParameter("emailAddress");
    %>
    <h1>Thanks for joining our email list</h1>
    <p>Here is the information that you entered:</p>
    <table cellspacing="5" cellpadding="5" border="1">
    <tr>
    <td align="right">First name:</td>
    <td><%= firstName %></td>
    </tr>
    <tr>
    <td align="right">Last name:</td>
    <td><%= lastName %></td>
    </tr>
    <tr>
    <td align="right">Email address:</td>
    <td><%= emailAddress %></td>
    </tr>
    </table>
    <jsp:include page="footer.jsp" flush="true" />
    <p>To enter another email address, click on the Back <br>
    button in your browser or the Return button shown <br>
    below.</p>
    <form action="../email6/join_email_list.html" method="post">
    <input type="submit" value="Return">
    </form>
    </body>
    </html>
    FOOTER.JSP page:
    <%@ page import="java.util.Date" %>
    <p><i><%= emailAddress %> was added on <%= new Date() %>.</p>

    The [url http://java.sun.com/products/jsp/syntax/2.0/syntaxref209.html#1003408]@include directive and the [url http://java.sun.com/products/jsp/syntax/2.0/syntaxref2020.html#8828]<jsp:include> have two different functionalities.
    From the [url http://java.sun.com/products/jsp/syntax/2.0/syntaxref20.html] reference page:
    Include Directive : Includes a resource of text or code when the JSP page is translated.
    <jsp:include>
    Includes a static resource or the result from another web component
    (italic emphasis is mine)
    Basically the @include directive is like "copy and paste this file into the JSP and then compile"
    jsp:include is "run this web page, and add the result of that to my current response"
    So jsp:include can only include complete standalone JSPs.
    Do you see now why it would throw an error message with your example?
    Cheers,
    evnafets

  • Changing the src of include tag using selectonemenu with ajax

    tell me how to change the source of include tag so that it will show a new page as my select one menu changes..
    and also i don,t want to reload the whole page so i want to use Ajax in that so if anyone have some
    idea how to do it please post......

    Help me!

  • Problems with include tags

    Ok, I am having a peculairly annoying problem for my site. My include tags (action or directives) are not working approx. 40% of the time. They did work in the past but they are not today. So for instance any of my pages that are referring to a common navigation bar using an include action show up without the navigation bar. It is a total mess. I am not sure if it is my servers fault or mine. I have already complained to my website provider but I was wondering if there is anything I can do to make them work or atleast throw an error when they dont get displayed instead of what its doing right now. If you think its a server issue, I would appreciate any tech jargon you can provide me to throw at them. They tend to say things like "it worked for me."
    Btw, I havnt done anything fancy.. in a normal html page I have included an include action(s). None of my pages have more than 2 actions and 1 directive. Most have only 1 action.

    Could you post a sample of a JSP causing the problem?

  • I need to get the complete element including tag. How to parse this xml?

    I am sure there should be some solution to this. I have XML file like this
    <test>
    <data value="123" color="RED">
    <type>single</type>
    </data>
    <data value="13323" color="BLUE">
    <type>double</type>
    </data>
    </test>
    I need to parse this XML and get the data element(s). The problem is that I need to get the complete data element include tags like
    "<data value="123" color="RED"><type>single</type></data>". I need to parse the complete XML file and get every data element including tag and send it to another upstream process.
    Any solution to this will be appreciated. I am little familiar with SAX. Is there any solution around using xerces SAX parser.
    Other solution is also appreciated.
    Thanks

        DocumentBuilder builder = factory.newDocumentBuilder();
        document = builder.parse(srcFile);
        NodeList list = document.getElementsByTagName("data");
        Node node = list.item(0); // Loop this
        TransformerFactory tFactory = TransformerFactory.newInstance();
        Transformer transformer = tFactory.newTransformer();
        DOMSource source = new DOMSource(node);
        StreamResult result = new StreamResult(outputstream);
        transformer.transform(source, result);
    Using XSLT will be lot easier.No it won't. Extending DefaultHandler is easy.Do you really think so?
    Hardly 10-15 lines.

Maybe you are looking for

  • MAC OS/X JSF "hang" problem in 10.1.3 preview

    I'm experiencing some really odd delays in JDev 10.1.3 on my Mac: Machine Name:     PowerBook G4 15" Machine Model:     PowerBook5,6 CPU Type:     PowerPC G4 (1.2) Number Of CPUs:     1 CPU Speed:     1.5 GHz L2 Cache (per CPU):     512 KB Memory:   

  • JAR file an JSP pages

    How do i include a JAR file in my JSP page?

  • Importing Roles-User Groups Mapping from one Environment to Another

    Hi, I have this situation. I am using WLP8.1 SP4 I have two environments (E1 and E2)and I have 2 MS Active Directory server (MS1 and MS2). The LDAP authenticator in E1 is configured to use MS1 and the LDAP authenticator in E2 is configured to use MS2

  • Make Adobe PDF (Print) the default choice

    Just recently the default setting when exporting a .pdf from InDesign has switched from Adobe PDF (Print) to Adobe PDF (Interactive). Is there any way to switch the default to be Adobe PDF (Print)? This is a very annoying default if you frequently cr

  • Workshop 8.1.x with IE7 Beta installed??

    Has anyone tried installing IE7's beta with Workshop installed on the same machine? I have tried this and I am now missing all of the image rendering in the JSP editor of Workshop. They all just appear as red x's. Any thoughts? Yes, I know this is be