Including file in Servlet

I want that despite writing repeatedily the code for db connectivity I should make one file and just include it to my each servlet file to connect db
plz help

Do you mean storing the connection parameters in a
file and using it in servlets repeatedly?
If that is the case then you should use Properties
class.
Properties p = new Properties();
p.load(new FileInputStream("db.properties"));
Class.forName(p.getProperty("driver"));
Connection
con=DriverManager.getConnection(p.getProperty("url"),p
.getProperty("user"),p.getProperty("password"))
store the properties in a file as
driver=
url=
user=
password=
thanks for your reply
this code even bigger than db connecting code so why I use this if I have to spend the same time
Can v make a file and import it or other solution

Similar Messages

  • Problem to include java script file in servlet

    I couldn’t use any functions included in java servlet file using servlet. I made a test in jsp and it work fine but in servlet not.
    Here my code
    out.println("<jsp:include page=\"C:/path/file.js\" flush=\"true\" />");
         or          
         out.println("<script language=\"javascript\" src=\"c:/path/file.js\">");
    Although was no error but using both didn’t let me use any function inside the java script file. As I said using the same command in JSP works fine.
    How I can include the file.js correctly ?

    [email protected] wrote:
    server machineOK, imagine that I am the server and you are the client.
    I have a file "c:/documents and settings/balusc/passwords.txt".
    So now you have the path. Can you tell me the contents of the file?

  • How can i include a jsp file in servlet?

    hi
    i generate a dynamic page from servlet.
    i need to include a jsp file in same servlet.
    i try like this --
    out.println("<HTML>");
    out.println("<HEAD><TITLE>First</TITLE></HEAD>");
    out.println("<BODY>");
    out.println("<%@ include file=\"abc.jsp\">");
    out.println("<FORM>");
    out.println("</FORM>");
    out.println("</BODY>");
    out.println("</HTML>");

    Replace your line with
    RequestDispatcher rd = request.getRequestDispatcher("abc.jsp");
    rd.include(request, response);

  • 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 change the filename in @include file?

    I want to do a checking before deciding to include which file,
    for example,
    <%
    if(isValid){
    %>
    <%@ include file="abc.jsp" %>
    <%
    else{ %>
    <%@ include file="def.jsp" %>
    <% } %>but the code above doesnt work in my JSPs
    any idea how to solve this?
    thanks
    Desmond

    Am i clear?? pls correct me if i am wrong..You are wrong.
    The include directive is being used here, which is a compile time include, not a runtime include. Both includes will be performed before the resulting servlet is compiled.
    If they have a conflict between them (either by not nesting them in their own { scope } or using <%! declarations %>) then the generated servlet will fail to compile.
    So if you had the following:
    abc.jsp:
    Hello from ABC!
    <% String myVar = "ABC"; %>def.jsp:
    Hello from DEF!
    <%  String myVar = "DEF";  %>And the page as mentioned in the original post, you would end up with a Servlet something like this:
    if (isValid){
       out.println("Hello from ABC!");
        String myVar = "ABC";
    else{
       out.println("Hello from DEF!");
      String myVar = "DEF";
    }This example would compile because of the presence of the braces.
    However removing the braces or using a <%! declaration %> would probably screw things up with a compile error.
    The %Include directive is like a copy/paste into a JSP before you compile it.
    The <jsp:include> is evaluated at runtime and copies in the result of executing the page.
    The difference is quite subtle, but very important.
    Cheers,
    evnafets

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

  • %@ include file= ... does not work properly in Portal

    I am devloping a portlet based on a jsp that uses some <%@include ..> tags. I have
    a problem in that variables declared and used in one jsp is not visible in a jsp
    that is included later on. Also, the scope of the page import tag of the main
    jsp does not cover the included jsp's.
    <%@ page import="javax.servlet.* ......>
    <%@ include file="variables.jsp" %> // Classes imported above are not recognised
    in this jsp
    <%@ include file="code.jsp" %> // Variables declared and used in variables.jsp
    are not visible here
    The exact same code runs very well in a Tomcat container (as pure jsp, not portlet)
    Can anybody help here please?

    Geir -
    I have the same problem. If you do solve it, please post it to this thread.
    Thanks
    Kunal
    "Geir Willumsen" <[email protected]> wrote:
    >
    I am devloping a portlet based on a jsp that uses some <%@include ..>
    tags. I have
    a problem in that variables declared and used in one jsp is not visible
    in a jsp
    that is included later on. Also, the scope of the page import tag of
    the main
    jsp does not cover the included jsp's.
    <%@ page import="javax.servlet.* ......>
    <%@ include file="variables.jsp" %> // Classes imported above are not
    recognised
    in this jsp
    <%@ include file="code.jsp" %> // Variables declared and used in variables.jsp
    are not visible here
    The exact same code runs very well in a Tomcat container (as pure jsp,
    not portlet)
    Can anybody help here please?

  • 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 file="filename" % error

    Hello,
    I'm working with WebSphere on OS/390 and get the following error when trying to use the include directive:
    Error 500
    An error has occured while processing request:http://eweb.stl.disa.mil:8190/stl/index.jsp
    Message: Server caught unhandled exception from servlet [jsp]: JSP:/index.jsp: 31,13: Attribute
    include has no value.: 31,13: Attribute include has no value.
    Target Servlet: jsp
    The actual statement on line 31 is:
    <%@ include file="banner.jsp" %>
    Do you know how to solve this? I've also tried the XML variants <jsp:include ... /> and <jsp:directive.include ... /> which do not error out but also does not include the page.
    Thanks,
    John

    I thought the syntax is like this:
    <%@include file="banner.jsp" %>
    NOT
    <!@
    You are right.. that was a cut and paste (ooh man.. not again...) error from the title of the original post..!!!!!

  • Dynamic  include file question

    I need to use dynamically generated file names in my <%@ include file="" %> directive.
    I am using objects (such as database connection) in the files included which I created in my base JSP file. For this reason, I cannot use the jsp:include tag (since these objects are not defined in these files, the servlet doesn't compile).
    Are there any ways of using these dynamic names in this directive?

    If you are dymically generating the file, then store it in a string and then include it?
    String dynamicallyGeneratedFileName = (however you are generating the file name);
    <%@ include file="<%=dynamicallyGeneratedFileName%>" %>

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

  • Jspf (jsp include file) not recognized

              It looks like weblogic doesn't recognize the jspf extension as belonging to "fragments
              of JSP code that will be incorporated using a static include" as recommended by
              the JSP 1.2 spec. That means that such included files are treated as static text,
              not compiled.
              Does anyone know how to teach wls about this extension?
              Ray
              

              Nothing in the JSP Specification indicates that jspf extensions should be used for
              static includes, it only address the naming convention. I think it's relevant to
              point out that a dynamiclly included jspf-ragment is not a top level page.
              In Tomcat 4.x this is achived by adding a servlet mapping from *.jspf to the jspservlet
              in the default web.xml file.
              Where can I add an extra mapping from *.jspf to whatever *.jsp is mapped to in Weblogic
              6.1sp1?
              Thanks // Torben
              Robert Patrick <[email protected]> wrote:
              >..jspf files are pieces of a jsp and are never inteneded to be translated
              >
              >into a JSP outside the context of another JSP file. Therefore, .jspf
              >files should only be included using static includes (like #include in
              >C/C++). A dynamic include means that the included page is compiled and
              >
              >executed as a stand-alone JSP and its output is included in the output
              >stream of the including JSP.
              >
              >Hope this helps,
              >Robert
              >
              >Ray Schnitzler wrote:
              >
              >> What about dynamic includes? Should I expect them to be treated as jsp?
              >>
              >> "Alex Worden" <[email protected]> wrote:
              >>
              >>>If you statically include any file into a top-level .jsp file, its contents
              >>>will be treated as JSP. That includes .jspf files. So, this is supported
              >>>since WLS5.1 !
              >>>
              >>>Why are you not seeing this behavior I wonder? Static includes are just
              >>>in-lined into the including page and compiled as JSP code....
              >>>
              >>>Can you send me an example that doesn't work for you?
              >>>
              >>>Thanks,
              >>>
              >>>Alex
              >>>
              >>>
              >>><[email protected]> wrote in message news:[email protected]...
              >>>
              >>>>WLS 6.x supports the JSP 1.1 spec. ( see below). For JSP 1.2 see WLS
              >>>>
              >>>7.x
              >>>see
              >>>
              >>>>below) . The JSP 1.2 final release is very new and I am sure keeping
              >>>>
              >>>up
              >>>with the
              >>>
              >>>>constantly evolving space is difficult for any product.
              >>>>--------------------
              >>>>
              >>>>http://e-docs.bea.com/wls/docs61/jsp/intro.html
              >>>>http://e-docs.bea.com/wls/docs70/jsp/intro.html#49347
              >>>>---------------------------
              >>>>"Ray Schnitzler" <[email protected]> wrote:
              >>>>
              >>>>>It looks like weblogic doesn't recognize the jspf extension as belonging
              >>>>>to "fragments
              >>>>>of JSP code that will be incorporated using a static include" as
              >>>>>
              >>>recommended
              >>>
              >>>>>by
              >>>>>the JSP 1.2 spec. That means that such included files are treated
              >>>>>
              >>>as
              >>>
              >>>>>static text,
              >>>>>not compiled.
              >>>>>
              >>>>>Does anyone know how to teach wls about this extension?
              >>>>>
              >>>>>Ray
              >>>>>
              >>>>>
              >>>
              >>
              >
              

  • Pls tell me use %@ include file="myfile.jsp"% with endcoding UTF-8??

    My jsp pages use some endcoding as UTF-8.
              When I use <%@ include file="myfile.jsp"%> endcoding lose format UTF-8. But
              if I use <jsp:forward page="myfile.jsp"/> it work fine.
              Pls tell me use <%@include %>
              (I use Jbuilder 6 and weblogic server 6.1)
              Thanks .
              

    From http://java.sun.com/products/jsp/tags/12/syntaxref1214.html#8828 (emphasis mine):
    page="{ relativeURL | <%= expression %> }"
    The relative URL that locates the resource to be included, or an expression that evaluates to a String equivalent to the relative URL.
    The relative URL looks like a pathname--it cannot contain a protocol name, port number, or domain name. The URL can be absolute or relative to the current JSP page. If it is absolute (beginning with a /), the pathname is resolved by your web or application server.
    You could use a servlet in your "path" attribute and have that servlet read and return the page from a different server; there are ways to do what you want, but <jsp:include> isn't one of them.

  • Error in compiling: file javax\servlet\jsp\PageContext.class not found

    Hi,
    i'm getting an error when I'm trying to compile an java file. The error is as follows:
    cannot access javax.servlet.jsp.PageContext
    file javax\servlet\jsp\PageContext.class not found
    Isn't the javax package included in jdk? I've installed jdk 1.3.1_03 and j2re1.4.0_02. Shouldn't this PageContext.class be automatically loaded when i've installed jdk?
    I'm getting desperated! I've tried almost everything: i've changed the classpath, moved the directory of the java file I'm trying to compile over and over but i'm getting no success!
    Any help is very welcome!
    Thankx,
    Nuno.

    hmmm... i had a look and it seems that what you are trying to "import" is actually in a package... instead of import try:
    package javax.servlet.jsp;you may need to go download this "package" and complile it in the directory you are working in.
    my advice: try the above statement (which does compile for me), if it doesn't work, you will need to find the source code for this package and compile it just like you do any other source code.
    hope this helps.

  • Include file not executing

    Hi guys,
    I have a strange problem using the jstl... An included file is not executing.
    My code
    main.jsp
    <%@taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c" %>
    <html>
         <head>
              <title><c:out value="${article.title}" /></title>
              <link rel="stylesheet" type="text/css" href="webber.css">
         </head>
         <body>
              <table width="100%" border="0">
                   <tr>
                        <td width="200">
                              <jsp:include page="navitem.jsp" flush="true"/>
                        </td>
                        <td>
                             <h3><c:out value="${article.title}" /></h3>
                             <c:out value="${article.text}" escapeXml="false" />
                        </td>
                   </tr>
              </table>
         </body>
    </html>navitem.jsp
    <table width="100%" border="0">
         <c:forEach var="nI" items="${navItem}">
         <tr>
              <td>
                   <a href="<c:out value="${nI.navToURL}" />"><c:out value="${nI.displayText}" /></a><br />
              </td>
         </tr>
         </c:forEach>
    </table>and the resultant html as seen in view source from the browser...
    <html>
         <head>
              <title>My First Test Article</title>
              <link rel="stylesheet" type="text/css" href="webber.css">
         </head>
         <body>
              <table width="100%" border="0">
                   <tr>
                        <td width="200">
                              <table width="100%" border="0">
         <c:forEach var="nI" items="${navItem}">
         <tr>
              <td>
                   <a href="<c:out value="${nI.navToURL} />"><c:out value="${nI.displayText}" /></a><br />
              </td>
         </tr>
         </c:forEach>
    </table>
                        </td>
                        <td>
                             <h3>My First Test</h3>
                             <p>It is the simplest of things.</p>
                        </td>
                   </tr>
              </table>
         </body>
    </html>As you can see, the code in main.jsp is executing fine, but not the code in navitem.jsp. Does anyone have any clues as to why this is happening?
    Thanks in advance
    Elija

    Whoops I think I missed
    <%@taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c" %>
    from navitem.jsp
    however putting that in and trying again results in
    org.apache.jasper.JasperException: javax/servlet/jsp/jstl/core/LoopTagSupport
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
         at vss.servlets.ControllerServlet.forwardToJSP(ControllerServlet.java:64)
         at vss.servlets.ControllerServlet.doFind(ControllerServlet.java:59)
         at vss.servlets.ControllerServlet.doGet(ControllerServlet.java:38)
         at vss.servlets.ControllerServlet.doPost(ControllerServlet.java:32)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    root cause
    javax.servlet.ServletException: javax/servlet/jsp/jstl/core/LoopTagSupport
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:822)
         at org.apache.jsp.showarticle_jsp._jspService(showarticle_jsp.java:67)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
         at vss.servlets.ControllerServlet.forwardToJSP(ControllerServlet.java:64)
         at vss.servlets.ControllerServlet.doFind(ControllerServlet.java:59)
         at vss.servlets.ControllerServlet.doGet(ControllerServlet.java:38)
         at vss.servlets.ControllerServlet.doPost(ControllerServlet.java:32)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)Any clues as to what I'm doing wrong?
    Thanks in advance
    Elija

Maybe you are looking for