Import of a JSP

Hi;
How to retreive the content of a external JSP located in : C:/jsp/F1.jsp in another JSP located in the Webapp directory: ../WEB-INF/webapps/jsp/F2.jsp ?
Regards;

Hi;
Exactly but with "include" when I build a new *.war it erases the F1.jsp so I must to copy F1.jsp each time I build new war file.
Regards;

Similar Messages

  • What to import in the JSP file??

    I want to use jsp and xsl to convert xml to html in order to display the file. But I come across a problem, I don't what should be import into the jsp file. Should I import these? <%@ page import="org.xml.sax.*" %>
    <%@ page import="org.apache.xalan.xslt.*" %>
    Since I'm not very good at this field, can anybody give me some suggestion to hlep me to work it out?
    thanks~

    One thing is sure. Whatever the classes you are going to use, need to be imported in your Jsp.
    There is no need for different import statements. You can write in a single import statement (comma separated).
    So, forget about the import statements and do your coding, finally you can look at the code and decide what classes (packages) you need to import.
    I think you need to import
    org.xml.sax.*;
    org.xml.sax.helpers.*;
    import javax.xml.parsers.*;
    Hope this helps.

  • Getting import error in jsp in creating war project of masthead for portal 7.31

    Hi,
    I am getting error in customize masthead war project in jsp for import statement.
    <%@ page import="com.sapportals.htmlb.*"%>
    <%@ page import="com.sapportals.htmlb.hovermenu.*"%>
    <%@ page import="com.sap.security.api.UMFactory"%>
    <%@ page import="com.sapportals.portal.prt.service.license.ILicenseService"%>
    <%@ taglib uri="prt:taglib:tlhtmlb" prefix="hbj"%>
    I have asked basis team for jar relative to these but they have not found in system.
    We are using portal 7.31 version.
    Kindly help me to remove this error from jsp.
    Thanks in advance.

    Hi Hemendra,
    At first i have done this and after that even i was facing error that's why i created this thread.
    Kindly check my first post for error.
    Getting import error in jsp in creating war project of masthead for portal 7.31
    This question is Not Answered.(Mark as assumed answered)
    Swati Joshi  Apr 29, 2015 12:34 PM  
    Hi,
    I am getting error in customize masthead war project in jsp for import statement.
    <%@ page import="com.sapportals.htmlb.*"%>
    <%@ page import="com.sapportals.htmlb.hovermenu.*"%>
    <%@ page import="com.sap.security.api.UMFactory"%>
    <%@ page import="com.sapportals.portal.prt.service.license.ILicenseService"%>
    <%@ taglib uri="prt:taglib:tlhtmlb" prefix="hbj"%>
    I have asked basis team for jar relative to these but they have not found in system.
    We are using portal 7.31 version.
    Kindly help me to remove this error from jsp.
    Thanks in advance.

  • Having problems compiling *.java with import javax.servlet.jsp......

    I've been trying to do the tutorials in a book titled Apache Jakarta-Tomcat as part of my introduction to JSP. I'm new to Java but do know the basics. I have on my machine Java 1.3, Java 1.4, Java FrameWorks 2.1 and Jython 2.1 on Win2000 Pro. So enough about my configuration. I have never worked with packages also.
    I downloaded the files from the books site due to the fact I make a lot of typos when hand coding Java (I've become a pretty good debugger of my own code). But everytime I go to compile the *.java I get error messages. So below you will find HelloTag.java and beneath that the error messages that are thrown when I try and compile it. I tested other bits of *.java and have had no problem compiling them. Is there a JSP module I'm missing?
    Am I doing something wrong or am I missing something from my configuration.
    Marijan Madunic
    package chapter2;
    import javax.servlet.jsp.JspException;
    import javax.servlet.jsp.JspTagException;
    import javax.servlet.jsp.tagext.TagSupport;
    public class HelloTag extends TagSupport
    public void HelloTag() {
    // Method called when the closing hello tag is encountered
    public int doEndTag() throws JspException {
    try {
    // We use the pageContext to get a Writer
    // We then print the text string Hello
    pageContext.getOut().print("Hello");
    catch (Exception e) {
    throw new JspTagException(e.getMessage());
    // We want to return SKIP_BODY because this Tag does not support
    // a Tag Body
    return SKIP_BODY;
    public void release() {
    // Call the parent's release to release any resources
    // used by the parent tag.
    // This is just good practice for when you start creating
    // hierarchies of tags.
    super.release();
    D:\Java\JDK 1.3\bin>javac HelloTag.java
    HelloTag.java:3: cannot resolve symbol
    symbol : class JspException
    location: package jsp
    import javax.servlet.jsp.JspException;
    ^
    HelloTag.java:4: cannot resolve symbol
    symbol : class JspTagException
    location: package jsp
    import javax.servlet.jsp.JspTagException;
    ^
    HelloTag.java:5: cannot resolve symbol
    symbol : class TagSupport
    location: package tagext
    import javax.servlet.jsp.tagext.TagSupport;
    ^
    HelloTag.java:7: cannot resolve symbol
    symbol : class TagSupport
    location: class chapter2.HelloTag
    public class HelloTag extends TagSupport
    ^
    HelloTag.java:14: cannot resolve symbol
    symbol : class JspException
    location: class chapter2.HelloTag
    public int doEndTag() throws JspException {
    ^
    HelloTag.java:20: cannot resolve symbol
    symbol : variable pageContext
    location: class chapter2.HelloTag
    pageContext.getOut().print("Hello");
    ^
    HelloTag.java:24: cannot resolve symbol
    symbol : class JspTagException
    location: class chapter2.HelloTag
    throw new JspTagException(e.getMessage());
    ^
    HelloTag.java:28: cannot resolve symbol
    symbol : variable SKIP_BODY
    location: class chapter2.HelloTag
    return SKIP_BODY;
    ^
    HelloTag.java:37: cannot resolve symbol
    symbol : variable super
    location: class chapter2.HelloTag
    super.release();
    ^
    9 errors

    Well, it looks like you've not got the servlet development kit JAR on your classpath. I think it'll probably be called servlet.jar on your system. Add that to the classpath if it's not already there.
    Incidentally, you've bumped into one of the areas Java's slightly lenient - declaring a method that looks like a constructor:
    public HelloTag() { }
    public void HelloTag() { }The first is a constructor, the second is a normal method. I'm assuming you intended to have the former instead of the latter.
    Anyway, hope this helps.

  • Importing packages in JSP using iPlanet problem

    hi experts,
    i am new begi to iPlanet server6.0
    i have installed iPlanet6.0 in windowsNT(d:\iPlanet\servers)
    document root is d:\iPlanet\servers\Docs
    i have one jsp called test.jsp in document root dir.
    i imported one package called adminBeans in jsp file.
    i put adminBeans class folder in
    d:\iPlanet\servers\Docs\WEB-INF\classes
    whrn i am ruuning this jsp error shows as below
    ============================
    [04/Jul/2002:11:15:01] info ( 347): JSP: JSP1x compiler threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSPd:\iPlanet\Servers\https-ntserver.vsnl\config\..\ClassCache\_jsps\_test_jsp.java:15: Package adminBeans not found in import.
    import adminBeans.*;
    ^
    1 error
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
         at com.iplanet.server.http.servlet.NSServletEntity.load NSServletEntity.java:252)
         at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.java:173)
         at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:416)
    =====================================================
    do i want to set any configuration for jsp running?.
    without any import,like helloworld.jsp file is working fine.
    any idea
    plz help me ya.
    thanks in adv.
    endrum anpudan
    maruthu

    hi,
    first of all u understand the way package works
    suppose u have package named mybeans and there r classes under this folder for e.g myBeans/AdminBean and many more so ur definetly going to import the classes in this way import myBeans.*; for all classes or import myBeans.AdminBean; for single class but before doin that make sure that u have set that package path in ur environment. how will u do that ? register the path just above one folder to myBeans for e.g
    D:\myClasses in the evironment and ur myBeans folder wil reside under D:\myClasses\myBeans

  • Import javax.servlet.jsp.*;

    I am new to JSP.I getting errors in compilation.Can anyone please tell me the following import file can be found in which development kit.
    "import javax.servlet.jsp.*;

    You can download J2EE from sun's website. What you need is servlet.jar package. Put it in your CLASSPATH.

  • JAVA IOException when adding "org.jdom.*" in the list of the imports for Attributes.jsp

    Hi all,
    I am trying to use JDOM and was playing with the xml examples code(Attributes.jsp)
    for WLS6.1SP2.
    When I add the " org.jdom.* " to the list of the imports on the Attributes.jsp page
    I get a java.io.exception.
    Please HELP !!

    You didn't post the exception.
    It is probably caused by the JDOM JAR or classes not being available or an
    IO error reading them (e.g. permissions issue on Unix).
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    Clustering Weblogic? You're either using Coherence, or you should be!
    Download a Tangosol Coherence eval today at http://www.tangosol.com/
    "Gary Fields" <[email protected]> wrote in message
    news:3cd01550$[email protected]..
    >
    I believe that someone on this newsgroup has the answer....
    Come on guys/gals !!!
    "Gary Fields" <[email protected]> wrote:
    Hi all,
    I am trying to use JDOM and was playing with the xml examples
    code(Attributes.jsp)
    for WLS6.1SP2.
    When I add the " org.jdom.* " to the list of the imports on theAttributes.jsp
    page
    I get a java.io.exception.
    Please HELP !!

  • Import statement in JSP

              Hi
              I am maintaining a system done by one of our vendors.
              Application is deployed in WLS 7.0.
              When I imported the Jsp's into my IDE , I got errors where java.util classes are
              used in the JSP's and the import statement is missing.
              Most of the Jsp's are like this,
              It is working fine in the production server.
              In the IDE i am forced to put the import statement and that is what I expect.
              But how can it work in the production server without any issue.
              Can someone advise me on this
              Thanks
              DN
              

    <%@page import="java.util.calendar" %>
    Oops... forgot the "page" in there ...That's what I get for using GUI's too much!!! :)

  • Import packages in JSP

    All my files are in C:\tomcat-4.1.24\webapps\ROOT\security, and I have a test.jsp in that same directory together with my package xmlHandler (in a folder xmlHandler) which contains DOMUtil.class ...
    It seems that I have a problem with this line in my jsp file ...
    <%@ page import = "xmlHandler.DOMUtil"%>
    Tomcat keeys saying this error ...
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Since fork is true, ignoring compiler setting.
    [javac] Compiling 1 source file
    [javac] Since fork is true, ignoring compiler setting.
    [javac] /usr/local/tomcat4/work/Standalone/localhost/_/security/test_jsp.java:7: package xmlHandler does not exist
    [javac] import xmlHandler.DOMUtil;
    [javac] ^
    [javac] 1 error
    What's wrong ? I just have problem with this line only ... =(

    <%@ page import = "javax.xml.parsers.*"%>
    <%@ page import = "org.jdom.*"%>
    <%@ page import = "java.io.IOException"%>
    <%@ page import = "org.jdom.JDOMException"%>
    <%@ page import = "org.jdom.input.DOMBuilder"%>
    <%@ page import = "org.jdom.output.XMLOutputter "%>
    <%@ page import = "org.xml.sax.InputSource"%>
    <%@ page import = "org.apache.xerces.parsers.DOMParser"%>
    <%@ page import = "xmlPublisher.ws3"%>
    <html>
    <body>
    <%
    String xmlFile = request.getParameter("xmlFile");
    String formDate = request.getParameter("formDate");
    String formRisk = request.getParameter("formRisk");
    String formDesc = request.getParameter("formDesc");
    String xmlFileDir = "c:/localhost/security/" + xmlFile;
    org.w3c.dom.Document domDoc = null;
    DOMParser parser = new DOMParser();
    try{
         parser.parse(new InputSource(xmlFile));
         domDoc = parser.getDocument();
    catch(Exception e){
         e.printStackTrace();
    try{
         DOMBuilder builder = new DOMBuilder();
         org.jdom.Document jdomDoc = builder.build(domDoc);
         XMLOutputter outputter = new XMLOutputter();
         outputter.output(jdomDoc, System.out);
    catch ( java.io.IOException e){
         e.printStackTrace();
    %>
    <h1>xmlFile is <%out.println(xmlFile);%></h1>
    <h1>formDate is <%out.println(formDate);%></h1>
    <h1>formRisk is <%out.println(formRisk);%></h1>
    <h1>formDesc is <%out.println(formDesc);%></h1>
    <h1>xmlFileDir is <%out.println(xmlFileDir);%></h1>
    </body>
    </html>

  • Importing class to JSP in websphere (newbie)

    Hi I am trying to figure out how to properly import a class in a JSP.
    The DocumentRoot directory is set in Websphere and that is where my JSP's reside. I have created a folder off of the DocumentRoot directory called classes and placed my .class file in there. I then set the classes directory in the classpath (and restarted the appserver)
    I have an import statement in my jsp for the class.
    I am now getting an error that says it is unable to compile because of null. Any ideas????
    Below is a test piece of JSP code and the class code:
    <%@ page import="java.io.*, java.util.*, java.text.*, IPRStat, java.net.*,java.sql.*"%>
    <HTML>
    <BODY>
    <%
    try {
    String IPRNum = "001-0001";
    String IPRStatus = "OK";
    IPRStat Testing = new IPRStat(IPRNum, IPRStatus);
    } catch (Exception e) {
    out.println("Error detected " + e.getMessage());
    %>
    </BODY>
    </HTML>
    class IPRStat
    public IPRStat(String i, String d )
    iprnum = i;
    status = d;
    public String getIPRNum()
    return iprnum;
    public String getStatus()
    return status;
    private String iprnum;
    private String status;
    -----------------------------------------------------

    DocumentRoot (looks something like: /aibm/Userdata/WebAsAdv/default/mydev) is where my JSP's live (i.e.)
    /aibm/Userdata/WebAsAdv/default/mydev/testidea.jsp
    and I made a directory off of DocumentRoot called classes:
    /aibm/Userdata/WebAsAdv/default/mydev/classes
    And copied IPRStat.class into the classes directory.
    /aibm/Userdata/WebAsAdv/default/mydev/classes/IPRStat.class
    I then put the path (/aibm/Userdata/WebAsAdv/default/mydev/classes) in the classpath and restarted the appserver.
    At this point there is no Web-INF that I can see. I am new to Websphere myself. Is version 3.5.4 standard edition. I am using the websphere admin console to set the classpath.

  • Can't import class into JSP

    Hi,
    I am trying to import a class into my JSP and am getting the following error at runtime:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file
    [javac] D:\jwsdp-1.2\work\Catalina\localhost\pe\org\apache\jsp\guestbook_jsp.java:7: '.' expected
    [javac] import MessageGetter;
    My import statement in the JSP is simply:
    <%@ page import="MessageGetter" %>
    and I am placing the class in the WEB-INF/classes directory. This is stumping me - if you've come across this or a similar problem, please let me know. Thanks.
    P

    Try posting your question in the JSP forum (http://forum.java.sun.com/forum.jsp?forum=45)
    cheers,
    Mike

  • Import xobject in JSP not working

    Hi,
    i am trying to pass some feugo business objects as JSPattributes.
    first i am importingthe classes
    <%@page import="xobject.com.comp.proj.BO.MyBPMObject"%>
    and then i am trying to assign the attributes
    <% MyBPMObject o = (MyBPMObject) request.getAttribute("myObject"); %> as suggested in the thread
    Re: JSP and Instance Variables
    However while compiling the jsp is throwing an error- package xobject.com.comp.proj.BO not found
    Can you please help me out?
    ---

    When I have instance variables in addition to the one specified as the selected BPM Object variable I use the 'attributes' argument mapping.
    You can set an 'in' argument called 'attributes' and map a list of instance variables. Example below:
    attributes = [ "jspVarName1" : instVar1, "jspVarName2" : myObject.getData ]
    You can then access these vars in your jsp as normal i.e. ${jspVarName1}
    Hope it helps,
    Mike.

  • Import interfaces in jsp

    Hi, all.
    I'm new with EJB and try to test something in order to get to know EJB.
    I just faced with some problem. I am trying to solve this for couple hours now..
    Here is the problem.
    I get this error when I compile jsp file.
    C:\Documents and Settings\Administrator\TestEApps\TestEApps-war\build\generated\src\org\apache\jsp\actionForm_jsp.java:8: '.' expected
    import HelloEJBRemoteHome;
    C:\Documents and Settings\Administrator\TestEApps\TestEApps-war\build\generated\src\org\apache\jsp\actionForm_jsp.java:9: '.' expected
    import HelloEJBRemote;
    Here is the source code for this.
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@page import="javax.naming.*"%>
    <%@page import="javax.rmi.PortableRemoteObject"%>
    <%@page import="HelloEJBRemoteHome"%>
    <%@page import="HelloEJBRemote"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <%
    String text;
    try{
    text = request.getParameter("name");
    }catch(Exception e){
    text = null;
    Context initial = new InitialContext();
    Object obj = initial.lookup("HelloEJBBean");
    HelloEJBRemoteHome home = (HelloEJBRemoteHome)PortableRemoteObject.narrow(obj,HelloEJBRemoteHome.class);
    HelloEJBRemote hello1 = home.create();
    out.println("Hello," & hello1.getHello());
    %>
    </body>
    </html>
    and here is the configuration file
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    <display-name>TestEApps-EJBModule</display-name>
    <enterprise-beans>
    <session>
    <display-name>HelloEJBSB</display-name>
    <ejb-name>HelloEJBBean</ejb-name>
    <home>Hello.HelloEJBRemoteHome</home>
    <remote>Hello.HelloEJBRemote</remote>
    <ejb-class>Hello.HelloEJBBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Bean</transaction-type>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>HelloEJBBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    What's wrong with this?
    Thank you.

    Hmm try doing your context like this....
    InitialContext ctx = new InitialContext();
    HelloEJBRemoteHome  home = (HelloEJBRemoteHome ) PortableRemoteObject.narrow(ctx.lookup("ejb/HelloApp/HelloEJB"),HelloEJBRemoteHome.class);Note.... A EJB application has these classes..
    HelloEJB.java
    HelloEJBBean.java
    HelloEJBRemote.java
    HelloEJBRemoteHome.java
    So you have to set up the Context in a way of ejb/HelloApp/HelloEJB
    Which ejb is standard, and HelloApp is the application name localhost:8080/HelloApp/ and HelloEJB is the HelloEJB.java class
    REmember that HelloEJB.java extends the EJB Object so that the EJB Interface will take care of all the remote...
    You have to organize your EJB beans and Home Locals and Remotes... It is a bit complicated telling you what is wrong if we don't know your full structure...
    But thats the taste of it

  • Problem when use multiple c:import jstl on jsp on Tomcat 5.0

    I have jsp that use multipe import jstl tag. I was able to run on the Tomcat 5.5.9. When I deploy it on Tomcat 5.0.28, it is not working.
    For example:
    <c:import url="/jsp/page1.jsp" />
    <c:import url="/jsp/page2.jsp" />
    I look at Tomcat cache directory and I only see page1.jsp compiled but not page2.jsp. I look at the catalina.out log file and the error message shows below. I thought JSTL is working for Tomcat 5.x up. Do anyone have any idea? Please help.
    Thanks.
    java.lang.ArrayIndexOutOfBoundsException: 204
         at org.apache.jasper.compiler.JspReader.peekChar(JspReader.java:164)
         at org.apache.jasper.compiler.JspReader.isSpace(JspReader.java:357)
         at org.apache.jasper.compiler.JspReader.isDelimiter(JspReader.java:440)
         at org.apache.jasper.compiler.JspReader.parseToken(JspReader.java:405)
         at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1285)
         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1560)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         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:802)
         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:704)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
         at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(Unknown Source)
         at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(Unknown Source)
         at org.apache.jsp.jsp.offermgmt.ajax.ajaxPromotion_jsp._jspx_meth_c_import_1(ajaxPromotion_jsp.java:218)
         at org.apache.jsp.jsp.offermgmt.ajax.ajaxPromotion_jsp._jspService(ajaxPromotion_jsp.java:70)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         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:802)
         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.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

    Can you access page1 and page2.jsp correctly on their own?
    ie could the problem be with page2.jsp rather than the import command?

  • Is it possible to send the packae name inside a import as a jsp expression

    Hi,
    I am using jsp pages
    <% @ page import="package names"%>
    How i can pass the package names as a jsp expressions
    Regards,
    ahamad

    I am doing templates.I am forwarding the request
    from other pages to the same page.At that case i
    neeed to change the value which is in import
    attribute.
    Is it possible to avoid hard-coded value inside a
    import attribute.Only by preprocessing the sources. But why would you need to change just an import statement? Wouldn't you have to replace all class references as well?

  • Importing class or jsp:useBean option

    Hi,
    I am bit confused as when to use between "beanClasses" or "tag librery" or "simple java classes useing import". as far as i feel all are capable of doing almost each others task (i.e excuting a method to process something). can anyone help me in understanding this

    Well, first, if I understand correctly,
    "simple java classes useing import"Would be using scriptlets to do the job. It is always best to avoid scriptlets, and the best way to do that is to
    use javabeans. So I would say use "beanClasses" over "simple java classes useing import" whenever humanly possible.
    On the other hand, I use tags and beans for different reasons. I use beans to transport data from one spot to another, such as through pages and requests, or to access non-display logic, like getting data from a database. I use tags mainly for complex display operations.
    For instance, lets use the oft-asked Paging question. I have a database with 500 records. I want to display 20 at a time in a JSP. I would use a Bean to get the information (and store it in a List of another Bean type). Then I would use a tag to do the [prev] 1 2 3 4 5 6 7 8 9 10 ... [next] display and links.
    Hi,
    I am bit confused as when to use between
    "beanClasses" or "tag librery" or . as far as i feel all are
    capable of doing almost each others task (i.e
    excuting a method to process something). can anyone
    help me in understanding this

Maybe you are looking for

  • Instrument I/O assistant configuration dialog box does not appear

    Hello, In the function pallette both input and output subpallettes have instrument assistant express vi.But, when I put in the block diagram window Instr I/O assistant configuration dialog box doesnot appear.I double clicked instr assistant icon but

  • Getting started: how to connect to "tutorial-chat" via AIR app

    Hi,<br />I've gone through the blaze ds "getting started" article and successfully got the chat application working.<br /><br />I now am trying to connect a test AIR app to that same tutorial-chat destination, but am having issues. How do i properly

  • How to determine old price

    Hi, My client sends material from manufacturing plant to depots. While such stock transfer they have one price, say 1000. Now material is received at depot and lies there. After some time price is changed, say from 1000 to 2000. Now again this materi

  • From DVD to Youtube?

    My son has a Imovie which I have burnt onto a disk and deleted the original file. He wants to upload it to Youtube, we can't figure out how to do this. Any ideas?

  • Archiving Objects  for sales docuements in document flow

    i want to be able to from the sales document flow ,i.e sales order, billling document be able to find the arciving objects?  were do i need to look to find the archving objects? cheers