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

Similar Messages

  • 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

  • Including a file in a JSP from a different application

    I have two different applications deployed in a Java Application Server 7 (their context root are "\Start" and "\Portal"). The second one uses a JSP of the first one doing like this:
    File: \Portal\index.jsp
    <%@include file="/Start/control.jsp"%>
    But I get a "File not found error" of file "\Start\control.jsp" when I call "/Portal/index.jsp" in the browser.
    On the other hand, when I call direclty that page from the browser using the URL "http://server/Start/control.jsp", this page works properly.
    I have read in JSP documentation that if you put the forward slash "/" before the name of file, the include directive uses an absolute path instead of relative path.
    According to this theory, the include directive in "/Portal/index.jsp" should find the file and copy the content into index.jsp before compilation, but it does not work.
    I have try this sample in other environments such as JRun and Tomcat and I works properly.
    Is this a specific thing of Java Application Server 7?
    Can I do something to solve this problem?
    Thanks in advance

    This would be very useful to integrate static content HTML into the JSP page from an absolute path related to the site not only to the application (the WAR file).
    But what about to include into a JSP page the content of another JSP page before the compilation into a servlet.
    I mean ...
    I have a JSP file in this path of the Web site "/Start/control.jsp" that it is deploy using the WAR file Start.war.
    I have another JSP file in this path of the Web site "/Portal/index.jsp" that it is deploy using the WAR file Portal.war.
    As we have seen, they are different applications so if I put into file "/Portal/index.jsp" the line
    <%@include file="/Start/control.jsp"%>
    , it does not work
    if I put into file "/Portal/index.jsp" the line
    <io:request url="/Start/control.jsp"/>
    , it does not work because there are some objects define in the control.jsp file (for instance, a variable called "name") that are used in the index.jsp file and in time of compilation, a line in generated with this code:
    out.write("<io:request url=\"/Start/control.jsp\"/>\r\n");
    but there is no a copy of content of control.jsp in index.jsp before trying conversion to servlet. So when compilation goes on, it produces an error because it says that the variable "name" has not been declared (and the declaration is inside control.jsp).
    That's way I need a sentence to include the code of a JSP into another JSP before compilation. A kind of concatenation of files or something similar previous to conversion and compilation to servlet.

  • Can a include file exception crash an app server?

    Hi,
              Can somebody please help me with the answer to this question?
              Question is: I have an include file in a jsp page. But this include
              file is not present on the server and hence it is giving an
              exception.This exception is being caught and a message is thrown on
              the console.Now, will this exception 'crash' my app server anytime?
              Also will the exception be thrown everytime a user tries to access the
              jsp page? Please help.
              Thanks,
              

              "Shirin" <[email protected]> wrote in message
              news:[email protected]..
              > Hi,
              >
              > Can somebody please help me with the answer to this question?
              > Question is: I have an include file in a jsp page. But this include
              > file is not present on the server and hence it is giving an
              > exception.This exception is being caught and a message is thrown on
              > the console.Now, will this exception 'crash' my app server anytime?
              No. It shouldn't crash the app server.
              > Also will the exception be thrown everytime a user tries to access the
              > jsp page? Please help.
              Yes, until the file that is included exists or until the page handles the
              exception.
              Tom
              

  • Include file was not found

    I create a web application using spring+hibernate+struts with cxf in MyEclipse. It works fine in Tomcat.
    Then, I export it as a war file and deploy it to weblogic 12c. However, I get error:
    Compilation of JSP File '/BZWeb/index1.jsp' failed:
    index1.jsp:2:18: The include file was not found.
    <%@ include file="/common/taglibs.jsp"%>
    ^-------------------^
    index1.jsp:2:18: The include file was not found.
    <%@ include file="/common/taglibs.jsp"%>
    ^-------------------^
    index1.jsp:7:22: The include file was not found.
    <%@ include file="/common/meta.jsp"%>
    ^----------------^
    index1.jsp:7:22: The include file was not found.
    <%@ include file="/common/meta.jsp"%>
    ^----------------^
    My weblogic.xml is as follow:
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-web-app
    xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd">
    <wls:weblogic-version>12.1.1.0</wls:weblogic-version>
    <wls:context-root>BZWeb</wls:context-root>
    <wls:charset-params>
    <wls:input-charset>
    <wls:resource-path>/*</wls:resource-path>
    <wls:java-charset-name>UTF-8</wls:java-charset-name>
    </wls:input-charset>
    </wls:charset-params>
    <wls:container-descriptor>
    <wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
    <wls:index-directory-enabled>false</wls:index-directory-enabled>
    </wls:container-descriptor>
    <wls:jsp-descriptor>
    <wls:keepgenerated>true</wls:keepgenerated>
    <wls:precompile>true</wls:precompile>
    <wls:print-nulls>false</wls:print-nulls>
    </wls:jsp-descriptor>
    </wls:weblogic-web-app>
    Is weblogic.xml wrong?

    Also, do you have SSI turned on in IIS? I believe it's a module that you will need to turn on.
    http://tech.mikeal.com/blog1.php/server-side-includes-for-html-in-iis7
    Have you opened up the page in a web browser? All I see is the code. It is not rendering in the browser.
    Jim

  • Repost: relative URL in @ include file , parsing Exception

              Repost : hope this formats properly.
              Hello all
              I've a jsp file that includes another like
              < % @ include file="../common/check_active_user.jsp" % >
              It works fine on WL5.1 and on WL6.0sp1 as long as I don't
              packageit in .war file.
              With the .war file I get the attached
              Weblogic.utils.ParsingExceptionexception.
              Is this a bug in WL6.0sp1? has anybody else encountered
              similar problem?
              TIA
              [parse.txt]
              

    Ashish,
              We include all our jsp's using
              <%@ include file="/common/check_active_user.jsp" %>
              This works fine without any problem in open directory deployment and also when
              we deploy as war file.
              I checked the case you mentioned (changing /common to ../common) its fails for
              me too when I made war file.
              Thanks,
              Kumar.
              ashish gupta wrote:
              > Repost : hope this formats properly.
              >
              > Hello all
              > I've a jsp file that includes another like
              > < % @ include file="../common/check_active_user.jsp" % >
              > It works fine on WL5.1 and on WL6.0sp1 as long as I don't
              > packageit in .war file.
              > With the .war file I get the attached
              > Weblogic.utils.ParsingExceptionexception.
              > Is this a bug in WL6.0sp1? has anybody else encountered
              > similar problem?
              >
              > TIA
              >
              > ------------------------------------------------------------------------
              > Name: parse.txt
              > parse.txt Type: Plain Text (text/plain)
              > Encoding: base64
              

  • Relative URL in @ include file , parsing Exception

              Hello all
              I've a jsp file that includes another like
              <%@ include file="../common/common.jsp" %>
              It works fine on WL5.1 and on WL6.0sp1 as long as I don't package
              it in .war file. With the .war file I get the attached weblogic.utils.ParsingException
              exception.
              Is this a bug in WL6.0sp1? has anybody else encountered similar
              problem?
              TIA
              [parse.txt]
              

    Ashish,
              We include all our jsp's using
              <%@ include file="/common/check_active_user.jsp" %>
              This works fine without any problem in open directory deployment and also when
              we deploy as war file.
              I checked the case you mentioned (changing /common to ../common) its fails for
              me too when I made war file.
              Thanks,
              Kumar.
              ashish gupta wrote:
              > Repost : hope this formats properly.
              >
              > Hello all
              > I've a jsp file that includes another like
              > < % @ include file="../common/check_active_user.jsp" % >
              > It works fine on WL5.1 and on WL6.0sp1 as long as I don't
              > packageit in .war file.
              > With the .war file I get the attached
              > Weblogic.utils.ParsingExceptionexception.
              > Is this a bug in WL6.0sp1? has anybody else encountered
              > similar problem?
              >
              > TIA
              >
              > ------------------------------------------------------------------------
              > Name: parse.txt
              > parse.txt Type: Plain Text (text/plain)
              > Encoding: base64
              

  • Recompile after included files changed

    Hi !I use Weblogic 5.1 SP8. If i change a included file in a jsp file the weblogic server don't recognize the change and therefore there is no recompile.Does anybody know a patch for this bug in Weblogic 5.1 SP8 ?Thanks, Joerg
              

              Well, it used to work and now it doesn't - I call that busted.
              And there is code in _isStale() to detect changes to include
              files.
              Mike
              Mettu Kumar <[email protected]> wrote:
              >Kumar,
              >
              > I Believe as per JSP1.1 Spec,
              > if <%@include %> tag is used and included file is
              >modified its not a
              >must that App server need to recompile the page(Though
              >container can choose
              >to recompile).
              > If required to compile you need to use <jsp:include
              >/>.
              >
              >Thanks,
              >Kumar Mettu.
              >
              >Kumar Allamraju wrote:
              >
              >> There's a known issue where JSP compiler doesn't re-compile
              >the included
              >> jsp , if it's <%@include %> tag.
              >> Everything works fine if you use <jsp:include /> tag.
              >>
              >> Joerg Koldehoff wrote:
              >>
              >> > Hi Mettu !
              >> >
              >> > Can you give me your weblogic.properties file ? Perhaps
              >> > my weblogic configuration is the problem.
              >> >
              >> > Thanks, Joerg
              >> >
              >> > Mettu Kumar <[email protected]> wrote:
              >> > >Here is the output of my version weblogic.T3Admin
              >> > >(oon solaris m/c)
              >> > >
              >> > > WebLogic Build: 5.1.0 Service Pack 8 12/20/2000
              >> > >16:34:54 #95137
              >> > >
              >> > >I verified modifying a jsp file and it again
              >> > >compiles for me.
              >> > >
              >> > >Thanks,
              >> > >Kumar.
              >> > >
              >> > >Mike Reiche wrote:
              >> > >
              >> > >> But it is a bug in SP8 on Solaris!
              >> > >> If you don't have it, then you don't have
              >> > >SP8.
              >> > >> Or you have a patch.
              >> > >>
              >> > >> Mike.
              >> > >>
              >> > >> Mettu Kumar <[email protected]> wrote:
              >> > >> >I don't think its a bug in sp8. We are using
              >> > >> >sp8 since day one of its release and we never
              >> > >> >faced this problem.
              >> > >> >
              >> > >> >Joerg Koldehoff wrote:
              >> > >> >
              >> > >> >> Hi !I use Weblogic 5.1 SP8. If i change
              >> > >a
              >> > >> >included file in a jsp file the weblogic
              >> > >server
              >> > >> >don't recognize the change and therefore
              >> > >there
              >> > >> >is no recompile.Does anybody know a patch
              >> > >for
              >> > >> >this bug in Weblogic 5.1 SP8 ?Thanks, Joerg
              >> > >> >
              >> > >
              >
              

  • How to include a .class file in a jsp page

    hi everyone,
    i know the syntax as:
    <%@ include file = "filename.class" %>
    then at run time the server could not find the class file
    if i use,
    <%@ page import = "FileName.class" %>
    then also the same problem persists
    & if i use
    <jsp:include page = "Relative address"/>
    the problem still remains as it is...
    please help me out...i am working on developing an EJB application in which client interacts with server's Stateful session bean through a jsp page...it is necessary for me to include the home interface class file in my jsp page.
    P.S. do not suggest me to include the class file in a package & then use
    <%@ page import = "packageName.ClassFileName" %>
    i
    Edited by: Ankit_JIITU on 6 Jul, 2008 1:55 AM

    Ankit_JIITU wrote:
    i have already included the remote interface class file by <%@ page import = "University.RemoteInterfaceName" %>in my jsp page ...
    if i try to make a new package called test & then include my home interface in that package...i need to import University.*to generate the class file of my home interface ; but the class file generation is not taking place as i am getting the error..
    "package University does not exist".How can i overcome this problem. The package University, which you are trying to import, must be in the classpath. If you removed it then you will have to add it back.
    i have tried my best..but tell me if there's any possible way of including a class file in the jsp page without involving a package.No, there isn't.
    If not,then pls help me to generate the class file of my home interface within a package called test.Read the New To Java Tutorial and understand how packages work.
    >
    i am assuming that u have a deep knowledge of developing EJB applications.

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

  • How can i include a file in my JSP

    hello i have one jst who need to use an instance of a class called Part I need to include that file in my JSP but How do i do that
    How do i import my Part.java class in my JSP ???

    At the top of your JSP:
    <%@ import="package.*, package.Class" %>or you could do this:
    <%jsp:useBean class="package.Class" id="CLASS" scope="page" />or you can use a servlet as an include and have it write HTML back to the JSP:
    <jsp:include page="MyServlet">
         <jsp:param name="PARAM1" value="data1"/>
         <jsp:param name="PARAM2" value="data2"/>
    </jsp:include>

  • Include jsf file in a jsp page

    Hi Everyone,
    I have a plain jsp page with no JSF Components, but it has a jsp:include tag which is another jsp file which contains jsf components.
    When i try to run the plain jsp file ... i get the following error...
    java.lang.IllegalStateException: Cannot forward after response has been committed
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:324)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         at org.apache.jsp.DynamicWebpart_jsp._jspService(DynamicWebpart_jsp.java:278)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         at org.apache.jsp.Webpart_jsp._jspService(Webpart_jsp.java:302)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         .......... so.....on........
    I saw the source code for the plain jsp file and the error is because of including the jsp file with jsf components.
    The contents of both the jsp file is given below
    Plain jsp file
    DWStaticJSP.jsp
    <%@ page import="java.util.*" %>
    <%@ page import="com.mirus.bi.jsp.*" %>
    <%@ page import="com.mirus.bi.util.Log" %>
    <% Log.logDbg("*******before calling the faces file from DWStatic :"+rSetting.getStaticJSPFileName()); %>
    // name of the file name : /faces/report_palm.jsp
    <jsp:include page="<%=rSetting.getStaticJSPFileName()%>" flush="false" >     
                   <jsp:param name="DMode" value="DBoard" />
    </jsp:include>
    Jsp file with JSF component
    it is stored in faces folder
    /faces/report_palm.jsp
    <%@ page contentType="text/html" %>
    <%@ page import="com.mirus.bi.util.Log" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://mirus.com/jsftaglib" prefix="my" %>
    <f:view>
              <h:outputText value="Store Name:" />
              <h:outputText value="#{palmReportUIHandler.currentStoreDisplay}" />
              <h:outputText value="Year:" />
              <h:outputText value="#{palmReportUIHandler.currentYear}" />
              <h:outputText value="Month:" />
              <h:outputText value="#{palmReportUIHandler.currentMonth}" />
    </f:view>
    The Configuration in the web.xml for faces Servlet is given below
    <servlet>
    <servlet-name>FacesServlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>FacesServlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    Does anybody know the solution to this problem
    Any kind of help will be highly appreciated.
    Pinkesh

    Hi Adam Winer,
    I want to try your solution.
    just wanted some more clarification .....
    So, let's say you have:
    DWStaticJSP.jsp: plain JSP
    report_palm.jsp: JSF JSP included by DWStaticJSP.jsp
    What you should do is use an URL of:
    /faces/DWStatic.jsp
    to access the outer plain JSP (yes, even though it's not really a faces page), and then have
    /faces/DWStatic.jsp include just plain /report_palm.jsp.
    In essence, the critical thing is that the FacesServlet wraps the entire request - FacesServlet cannot run
    for just a piece of the request.My question is where should i store the DWStatic.jsp file ... As u said i should acces it using /faces/DWStatic.jsp do i need to save it in the faces folder or just in the web app root.
    I cant save the DWStatic.jsp in the faces folder as this file is used for lot of different purpose in my company application.
    So can u give me a solution where in i can keep the DWStatic.jsp in the web-root folder and still try your solution
    Also is this the right setting for facesServlet in the web.xml.
    <servlet>
    <servlet-name>FacesServlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>FacesServlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    Whatever follows below this line is the describtion of the web appp structure which i have in my company.
    We have an application where in all the jsp files are stored in the web-app root folder.....
    I will be using alphabets like a.jsp ... b.jsp .... to keep the explanation small...
    I have an a.jsp file which includes a b.jsp file which in turn includes a c.jsp......
    Now we have started using JSF.....
    Now as a developer .... i want the c.jsp to include a d.jsp file which contains JSF components...
    The thing is i cant change the location of a.jsp, b.jsp and c.jsp......
    Can u tell me how i should call " a.jsp" ... imean the url so that the "d.jsp" file gets processed properly.
    Also where should i save all the jsp files and what config is requiered in the web.xml for your solution
    I thank you for your help
    Pinkesh

  • 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?

Maybe you are looking for

  • HP Envy TouchSmart 17 second drive installation issues

    I decided to install a second hard drive beside the supplied 1TB. There is more than adequate information in this site on the required caddy system, connector, and disassembly requirements. The second drive I installed was a 630 GB model that I had p

  • Error in repository creation in OWB

    Hi Experts I m tying to create one repository REP_OWNER at my Onsite server. But at the time of creation i m getting the below error. Please suggest me the solution to overcome this. Error : java.sql.sqlexception. lo exception. coneection reset Thank

  • Sql And Report Builder

    Hi To All, I Have a Little Problem Whit a my Query created in Report Builder 6i. this is a Query : select c.id rv_cashreg_id, m.code rv_cod_shop, m.description rv_desc_shop, c.code rv_cod_cassa, c.description rv_desc_cassa, nvl(sum(decode(a.type,0, (

  • Current date -5

    Post Author: auddog CA Forum: General I'm fairly new to CR 11 as a matter of fact, I'm new to Crystal Reports in general.  I'm building a report that I wanting to run on Friday's at 7 pm.  What I'm trying to accomplish is getting the data for the cur

  • Multiple indexes on a table with various combinations

    Hi Experts, This post is similar to my previous one on indexing. am just trying to understand proper indexing strategy. Assuming that i have to use following queries frequently. select Col1, Col2, Col3 from tab where col4='some value' select Col1, Co