Including files in html dinamically

I want to know if it is posible to use variable 'fichero' to include a .js file dinamically in this way (aproximatelly):
JUST using HTML and JavaScript!
<html>
<body>
<script>
     fecha = new Date();
     dia = fecha.getDate();
     mes = fecha.getMonth() + 1;
     ano = fecha.getYear();
     fichero = "http://www.some-place.com/NOTICIAS/" + ano + "/" + mes + "/" + dia + "_" + mes + "_" + ano + ".js";
</script>
<Script language=JavaScript type=text/JavaScript src=??fichero??></Script>
</html>
</body>(Sorry if this is not a Java issue, but this is the best forum I am membership. Some people could find this question
of their interest as Java and Web Technologies are related. Excuse my bad english). thankS!

JUST using HTML and JavaScript!This is a Java forum, as you might have picked up from the URL, forum.java.sun.com, or from the name of the forum, Java Programming. JavaScript is not Java.

Similar Messages

  • Server include file throwing error

    http://www.sdmconsultingllc.com/philosophy/manage-digital-media-solution.html
    Original HTML:
    </tr>
      <tr>
        <td bgcolor="#000033"><!--#include file="../includes/bottom-links.php" -->
    </td>
      </tr>
    </table>
    Final Source on URL Above
    </tr>
      <tr>
        <td bgcolor="#000033">[an error occurred while processing this directive]
    </td>
      </tr>
    </table>
    Include URL
    http://www.sdmconsultingllc.com/includes/bottom-links.php
    From within dreamweaver it looks good. Upon upload it doesn't work.
    Ideas?

    I was duplicating what I did when making the Digital Dealership System site.  
    html is the main page
    php is the server side include
    Most servers do not parse include files into .html files by default.  Check with your host.
    If you're on a Linux server, rename parent pages with .php or .shtml extension.
    If you're on a Windows server, use .asp or .shtml (if supported).
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • I have include file doubt

    Hi Everybody,
    I have a doubt for include file.
    Here is the doubt,
    <!-#include file="test.html"->
    What is the working functionality the above code.
    Please tell me, if any one know the answer

    what include you are talking about
    [Include Directive|http://java.sun.com/products/jsp/tags/11/syntaxref11.fm6.html]
    or
    [<jsp:include>|http://java.sun.com/products/jsp/tags/11/syntaxref1112.html]

  • How can i include css in html file when exported

    I want the CSS should be included in the html file when exported, how is that posable?

    Muse follows its own structure and keeps HTML, CSS and JS code in separate files as and when possible. If you want all that code to be merged into the HTML file itself, then there is no option to force Muse to do that. You can however, add your own CSS code into the HTML page by adding the CSS using either the Insert HTML option or using the HTML for <head> option in Page Properties > Metadata.
    Cheers,
    Vikas

  • Problems Uploading a Pages file in html format including pictures to web pa

    I have problems uploading a Pages file in html format to a web page.
    The files itself is downloaded but the images are not. How can I upload a page file in html including the pictures or illustrations?

    I just bought a macbook as well as the iwork software. I am having a few problems. I am a student and when I try to print out documents (originally word documents) it puts them automatically into textedit instead of pages. Also, the pages get all screwed up, things are missing, etc. How do I make pages my default and do i need to export? import? or do something so that these documents show up perfectly in pages?
    A second questions- When i try to print out slideshows in keynote (originally from powerpoint) the handouts print on the little edge of the paper horizontally rather than the long way. I am hoping these are easy adjustments.
    I would appreciate any help anyone can give me.
    Thank you!

  • Error: Include file not found: /globalinclude.html

    Does anyone have any idea why I would be getting this error everytime I try to make or build my workspace, project or any jsp file within JDev? I have no reference to /globalinclude.html and have never even seen this file anywhere before.
    Error: Include file not found: /globalinclude.html
    Thanks.
    -Teri Kemple
    [email protected]

    Teri,
    The reference is made in ojsp-global-include.xml in your WEB-INF directory.
    globalinclude.html should be located in your html root (default .../public_html) and its content is:
    <% request.setCharacterEncoding("windows-1252");%>.
    with the correct encoding of course.
    Charles.

  • How to include text as HTML elements (see DOMElement)

    I am working with Flash PRO CC v. 14.0.  to convert my Flash website to HTML5 / javascript
    I have converted a file to the HTML5 Canvas
    I am very happy that the new Flash Pro has the feature to convert to HTML5 canvas
    HOWEVER:
    In my original .FLA file project I use only one font: Copperplate Bold.  I use several sizes of that font within the project / scene
    In the original file for all text I use static text, Letter spacing, AntiAlias, AutoKern and single line (Linetype)
    - none of which the HTML5 canvas seem to allow / support?
    How do I maintain the FONT look that I have chosen in my original FLASH project, after I convert to HTML5 canvas?
    Is there a way in the HTML canvas to maintain the FONT look that I want?
    HTML5 canvas will not allow Font embedding
    The device font destroys the LOOK of my Copperplate Bold font.
    How do I include text as HTML elements (see DOMElements)?
    WARNINGS generated when I convert the original file into an HTML Canvas:
    Warnings generated while copying/importing in 140827a HTML test.fla:
    * AntiAlias is not supported in HTML5 Canvas document, and has been converted to DeviceFonts in an instance of Text.
    * AutoKern is not supported in HTML5 Canvas document, and has been removed in an instance of Text.
    * Frame Scripts have been commented
    * LetterSpacing is not supported in HTML5 Canvas document, and has been converted to 0.0 in an instance of Text.
    * LineType is not supported in HTML5 Canvas document, and has been converted to MultiLineNoWrap in an instance of Text.
    * Some artwork contains Hairline stroke, which is not supported in HTML5 Canvas document, and has been converted to Solid.
    * StaticText is not supported in HTML5 Canvas document, and has been converted to DynamicText in an instance of Text.
    New HTML Canvas Document created.
    NOTE:  So far the only way I have been able to maintain the font look is to convert the fonts to .png files
    This is painstaking work that I would like to avoid.
    Even then I still get a WARNING when I test my scene - (no doubt because I left the original FONT text  in guide layers)
    After conversion ON TEST SCENE:
    WARNINGS:
    Frame numbers in EaselJS start at 0 instead of 1. For example, this affects gotoAndStop and gotoAndPlay calls. (18)
    Only circular (not oval) radial gradients are supported. (85)
    Text support is limited. It is generally recommended to include text as HTML elements (see DOMElement). (6)
    Color effects are published as a filter and subject to the same limitations. (4)
    Filters are very expensive and are not updated once applied. Cache as bitmap is automatically enabled when a filter is applied. This can prevent animations from updating. (2)
    Content with both Bitmaps and Buttons may generate local security errors in some browsers if run from the local file system.
    HOW CAN I MAINTAIN the FONT LOOK that I have chosen for my project?
    How do I include text as HTML elements (see DOMElements)?
    ANY HELP will be appreciated
    A good, in depth, tutorial on the subject (FONTS) would be a BIG help to many using the convert to HTML5 canvas features.

    GOOGLE HAS
    https://www.google.com/fonts
    choose a font from above site
    then:
    google generates instructions on how to embed that font
    Montserrat
    3. Add this code to your website:
    <link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
    4. Integrate the fonts into your CSS:
    The Google Fonts API will generate the necessary browser-specific CSS to use the fonts. All you need to do is add the font name to your CSS styles. For example:
    font-family: 'Source Sans Pro', sans-serif;
    font-family: 'Ubuntu', sans-serif;
    font-family: 'Montserrat Alternates', sans-serif;
    font-family: 'Montserrat', sans-serif;
    font-family: 'Open Sans', sans-serif;

  • Jsp taglibs in include files not detected, throws errors, no code insight

    I have a jsp which is included in all the other jsp. it looks something like this
    taglibs.jsp
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
    test.jsp
    <%@ include file="/jsp/menu/taglibs.jsp"%>
    <html>
         <head>
              <title>Tours</title>
         </head>
         <body>
    <form:form commandName="testCommand">
                   <form:hidden path="tour.firstname" id="tour.firstname" />
    and so on.
    I am having 2 problems
    1. the jsp editor show errors all over the place saying
    element path not expected
    element commandName not expected etc.
    2. no code insights.
    but if i include the taglib def in test.jsp it dosn't show any error and also provides code insights. but seldom do people include all taglibs in all jsps.
    is there a way for Jdeveloper to show code insights in jsp pages which includes a jsp or like xml schemas could be added at some place(tools-pref-xml schemas) and when used anywhere, would provide code insights.

    am not sure, try with this
    <jsp:include   .../>

  • "Include" files in Dreamweaver

    I used "Include" files in my pre-Dreamweaver sites. When I switched to Dreamweaver and opened those sites, Dreamweaver converted Include file content into content on every page and does not reference the Include file anymore. Is there a way to reestablish Include file functionality in Dreamweaver, so that each page keeps only the reference to the Include file? (If so I can just search/replace content now on the page with a new Include file reference.)

    I don't have a php site but I tried  <?php include("menu.txt"); ?> anyway, but it didn't work.
    Here is what I had used in the past:
    I typed this Include file "call" into the html on the page where I want the left-nav TOC text to display:
    <!--webbot bot="Include" U-Include="i/nav-left.htm" TAG="BODY" startspan -->
    Here is the TOC text contents of "nav-left.htm" which then auto-populates into the live html page on the site when displayed:
    <a href="http://www.example.com/index.php">Home</a> -
    <a href="http://www.example.com/about.php">About Us</a> -
    <a href="http://www.example.com/links.php">Links</a> -
    <a href="http://www.example.com/contact.php">Contact Us</a>
    frontpage would auto-insert this at the end of the above TOC text in the live page:
    <!--webbot bot="Include" i-checksum="20326" endspan -->
    But that TOC text never displayed in the nonpublished local version of the ms-frontpage web pages. It only filled in the TOC text on the page from the Include file after published out to the live site.
    Whenever I changed the contents in the one file i/nav-left.htm, it updated the left nav TOC text on all the pages on my site where I had inserted the include statement:
    <!--webbot bot="Include" U-Include="i/nav-left.htm" TAG="BODY" startspan -->
    But after I brought this website into Dreamweaver, it automatically replaced all the TOC text contents into my nonpublished local version of the web pages. Now when I change the include file, it does not update the pages in the site. The Include statement fails and never calls the Include file and the Include file TOC text no longer populates the web pages. If I have an update to the TOC text, I have to update it on every individual web page, instead of just once in the Include file like I used to.
    Is there a way to create a new Dreamweaver-friendly Include filed that's not php, or a different way of entering the statement, that will work in Dreamweaver?

  • %@ include file= in a JSP

    Please e-mail responses to [email protected] as well as this newsgroup:
              I have the following in a JSP that was originally designed for iPlanet:
              <%@ include file="../edeploy_global/GlobalVars.jsp" %>
              The JSP that contains this file is in a project called "edeploy28", that is in the same directory as "edeploy_global".
              However, I get the following error in WebLogic when trying to execute this:
              javax.servlet.ServletException: compilation of /DefectCodeSite.jsp failed: weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamException: Could not include ../edeploy_global/GlobalVars.jsp
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
              at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
              mpl.java:517)
              at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
              ervletContext.java:940)
              at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
              ServletContext.java:928)
              at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
              ServletContext.java:913)
              at weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4
              83)
              at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:394)
              at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              at weblogic.j2ee.Application.addComponent(Application.java:116)
              at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:283)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:109)
              at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe
              r.java:76)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:559)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:545)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
              at $Proxy28.addWebDeployment(Unknown Source)
              at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe
              ployment(WebServerMBean_CachingStub.java:985)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:269)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
              loymentTarget.java:233)
              at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
              ments(DeploymentTarget.java:194)
              at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
              DeploymentTarget.java:158)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:559)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:545)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
              at $Proxy27.updateDeployments(Unknown Source)
              at weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
              yments(ServerMBean_CachingStub.java:2299)
              at weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
              er(ApplicationManager.java:239)
              at weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
              nManager.java:121)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:559)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:545)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
              at $Proxy26.start(Unknown Source)
              at weblogic.management.configuration.ApplicationManagerMBean_CachingStub
              .start(ApplicationManagerMBean_CachingStub.java:435)
              at weblogic.management.Admin.startApplicationManager(Admin.java:959)
              at weblogic.management.Admin.finish(Admin.java:459)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
              [att1.html]
              

              I didn't look at your problem very closely. WLS 5.1 has had some problems with including
              JSPs. Get service pack 8 and the patch for CR036881 (from websupport.bea.com/custsupp
              or 1-888-228-4232)
              mike
              "Matt Raible" <[email protected]> wrote:
              >
              >
              >Please e-mail responses to [email protected] as well as this =
              >newsgroup:
              >
              >-------------------------------------------------------------------------=
              >-------
              >
              >I have the following in a JSP that was originally designed for iPlanet:
              >
              ><%@ include file=3D"../edeploy_global/GlobalVars.jsp" %>
              >
              >The JSP that contains this file is in a project called "edeploy28", that
              >=
              >is in the same directory as "edeploy_global". =20
              >
              >However, I get the following error in WebLogic when trying to execute =
              >this:
              >
              >javax.servlet.ServletException: compilation of /DefectCodeSite.jsp =
              >failed: weblogic.utils.ParsingException: nested TokenStreamException: =
              >antlr.TokenStreamException: Could not include =
              >.../edeploy_global/GlobalVars.jsp
              > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
              > at =
              >weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
              >mpl.java:517)
              > at =
              >weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
              >ervletContext.java:940)
              > at =
              >weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
              >ServletContext.java:928)
              > at =
              >weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
              >ServletContext.java:913)
              > at =
              >weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4
              >83)
              > at =
              >weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:394)
              > at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              > at weblogic.j2ee.Application.addComponent(Application.java:116)
              > at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
              > at =
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              >oymentTarget.java:283)
              > at =
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              >oymentTarget.java:109)
              > at =
              >weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe
              >r.java:76)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at =
              >weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              >eanImpl.java:559)
              > at =
              >weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              >..java:545)
              > at =
              >weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              >ionMBeanImpl.java:285)
              > at =
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              >55)
              > at =
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              >23)
              > at =
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
              > at =
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
              > at $Proxy28.addWebDeployment(Unknown Source)
              > at =
              >weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe
              >ployment(WebServerMBean_CachingStub.java:985)
              > at =
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              >oymentTarget.java:269)
              > at =
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
              >loymentTarget.java:233)
              > at =
              >weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
              >ments(DeploymentTarget.java:194)
              > at =
              >weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
              >DeploymentTarget.java:158)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at =
              >weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              >eanImpl.java:559)
              > at =
              >weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              >..java:545)
              > at =
              >weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              >ionMBeanImpl.java:285)
              > at =
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              >55)
              > at =
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              >23)
              > at =
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
              > at =
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
              > at $Proxy27.updateDeployments(Unknown Source)
              > at =
              >weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
              >yments(ServerMBean_CachingStub.java:2299)
              > at =
              >weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
              >er(ApplicationManager.java:239)
              > at =
              >weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
              >nManager.java:121)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at =
              >weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              >eanImpl.java:559)
              > at =
              >weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              >..java:545)
              > at =
              >weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              >ionMBeanImpl.java:285)
              > at =
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              >55)
              > at =
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              >23)
              > at =
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
              > at =
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
              > at $Proxy26.start(Unknown Source)
              > at =
              >weblogic.management.configuration.ApplicationManagerMBean_CachingStub
              >..start(ApplicationManagerMBean_CachingStub.java:435)
              > at =
              >weblogic.management.Admin.startApplicationManager(Admin.java:959)
              > at weblogic.management.Admin.finish(Admin.java:459)
              > at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
              > at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
              >
              >
              ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
              ><HTML><HEAD>
              ><META http-equiv=3DContent-Type content=3D"text/html; =
              >charset=3Diso-8859-1">
              ><META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR>
              ><STYLE></STYLE>
              ></HEAD>
              ><BODY>
              ><DIV><FONT face=3DArial size=3D2>Please e-mail responses to <A=20
              >href=3D"mailto:[email protected]">[email protected]</A> as well as =
              >this=20
              >newsgroup:</FONT></DIV>
              ><DIV>
              ><HR>
              ></DIV>
              ><DIV><FONT face=3DArial size=3D2>I have the following in a JSP that was
              >=
              >originally=20
              >designed for iPlanet:</FONT></DIV>
              ><DIV><FONT face=3DArial size=3D2></FONT> </DIV>
              ><DIV><FONT face=3DArial color=3D#008000 size=3D2><STRONG><%@ include=20
              >file=3D"../edeploy_global/GlobalVars.jsp" %></STRONG></FONT></DIV>
              ><DIV><FONT face=3DArial size=3D2></FONT> </DIV>
              ><DIV><FONT face=3DArial size=3D2>The JSP that contains this file is in a
              >=
              >project=20
              >called "edeploy28", that is in the same directory as =
              >"edeploy_global". =20
              ></FONT></DIV>
              ><DIV><FONT face=3DArial size=3D2></FONT> </DIV>
              ><DIV><FONT face=3DArial size=3D2>However, I get the following error in =
              >WebLogic when=20
              >trying to execute this:</FONT></DIV>
              ><DIV><FONT face=3DArial size=3D2></FONT> </DIV>
              ><DIV><FONT face=3DArial size=3D2>javax.servlet.ServletException: =
              >compilation of=20
              >/DefectCodeSite.jsp failed: weblogic.utils.ParsingException: nested=20
              >TokenStreamException: antlr.TokenStreamException: </FONT><FONT =
              >size=3D2><FONT=20
              >face=3DArial><STRONG><FONT color=3D#ff0000>Could not include=20
              >.../edeploy_global/GlobalVars.jsp</FONT><BR></STRONG>   &nb=
              >sp;   =20
              >at=20
              >weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)<BR> &n=
              >bsp;     =20
              >at=20
              >weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI<BR>=
              >mpl.java:517)<BR>       =20
              >at=20
              >weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS<BR>=
              >ervletContext.java:940)<BR>       =20
              >at=20
              >weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp<BR>=
              >ServletContext.java:928)<BR>       =20
              >at=20
              >weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp<BR>=
              >ServletContext.java:913)<BR>       =20
              >at=20
              >weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4<BR>=
              >83)<BR>       =20
              >at=20
              >weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:394)<BR>&=
              >nbsp;      =20
              >at=20
              >weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)<BR> &n=
              >bsp;     =20
              >at=20
              >weblogic.j2ee.Application.addComponent(Application.java:116)<BR> &nb=
              >sp;     =20
              >at=20
              >weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)<BR> &n=
              >bsp;     =20
              >at=20
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl<BR>=
              >oymentTarget.java:283)<BR>       =20
              >at=20
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl<BR>=
              >oymentTarget.java:109)<BR>       =20
              >at=20
              >weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe<BR>=
              >r.java:76)<BR>       =20
              >at java.lang.reflect.Method.invoke(Native=20
              >Method)<BR>        at=20
              >weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB<BR>=
              >eanImpl.java:559)<BR>       =20
              >at=20
              >weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl<BR>=
              >..java:545)<BR>       =20
              >at=20
              >weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat<BR>=
              >ionMBeanImpl.java:285)<BR>       =20
              >at=20
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
              >55)<BR>       =20
              >at=20
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
              >23)<BR>       =20
              >at=20
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)<BR>&n=
              >bsp;      =20
              >at=20
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)<BR>&n=
              >bsp;      =20
              >at $Proxy28.addWebDeployment(Unknown=20
              >Source)<BR>        at=20
              >weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe<BR>=
              >ployment(WebServerMBean_CachingStub.java:985)<BR>    =
              >   =20
              >at=20
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl<BR>=
              >oymentTarget.java:269)<BR>       =20
              >at=20
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep<BR>=
              >loymentTarget.java:233)<BR>       =20
              >at=20
              >weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy<BR>=
              >ments(DeploymentTarget.java:194)<BR>      &=
              >nbsp;=20
              >at=20
              >weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(<BR>=
              >DeploymentTarget.java:158)<BR>       
              >=
              >
              >at java.lang.reflect.Method.invoke(Native=20
              >Method)<BR>        at=20
              >weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB<BR>=
              >eanImpl.java:559)<BR>       =20
              >at=20
              >weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl<BR>=
              >..java:545)<BR>       =20
              >at=20
              >weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat<BR>=
              >ionMBeanImpl.java:285)<BR>       =20
              >at=20
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
              >55)<BR>       =20
              >at=20
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
              >23)<BR>       =20
              >at=20
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)<BR>&n=
              >bsp;      =20
              >at=20
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)<BR>&n=
              >bsp;      =20
              >at $Proxy27.updateDeployments(Unknown=20
              >Source)<BR>        at=20
              >weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo<BR>=
              >yments(ServerMBean_CachingStub.java:2299)<BR>    &nbs=
              >p;  =20
              >at=20
              >weblogic.management.mbeans.custom.ApplicationManager.startConfigManag<BR>=
              >er(ApplicationManager.java:239)<BR>      &n=
              >bsp;=20
              >at=20
              >weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio<BR>=
              >nManager.java:121)<BR>       =20
              >at java.lang.reflect.Method.invoke(Native=20
              >Method)<BR>        at=20
              >weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB<BR>=
              >eanImpl.java:559)<BR>       =20
              >at=20
              >weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl<BR>=
              >..java:545)<BR>       =20
              >at=20
              >weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat<BR>=
              >ionMBeanImpl.java:285)<BR>       =20
              >at=20
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
              >55)<BR>       =20
              >at=20
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
              >23)<BR>       =20
              >at=20
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)<BR>&n=
              >bsp;      =20
              >at=20
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)<BR>&n=
              >bsp;      =20
              >at $Proxy26.start(Unknown =
              >Source)<BR>       =20
              >at=20
              >weblogic.management.configuration.ApplicationManagerMBean_CachingStub<BR>=
              >..start(ApplicationManagerMBean_CachingStub.java:435)<BR>   =
              >;    =20
              >at=20
              >weblogic.management.Admin.startApplicationManager(Admin.java:959)<BR>&nbs=
              >p;      =20
              >at=20
              >weblogic.management.Admin.finish(Admin.java:459)<BR>   &nb=
              >sp;   =20
              >at=20
              >weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)<BR>    =
              >;   =20
              >at=20
              >weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)</FONT></FONT></DIV></BODY></=
              >HTML>
              >
              >
              

  • UIX: Problem with the include file

    Hello,
    I am totally lost here. I am trying to follow the example of including a code snippet in an uix file from the user guide at: http://download-west.oracle.com/otn_hosted_doc/jdeveloper/904preview/uixhelp/uixdevguide/includes.html
    The parent file that I have is as follows ( test.uix )
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title="test"/>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <form name="form0">
    <contents>
    <pageLayout title="test">
    <corporateBranding>
    <image source="" destination="http://oracle.com"/>
    </corporateBranding>
    <productBranding>
    <image source="" destination="http://oracle.com"/>
    </productBranding>
    <tabs>
    <tabBar>
    <contents>
    <link text="tab1" destination=""/>
    </contents>
    </tabBar>
    </tabs>
    <pageHeader>
    <globalHeader>
    <contents>
    <link text="page header" destination=""/>
    </contents>
    </globalHeader>
    </pageHeader>
    <globalButtons>
    <include ctrl:node="testinclude"/>
    </globalButtons>
    <copyright>
    <styledText text="Copyright Oracle 2006"
    styleClass="OraCopyright"/>
    </copyright>
    <privacy>
    <link text="Privacy Statement" destination=""/>
    </privacy>
    <contents/>
    <pageButtons/>
    <start/>
    <end/>
    <about/>
    </pageLayout>
    </contents>
    </form>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    </handlers>
    </page>
    The include file that I have is as follows ( testinclude.uix )
    <?xml version="1.0" encoding="windows-1252"?>
    <globalButtonBar xmlns="http://xmlns.oracle.com/uix/ui">
    <contents>
    <globalButton text="first button"/>
    <globalButton text="second button"/>
    </contents>
    </globalButtonBar>
    When I try to compile the test.uix ( which is my parent file ) I get the following error message:
    Warning(45,59): test.uix: Parsing error, line 45, column 59: attributes in the namespace:http://xmlns.oracle.com/uix/ui are only allowed with the "data" expressionLanguage
    How can I resolve this ?
    This is what I am trying to do - and maybe there is a better way:
    I have an application with two tabs, each tab has two (or more) subTabs/PageHeaders. Each pageHeader has a sideNav with atleast three elements. Each of the element goes to a differnt page. So far I have managed to create a template for the tabs and the pageHeaders. I do the switch for the pageheaders using the switcher element with the tabSelectedIndex as my "case". However I could not figure out a way to do the switcher based on the tab and the page header selected ( two conditions ), hence I thought of writing an include file with the sideNav and including it in the code corresponding to the page headers ( the code that I have posted is a very simple globalButton include - this is the most simplest thing that I could think of to experiment )
    Thanks !

    Perhaps if you try like this
    <sideBar rendered="${uix.rootAttr.indiceTopo != -1}" width="220">
    <contents>
    <include rendered="${uix.rootAttr.indiceTopo == 0}"
    node="${ctrl:parsePage(uix,'/MeuAmbiente/menuMeuAmbiente')}"/>
    <include rendered="${uix.rootAttr.indiceTopo == 1}"
    node="${ctrl:parsePage(uix,'/Declaracao/menuDeclaracao')}"/>
    note , this include tag is inside one mainTemplate.uit and see the rendered atribute is passed by parameter to this template.
    As a metter of fact menuMeuAmbiente.uix is only the stiledlist tag and it's styledItens, i have one menu<Module>.uix for each superior tab
    I hope this helps;

  • Parametricizing the file name in the jsp directive %@ include file=

    Is there any way to parametricize the file name in the above directive. Am not too keen on using
    <jsp:include ..
    because of performance issues and also i am only including a static HTML issues.
    Any responses would be appreciated?

    Nope.
    The <%@ include %> occurs at the time of translating/compiling the jsp into a servlet. It thus cannot accept any runtime parameters.
    Are the performance issues of using <jsp:include> that large?

  • Development environment for 'include' files?

    My photo album program only has a single page. Each time you
    ask for a new page
    it calls itself, with a new set of parameters. Some of the
    more complicated
    pages are generated by setting up a framework (which
    specifies the styles to be
    used, among other things) and then loading an include file
    into it.
    Initially I envisaged these as being simple text files, but
    inevitably some of
    them became quite complex. Developing these in Dreamweaver is
    quite a pain,
    because it doesn't know about the CSS styles. I did try
    making an HTML shell
    file and pasting the include file into it, then cutting and
    pasting it again to
    save the revised version, but this proved to be cumbersome
    and very error-prone.
    Is there any way of telling Dreamweaver to load an
    environment before loading
    the include file?
    Clancy

    > This seems to be about 90% of what I was thinking of,
    but I gather that
    > when you
    > upload the file the hidden stylesheet remains attached
    to the file, but is
    > effectively commented out.
    No. It's only "applied" during Design-time viewing.
    > It is a pity that Dreamweaver doesn't include a
    'compile' option which
    > stripped
    > out template and other Dreamweaver specific commands
    (end_editable and the
    > like)
    > from the development file, leaving clean HTML. If this
    were done it
    > would mean
    > that they could use Dreamweaver specific operations much
    more flexibly,
    > without
    > having to worry about using botched up comment commands
    to hide them from
    > the
    > browser.
    I guess I don't understand what you are referring to here
    with "botched up
    comment commands". A comment is a comment, and really does
    nothing to the
    page at all.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Clancy" <[email protected]> wrote in message
    news:[email protected]...
    > "Murray *ACE*" <[email protected]>
    wrote:
    >
    >>Use Design-time stylesheets.
    >
    > Thanks Murray,
    >
    > This seems to be about 90% of what I was thinking of,
    but I gather that
    > when you
    > upload the file the hidden stylesheet remains attached
    to the file, but is
    > effectively commented out. However I guess that all that
    has to be in the
    > file
    > is an 'include' statement (or perhaps this is what
    actually happens), so
    > it
    > shouldn't lengthen the file noticeably.
    >
    > It is a pity that Dreamweaver doesn't include a
    'compile' option which
    > stripped
    > out template and other Dreamweaver specific commands
    (end_editable and the
    > like)
    > from the development file, leaving clean HTML. If this
    were done it
    > would mean
    > that they could use Dreamweaver specific operations much
    more flexibly,
    > without
    > having to worry about using botched up comment commands
    to hide them from
    > the
    > browser.
    >
    > Clancy

  • Variable interplay between include files and parent files?

    How can I define a variable in a parent file which is then
    used in some
    logic in an include file? For example, if I have -
    <?php
    $foo = 1;
    ?>
    <?php require_once('foo.php'); ?>
    and in foo.php, I have -
    <?php if ($foo == 1) { echo "FOO"; } ?>
    it doesn't seem to work. Am I testing improperly, or what?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================

    Mine, too. But when you don't know what you are doing,
    sometimes the 'proof
    of concept' tests you design are a bit off-kilter, doncha
    know? I can only
    guess that i was suffering from that.
    I'll verify that I correctly reported this and post back....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Gary White" <[email protected]> wrote in message
    news:[email protected]..
    > On Wed, 9 May 2007 20:26:02 -0400, "Murray *ACE*"
    > <[email protected]> wrote:
    >
    >>Yeah - of course, I changed everything about it, too!
    >
    >
    > I'm still bewildered by what caused the problem. If I
    have two files,
    > first (includevar.php) like this:
    >
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    > "
    http://www.w3.org/TR/html4/strict.dtd">
    > <html>
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    > <title>Variable in an Include Test</title>
    > <meta http-equiv="imagetoolbar" content="no">
    > </head>
    > <body>
    > <p><?php
    > $x='This is $x defined in includevar.php';
    > include 'foo.php';
    >
    > print "$y";
    > ?></p>
    > </body>
    > </html>
    >
    > And foo.php like this:
    >
    > <?php
    > $y='This is $y defined in foo.php';
    > print "foo.php says $x<br>\n";
    > ?>
    >
    > The output I get is:
    >
    > foo.php says This is $x defined in includevar.php
    > This is $y defined in foo.php
    >
    > Clearly, the variable defined in the parent file is
    recognized in
    > foo.php and the variable defined in foo.php is
    recognized in the parent
    > file. Hence my bewilderment.
    >
    > Gary

  • Problems centering text in an includes file.

    I am trying to create an includes file (footer.php) to be displayed in a template file (index.dwt.php).  Am having troubles trying to get it to center the text when it's drawn in and displayed in the templates page.  It always comes in left justified for some reason.  Any help would be appreciated. Thanks.
    Bob Green

    How are you doing the footer?
    If your CSS has a rule that will center text in the footer that is in a paragraph, then you must make your text file for your include have the HTML:
    If your css says:
    footer p {
         text-align: center;
    And your text file for the include is:
    <p>&copy; 2013 big business, inc., All Rights Reserved</p>
    Then the text should be centered. But if it doesn't have the opening and closing paragraph marks, then it won't.
    Simple things like that may cause peoblems for includes.

Maybe you are looking for

  • How do i make my iphone 4 number show on caller id?

    I want my caller id to show when I am calling friends and home.  However, there is no setting on Iphone 4 to do so.  It is not in settings under phone.  Only 3 buttons exist in this mode and neither has anything to do with caller id.  What am I missi

  • File System repository error in component monitor

    Hi, I created a file system repository in our portal server which will connect to windows file system and display the folder structure. I created a File system repository manager with the following properties mentioned below Prefix (must start with /

  • What does ACR offer me that PSE doesn't?

    I'm a casual photographer, thinking of buying a camera with RAW capability.  Today I shoot only JPEGs, which I adjust in PSE 8.  I've reviewed the Camera Raw section in Help, and it says I should use ACR to adjust (1) white balance, (2) tonal balance

  • Moving profile from C200M2 to C220M3 - Windows not happy.

    Hey all, Has anyone in the community attempted to migrate a service profile running bare metal windows server 2008 R2 SP1 from an older C200 M2 series rack mount server to a new C220M3?  The Windows installation is blue-screening continuously during

  • Non jta and autocommit

    i am using mysql, tomcat and toplink. how to set autocommit off?