%@ include file="invoiceFtpPush.xhtml" % in jsp

Hi All,
I want to include my xhtml page into my jsp page like :
<%@ include file="invoiceFtpPush.xhtml" %>I want to know is it possible or not? if not possible then any alternative or if possible then how can i do it?
Right now it is not working.
Any idea will be appreciated.
Thanks and Regards,
Khushwinder

Hi Baluc,
Thanks for your reply. After using <jsp:include../> i m getting the following exception :
WARN  05-29 18:29:33 Component with id 'organizationForm:senderPanelTab:senderTab:_idJsp314' (org.apache.myfaces.taglib.html.HtmlPanelGridTag tag) and path : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /pages/organizationManagement/createOrganization.jsp][Class: javax.faces.component.html.HtmlForm,Id: organizationForm][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp6][Class: org.apache.myfaces.custom.tabbedpane.HtmlPanelTabbedPane,Id: orgPan][Class: org.apache.myfaces.custom.tabbedpane.HtmlPanelTab,Id: senderPanelTab][Class: javax.faces.component.UINamingContainer,Id: senderTab][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp115][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp314]}renders it's children, but has embedded JSP or HTML code. Use the <f:verbatim> tag for nested HTML. For comments use <%/* */%> style JSP comments instead of <!-- --> style HTML comments.
BodyContent:
/>  (UIComponentBodyTagBase.java:51)
WARN  05-29 18:29:33 Component with id 'organizationForm:senderPanelTab:senderTab:_idJsp115' (org.apache.myfaces.taglib.html.HtmlPanelGridTag tag) and path : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /pages/organizationManagement/createOrganization.jsp][Class: javax.faces.component.html.HtmlForm,Id: organizationForm][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp6][Class: org.apache.myfaces.custom.tabbedpane.HtmlPanelTabbedPane,Id: orgPan][Class: org.apache.myfaces.custom.tabbedpane.HtmlPanelTab,Id: senderPanelTab][Class: javax.faces.component.UINamingContainer,Id: senderTab][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp115]}renders it's children, but has embedded JSP or HTML code. Use the <f:verbatim> tag for nested HTML. For comments use <%/* */%> style JSP comments instead of <!-- --> style HTML comments.
BodyContent:
<!-- Search value -->
    <!-- Search value -->  (UIComponentBodyTagBase.java:51)
ERROR 05-29 18:29:34 Servlet.service() for servlet default threw exception  (ApplicationDispatcher.java:712)
java.lang.IllegalStateException
     at org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:62)
     at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:783)
     at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:348)
     at org.apache.catalina.servlets.DefaultServlet.doPost(DefaultServlet.java:392)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
     at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
     at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
     at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
     at org.apache.jsp.pages.organizationManagement.receiverTab_jsp._jspx_meth_h_panelGrid_9(org.apache.jsp.pages.organizationManagement.receiverTab_jsp:2315)
     at org.apache.jsp.pages.organizationManagement.receiverTab_jsp._jspService(org.apache.jsp.pages.organizationManagement.receiverTab_jsp:373)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
     at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
     at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
     at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
     at org.apache.jsp.pages.organizationManagement.createOrganization_jsp._jspx_meth_f_subview_2(org.apache.jsp.pages.organizationManagement.createOrganization_jsp:729)
     at org.apache.jsp.pages.organizationManagement.createOrganization_jsp._jspx_meth_x_panelTab_2(org.apache.jsp.pages.organizationManagement.createOrganization_jsp:695)
     at org.apache.jsp.pages.organizationManagement.createOrganization_jsp._jspService(org.apache.jsp.pages.organizationManagement.createOrganization_jsp:224)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
     at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
     at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
     Actually previously i was using
<%@ include file="invoiceFtpPush.jsp" %>which was working fine but now i want to change my invoiceFtpPush.jsp page to xhtml which is giving the above exception.

Similar Messages

  • Include file in jsp not working

    Hi ,
    I have an include file statement in my jsp file which is not working. Not getting any error message either only the page is displayed without the jsp file included.
    My include code looks like this :
    <%@ include file ="Includes/hello.jsp" %>Also i tried including an html file or an image in the same place neither of the two displayed.
    <!--#include virtual="includes/footer.html" -->
    My jsp file is hosted on IIS

    nb123 wrote:My jsp file is hosted on IIS
    Hi ,
    I have an include file statement in my jsp file which is not working. Not getting any error message either only the page is displayed without the jsp file included.
    My include code looks like this :
    <%@ include file ="Includes/hello.jsp" %>Also i tried including an html file or an image in the same place neither of the two displayed.
    <!--#include virtual="includes/footer.html" -->
    My jsp file is hosted on IIS
    Check the path you've specified. It may well be;
    <%@include file="hello.jsp" %>or
    <%@include file="/Includes/hello.jsp" %>

  • Including Files and Caching

    I currently have a small web site (running on Apache Tomcat 4.0) that implements jsp:include a lot on every page. This was done so that I could change a single JSP file and that "component" would be changed all throughout the site. (Which is basically the point of having jsp:include !!)
    My problem is that if I change the included file and refresh a JSP page that uses it, the browser shows that the change was made. But if I then move to any other page, the same old version of the included file is still being shown. (Am I making any sense here?)
    The only way I can get all of the JSP files that use the include file to get the NEW version of the include file is to either:
    (1) make a change to each individual JSP file so that it forces the webserver to recompile the JSP page using the new JSP include file or
    (2) shutdown the webserver and restart it
    I'm sure there has got to be a better way of doing this. Any suggestions?

    I've had the same problem and unfortunately there is no way around it :(
    what i'm doing now is calling one single index.jsp page where i keep all my includes and so instead of having to go to a brand new page I just have a switch statement that calls the page depending on the parameter you pass on the query string
    index.html?page=editTools
    I also have a hash table that maps the strings to an integer..
         case 1:{
              %>
         <%@ include file="includes/admin_editTools.jsp" %>
         <%
         break;
    this way whenever you make a change to one of your includes you only have to reload one
    page index.jsp. It works great!
    Chris

  • 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   .../>

  • Failure in Precompilation of JSPs  due to include file in WL6.1 SP2

    Hi
              We are getting the following error when we try to do precompilation of JSPs using
              precompile param to true in weblogic.xml
              We are deploying our application as war files.
              eagerly waiting for your help
              sincerely
              Ramesh
              Issue description and StackTrace:
              Issue:
              Precompilation of JSPs fail while using precompile param to true in weblogic.xml and deploy it as War file. It is througing "failure pre-compiling JSP's
              weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
              xception: Could not include index.jsp" exception.
              OS: Windows 2000
              Jdk: Sun Jdk1.3.1
              Weblogic: 6.1 SP2
              ***Stacktrace*************
              <Dec 17, 2002 1:05:51 PM CST> <Error> <HTTP> <[WebAppServletContext(3961036,AdvW
              eb,/AdvWeb)] failure pre-compiling JSP's
              weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
              xception: Could not include index.jsp
              at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1025)
              at weblogic.servlet.jsp.JspParser.doit(JspParser.java:80)
              at weblogic.servlet.jsp.JspParser.parse(JspParser.java:183)
              at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
              at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255
              

    Ramesh,
              We experienced this sympton as well. In our JSPs, we converted
              <%@ include file="xyz.jsp"%> (static include, source time) to
              <jsp:include page="licensedQuote.jsp"/> (dynamic include, run time)
              and the problem went away.
              We still use static includes at the very start of the JSPs. It seems the problem only occurs when the static include is inside of a tag whose body does JSP evaluation.
              -Charlie
              "Ramesh Danala" <[email protected]> wrote in message news:[email protected]...
              > Hi
              > We are getting the following error when we try to do precompilation of JSPs using
              > precompile param to true in weblogic.xml
              > We are deploying our application as war files.
              > eagerly waiting for your help
              > sincerely
              > Ramesh
              >
              > Issue description and StackTrace:
              > Issue:
              >
              > Precompilation of JSPs fail while using precompile param to true in weblogic.xml and deploy it as War file. It is througing "failure pre-compiling JSP's
              > weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
              > xception: Could not include index.jsp" exception.
              >
              > OS: Windows 2000
              > Jdk: Sun Jdk1.3.1
              > Weblogic: 6.1 SP2
              >
              > ***Stacktrace*************
              >
              > <Dec 17, 2002 1:05:51 PM CST> <Error> <HTTP> <[WebAppServletContext(3961036,AdvW
              > eb,/AdvWeb)] failure pre-compiling JSP's
              > weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
              > xception: Could not include index.jsp
              > at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1025)
              > at weblogic.servlet.jsp.JspParser.doit(JspParser.java:80)
              > at weblogic.servlet.jsp.JspParser.parse(JspParser.java:183)
              > at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
              > at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255
              > )
              

  • How to force a jsp page to reload an "include" file?

    Hi there,
    I'm using WebSphere 4.0.2 with the Java 1.3.1 API.
    Some of my JSP files includes another JSP file as follows:
    <%@include file="constants.jsp"%>The above line came from one of the files entitled "main.jsp".
    Other jsp files on our system can rewrite and update the values in constants.jsp.
    However, when they do so, main.jsp (and the other files that "include" constants.jsp) doesn't take on the new settings unless I either a) reboot the server or b) force a recompile of main.jsp
    Is there any way to have main.jsp pick up when constants.jsp is updated and use the new values without manual intervention?
    Thanks!

    You might want to use 'touch' task of ANT. it modifies the jsp page modification time thus forcing the pages to reload.

  • %@ 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>
              >
              >
              

  • Dynamic include file in JSP page

    <span class="value">Hi
    i have index.jsp , this page can include jsp
    pages dynamically by passing the name of the page to be included to the
    index page with out .jsp , so if i want to include page "code.jsp" i
    put: .../index.jsp?page=code , this have to include code.jsp page
    i made the following code , but it did not find the file
    so can any one help plz ?
            String pg=request.getParameter("page");
            if( pg!= null && ! "".equals(pg)){
                    File f=new File(request.getParameter("page")+".jsp");
                    if(f.exists()){
                            out.print("file exist");
                            %>
                            <jsp:include page="<%=request.getParameter("page")+".jsp" %>" />
            <%
                    }else{
                            out.print("file not exist");
         

    What does the file existing or not really have to do with it?
    You can try it like this:
    String pg=request.getParameter("page");
            if( pg!= null && ! "".equals(pg)){
                    String webPath = pg + " .jsp";
                    String realPath = request.getRealPath(webPath);
                    File f=new File(realPath);
                    if(f.exists()){
                            out.print("file exist");
                            %>
                            <jsp:include page="<%= webPath %>" />
            <%
                    }else{
                            out.print("file not exist");
            }Alternatively you could try using a request dispatcher:
    RequestDispatcher rd = request.getRequestDispatcher(webPath);
    if (rd == null){
      // doesn't exist
    }

  • Can I able to include image/.js file to payload-body.jsp

    Dear Experts,
    Could anyone please tell me that how can I refer a external javascript file from payload-body.jsp and where should I place the same. Also please tell the same to display an image. Please suggest me ASAP.
    Thanks,
    Rajesh

    Hi,
    so what source address of js file i have to give in jsp page.....in your case you can use below include command
    <jsp:include page="script/test.js" /> // here test.js is your .js file nameGenerally we need to place all jsp and js files under "jdevhome\jdev\myhtml\OA_HTML". In this case you can use
    <jsp:include page="test.js" /> // here test.js is your .js file nameor
    <%@include file="test.js" %>  // here test.js is your .js file nameregards,
    Anand

  • Reloading a jsp include file

    Lets say I have a container,
    <div id="mindmapcontainer">and within this container, I have a jsp include
    <%@ include file="mindmap.jsp"%>and within the parent page there is a flash map. I have manipulated the css in such a way that this container (and its include file) will not show unless the user clicks on a country (using visibility hidden/visible). I understand that the external file loads on the server side when the parent page loads,despite it being hidden.
    Now the problem is, I'm missing some fancy effects that is shown only when the external jsp first loads. Is there any way I can make it reload onClick?
    I'm using ammap and js-mindmap btw.

    nope using window.location.reload() will reload the entire page.and i dont want that because it will get me back to my flash map screen and not the mindmap screen.thanks for your answer anyway.is there is a way to make it reload a div only or a jsp include?

  • Weblogic 9.1/10 not working on jsp:directive.include file="file.jspf"/

    Does anyone know how to get rid of this problem? I have a jsp page including a sun java studio creator created page fragment using the tag:
    <jsp:directive.include file="myHeader.jspf"/>
    here myHeader.jspf is a page fragment.
    after deployment, weblogic server report error as:
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /Page1.jsp
    Page1.jsp:15:57: Error in "C:\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\proj\grb4mk\war\myHeader.jspf" at line 1: The encoding "null" specified in the XML prolog is unsupported.
    <jsp:directive.include file="myHeader.jspf"/>
    ^----------------^
    Any idea? I tried both weblogic 9 and 10, same error, change to
    <jsp:include page="myHeader.jspf"/>
    works. the question is: why not read jsp 1.2 tag? Any way to make it work with jsp:directive.include tag?
    thanks in advance.
    Edited by: user10243594 on Sep 10, 2008 10:22 AM

    The "jsp:directive.include" tag is only valid in an well-formed XML file that specifies all the relevant namespaces. The "jsp:include" tag is used in a JSP file. I'll bet the beginning of your file shows that you don't have a valid and well-formed XML file.
    If you found that "jsp:include" worked, then that confirms you have an ordinary JSP file here. Why are you trying to use the XML form? The result of "jsp:include" in a JSP file will be exactly the same as the analogous tag in an XML file.

  • Include Graph / Chart in a jsp file

    How we can include the Graph in a jsp file?

    You probably wouldn't. More likely, you'd have an <IMG> tag or the like, whose source would point to a servlet (assuming that the chart/graph has to be generated by Java code).
    Edited by: paulcw on Jul 17, 2010 12:51 AM

  • Structure of jsp:include file?

    When using the jsp:include action, what should the format of the included file be, ie, what tags, if any, should exist in the file that is to be included? Should it just be the raw source?
    Further to this, if I want to encapsulate all code for a common function into a file that I'm going to be using in an include call, what if it uses a javascript file - can I include the reference to that in the file too?

    I understand the difference between the 2 options, I'm wondering more about the structure of the file that would be 'included' in either case and how I would specify the inclusion of a javascript (.js) file in the file - should there be html, head, body, etc tags in it or is it raw code?
    My scenario is that we use 'bubble help' in our web app to display tips to the users, so I want to encapsulate all the code for the bubble help in a single file that I will just include on all the pages that need it, hopefully the reference to the Javascript file would be in there as well

  • jsp:directive.include file=("page3" pubType + ".jsp") flush="true" /

    this isnt working, im trying to add different files in depending on the pubType variables. is there any way i can do this?

    <jsp:directive.include file=("page3" + <%= pubType %> + ".jsp") flush="true" />
    Is that fine?
    Sandesh

  • Error when using %@ include file="/test.jsp"%&

    UsingNitrox version 2.1 M3 (build 419 06022005):
    with jdk version: 1.5.0_03 and Tomcat 5.5.9
    This is the error :cry: when using <%@ include file="/test.jsp"%> in jsp:
    Severity     2
    The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files (test.jsp)
    It used to work in previuos version of Nitrox. I can't use struts tiles because the tiles content is dynamic (run time) and I need it to be static (at compile time).
    Have you encountered this problem? What is the fix? Nitrox bug?
    I need your help please,
    Alberto

    M7,
    I found the problem :wink: . In the java Build path having the default (ALL) is not picking up the content of the package. I had to use add multiple and include all the folders and subfolders (many L) in my packages. After that I added *.java and *.properties to select all the java files. Now it is working. I assume this is a bug in Nitrox. The default ALL should include the all the files in the path.
    Thanks,
    Alberto

Maybe you are looking for

  • Sharing a LARGE library - best way?

    Hello all I have a library of over 16,000 pics - the iPhoto library folder is almost 20GB. I would like to share this library across my wireless home network. Read-only access is fine for everyone (but me). I currently have the library on an external

  • OS X not finding my printer

    First, let me say I'm a UNIX systems programmer, and have been a programmer for over 25 years. I cannot get this to work - I'm stumped. I recently purchased a MacBook Pro. It's running MacOS 10.4.10. I have an old Epson Stylus Color 850Ne printer. It

  • Install Photoshop CC 2014 and uninstall Photoshop CC?

    Hi. If i have installed Photoshop CC 2014, can I uninstall photoshop CC? Thanks

  • Updating iPod software - a little frustrated

    I am a bit annoyed by the iPod software update process. It is meant to be simple and straightforward yet it seems confusing and without any guidance. 1. I connect my Ipod Mini. 2. I download the latest iPod Updater software. 3. I install the the soft

  • What version of iDVD is compatible with OS X 10.7.04?

    I'd like to know when iLife updates are needed. My software update prompts don't say when iDVD needs Updating.  It's confusing.  The iMovie version (9.0.4) indicates I can publish to iDVD (6.0.4).  But when I attempt to share to iDVD, a message pops