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

Similar Messages

  • Importing of material revaluation using DTW problem

    Hello,
    I tried to import a material revaluation using DTW because i want to make amendment in cost price so i use the 2 templates (material revaluation & material Revaluation_lines). Uploading was successful because i received this message "75oMaterialRevaluation" however i've checked in TEST database but still the original cost price didnt change. Please can you advise me on this? See the details below
    RecordKey   DocEntry Comment                       DocDate      JournalMemo
           1                      1     Correction of price      20100518     20100518
    Details
    RecordKey   LineNum  ItemCode      New Price   RevaluationDecrementAccount  RevaluationIncrementAccount
         1                    1        S0039N232     10.5                  7-01000000                                       4-90100000
    Please let me know if the above details are correct?
    Thank you.
    Jeff
    Edited by: zhay_jeff on May 18, 2010 5:43 AM

    Try two changes:
    DocEntry should be blank.  Linenum should be 0 to start.
    Thanks,
    Gordon

  • 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 packages in JSP

    Hi everybody !
    I am trying to get a JSP page to access some java files I have placed in a package, by using the import statement at the top of the JSP page, i.e. <%@page import="x.y.z.*"%>
    So far so good, everything compiles and looks good, but when I try to run the JSP page in the browser, I'm told that the package 'x.y.z' does not exist, and that the classes can not be understood.
    The JSP server is running fine, I'm using Resin, and have set it up to use the directory where my JSP files is stored, so that should be OK !!
    Is there anybody who can help me out, it may have something to do with the mounting points in netbeans, but I don't have a clue---!!??
    Sincerely T.

    Hi,
    My only suggestion is temporarily add these files to your classpath, or copy them to a place where you have the classpath already set. If this doesn't work, then I'm not sure.
    best,
    kev

  • Problem in import ejb package in jsp

    Hi friends
    I am doing one small project with Eclipse Europa,jsp , EJB. with XDoclet, weblogic server
    I first created all my jsp files as one project.Then i created one enterprise application project with XDocklet , after that i imported all the jsp files using import option in eclipse.
    at development time i am not getting any problem.after deployment when i try to run the jsp files i am getting error of
    Compilation of 'C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java' failed:
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:20: package order.headsess does not exist
    probably occurred due to an error in /jspPages/testing.jsp line 8:
    <%@page import = "order.headsess.*" %>
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:51: cannot resolve symbol
    probably occurred due to an error in /jspPages/testing.jsp line 21:
    HeadHome home = null;
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:52: cannot resolve symbol
    probably occurred due to an error in /jspPages/testing.jsp line 22:
    Head remote =null;
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:226: cannot resolve symbol
    probably occurred due to an error in /jspPages/testing.jsp line 96:
    home =HeadUtil.getHome(env);
    Full compiler error(s):
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:20: package order.headsess does not exist
    import order.headsess.*; //[ /jspPages/testing.jsp; Line: 8]
    ^
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:51: cannot resolve symbol
    symbol : class HeadHome
    location: class jsp_servlet._jsppages.__testing
    HeadHome home = null; //[ /jspPages/testing.jsp; Line: 21]
    ^
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:52: cannot resolve symbol
    symbol : class Head
    location: class jsp_servlet._jsppages.__testing
    Head remote =null; //[ /jspPages/testing.jsp; Line: 22]
    ^
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:226: cannot resolve symbol
    symbol : variable HeadUtil
    location: class jsp_servlet._jsppages.__testing
    home =HeadUtil.getHome(env); //[ /jspPages/testing.jsp; Line: 96]
    ^
    4 errors
    Fri Oct 26 01:40:14 GMT+08:00 2007

    Hi friends
    I am doing one small project with Eclipse Europa,jsp , EJB. with XDoclet, weblogic server
    I first created all my jsp files as one project.Then i created one enterprise application project with XDocklet , after that i imported all the jsp files using import option in eclipse.
    at development time i am not getting any problem.after deployment when i try to run the jsp files i am getting error of
    Compilation of 'C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java' failed:
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:20: package order.headsess does not exist
    probably occurred due to an error in /jspPages/testing.jsp line 8:
    <%@page import = "order.headsess.*" %>
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:51: cannot resolve symbol
    probably occurred due to an error in /jspPages/testing.jsp line 21:
    HeadHome home = null;
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:52: cannot resolve symbol
    probably occurred due to an error in /jspPages/testing.jsp line 22:
    Head remote =null;
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:226: cannot resolve symbol
    probably occurred due to an error in /jspPages/testing.jsp line 96:
    home =HeadUtil.getHome(env);
    Full compiler error(s):
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:20: package order.headsess does not exist
    import order.headsess.*; //[ /jspPages/testing.jsp; Line: 8]
    ^
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:51: cannot resolve symbol
    symbol : class HeadHome
    location: class jsp_servlet._jsppages.__testing
    HeadHome home = null; //[ /jspPages/testing.jsp; Line: 21]
    ^
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:52: cannot resolve symbol
    symbol : class Head
    location: class jsp_servlet._jsppages.__testing
    Head remote =null; //[ /jspPages/testing.jsp; Line: 22]
    ^
    C:\bea\weblogic81\samples\domains\examples\.\examplesServer\.wlnotdelete\extract\examplesServer_loginProcess_WebContent_login\jsp_servlet\_jsppages\__testing.java:226: cannot resolve symbol
    symbol : variable HeadUtil
    location: class jsp_servlet._jsppages.__testing
    home =HeadUtil.getHome(env); //[ /jspPages/testing.jsp; Line: 96]
    ^
    4 errors
    Fri Oct 26 01:40:14 GMT+08:00 2007

  • Problem with JSP using bean packaged in jar file

    Hi,
              I am trying to use a java bean in a jsp file. The java bean is packaged
              into a jar file. I am getting class not found compilation error. If the
              bean remains to be a seperated class file, everything work well.
              Does anyone know how I can use bean in a jar file within jsp , i.e. to
              allow the bean to be found during compilation ?
              Thanks,
              Terence.
              [email protected]
              

    Jacek,
              Thanks for replying.
              My JSP's are just files in my document root . However, I found a solution to
              my
              problem. That is to have the jar file defined in my weblogic.class.path. I may
              have missed some files in my original jar file which causes my problem.
              Mayby I should package everything into a web application for deployment. That
              will be my next step.
              Thanks anyway.
              Terence.
              Jacek Laskowski wrote:
              > Terence Lai wrote:
              > >
              > > Hi,
              > >
              > > I am trying to use a java bean in a jsp file. The java bean is packaged
              > > into a jar file. I am getting class not found compilation error. If the
              > > bean remains to be a seperated class file, everything work well.
              >
              > How do you use the JSP file ? Is it a part of web application ? If so,
              > the bean jar package should be located in WEB-INF/lib directory. It's
              > also recommended to put the bean class into a package, so it's not in
              > 'unnamed' package, and <jsp:useBean> can find it.
              >
              > >
              > > Does anyone know how I can use bean in a jar file within jsp , i.e. to
              > > allow the bean to be found during compilation ?
              >
              > see above.
              >
              > > Terence.
              >
              > Jacek Laskowski
              > HP Consulting
              

  • 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 class in a jsp using Tomcat

    Hello All,
    Using Tomcat:
    I have class here:
    examples/WEB-INF/classes/ package/myclass.class
    I have a .jsp here:
    examples/JSPFolder/myjspfile.jsp
    I want to import the class into the jsp.
    I have tried the following combinations of importy lines based on previous posts on these boards and each have failed with same error:
    Unable to load class for JSP
    <%@ page import="myclass" %>
    <%@ page import="myclass.*" %>
    <%@ page import="package.myclass" %>
    <%@ page import="package.myclass.*" %>
    <%@ page import="WEB-INF/classes/package/myclass%>
    I have seen a number of posts for this same problem, and have tried those solutions as well, but none work. I am sure that this is simply a problem of finding the right directory, as I can successfully run the .jsp file iwhen I remove the import line.
    Can someone please help?

    There is a folder for shared packages
    tomcat_root\lib; or
    tomcat_root\common
    also most versions have a lib or common folder for each webapp for packages that are not to be shared.
    tomcat_root\webapps\appname\web-inf\lib
    Agreed that it is strange to allow servlets to import from the classes foler but not JSPs. It should make no difference but it is convension to place single classes in the same folder as the app's directory and packages (especially jar's) in the lib directory.

  • JavaBeans in JSP on iPlanet server problem

    Hi-
    I have deployed several JSPs, but this is my first attempt at using JavaBeans in the pages. We are using the iPlanet 4.1 web server.
    The following is my JSP code (MyTest.jsp):
    <html>
    <head>
    <title> Test case</title>
    </head>
    <body>
    <jsp: useBean id="myBean" class="Beans.MyBean" />
    </body>
    </html>
    The following is the bean code:
    package Beans
    public class MyBean {
    private String message = "No Message";
    public String getMessage() {
    return(message);
    public void setMessage(String message) {
    this.message = message;
    I have the JSP and bean in the same directory. I'm not clear on where to put it on an iPlanet server. The bean compiles fine, and iPlanet seems to be able to see it. However, when I compile the JSP I get the following error on iPlanet:
    recompiling JSP file: /<dir path>/Beans/MyTest.jsp
    JSP compilation error: java.lang.Exception: JSP parse error (line24) - Incomplete tag ending of /jsp:useBean, stack: java.lang.Exception: JSP parse error(line 24) - Incomplete tag ending of /jspuseBean
    I've looked through several books and the JSP coding to useBean looks fine. Is this error related to iPlanet? Is it tied to the directory structure? We are using JDK1.3, is it set up for JavaBeans - or do we need to download some other files?
    Any help is welcomed!
    Thanks,
    Leilani

    Leilani,
    Have you got your JSP and beans to work. I'm having a similar problem. I am getting the following error when trying to load the JSP:
    [10/Dec/2001:11:46:42] info ( 1688): Internal Info: loading servlet /wacc/jsp/pickProgram.jsp
    [10/Dec/2001:11:46:47] info ( 1688): JSP: JSP1x compiler threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSPC:\iPlanet\Server4\https-wacc\config\..\ClassCache\_jsps\_wacc\_jsp\_pickProgram_jsp.java:86: Undefined variable or class name: menu
    menu.setUserId(userId);
    ^
    1 error
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:260)
         at com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:230)
         at com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java:149)
         at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:463)
    [10/Dec/2001:11:46:47] warning ( 1688): Internal error: Failed to get GenericServlet. (uri=/wacc/jsp/pickProgram.jsp,SCRIPT_NAME=/wacc/jsp/pickProgram.jsp)
    My iPlanet "Configure JVM Attributes" has the path to the beans directory (I have also tried adding it to the Windows CLASSPATH variable):
    C:\dir\dir\beansdir;
    and here is the JSP code snippet:
    <%@ page info="Pick Program into page" %>
    <HTML>
    <HEAD>
    </HEAD>
    <BODY BGCOLOR="#ffffff">
    <USEBEAN name="menu" type=ford.wacc.beans.Menus lifespan=page></USEBEAN>
    <%
    PrintWriter myOut = response.getWriter();
    // get logged in user id
    String tmpStr = "userid";
    String userId = tmpStr.toUpperCase();
    // store user id in bean
    try {
    menu.setUserId(userId);
    } catch (Exception ex) {
    // global variables
    String[] menuItems = null;
    %>
    <%= tmpStr %>
    <%= userId %>
    </BODY>
    </HTML>
    I believe I have my iPalnet server configured correctly but it seems to me that it is a path problem. If anyone can point me in the right direction, I'd appreciate it. Thanks.

  • How to use JPublisher generated package in JSP

    I am finding difficulty in using JDeveloper genereted (Using JPublisher) package ( from PL?SQL packages of Oracle) using in JSP . can any body help
    Prashant

    Can you be more specific on what you are doing and what problem you are facing.
    You can refer JPublisher documentation here.
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/java.920/a96658/toc.htm
    JPub help with Jdeveloper
    http://otn.oracle.com/jdeveloper/help/
    Go to using SQL in Java Programs ->Accessing Oracle Objects and PL/SQL Packages using Java
    Also you can see how JPub generated classes can be used in SQLJandJPublisherSample at following url. You can apply similar concept for JSPs.
    http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/9i_sqlj/9i_sqlj.html
    Chandar

  • Problem in importing package

    i am new to java and facing problems in importing package which are self made.
    secondly does JDK 1.1.3 can support swing

    Hi,
    I had some problems myself. I will add few lines, maybe it helps:
    OK, let's assume that you work in a directory. In this case, set classpath to this hierarchy as well as to "." ('this' hierarchy - like in DOS).
    Now, assume that you want to use packages MyPack1 and MyPack2. The source files of classes belonging to MyPack1 must:
    - start with command
    package MyPack1;
    - be located all in the directory MyPack1
    (and the same for MyPack2, of course)
    If you want to use MyPack1 within MyPack2, you have to include:
    import MyPack1.*;
    even though MyPack1 is, in fact, located on path: ../MyPack1/*
    (trust the classpath is important here)

  • Problem loading resources file in JSP using f:loadBundle

    Hi,
    We are facing problem while loading our properties file in JSP using f:loadBundle.we tried the following way
    <f:loadBundle basename="resources.ApplicationResource" var="msg"/>
    This properties file is src java folder and also in WEB-INF-->classes->resources folder
    but even then its not able to load.I made an entry in the faces-config for message-bundle. But of no use.
    Any pointers would be of great help.

    does your file calls
    ApplicationResource.properties ?
    If so is it in
    the package resources ?

  • How to import a package in jsp

    i've searching here and i've not found answer to this, so i write it here.
    i've created a class to send mail, it imports the javax.mail.* and javax.activation.*, in a package named jspbeans.
    now, when i try to use this package in my jsp page (using tomcat), gives me the error:
    Package jspbeans not found in import
    import jspbeans.*;
    the code for my jsp page is:
    <%@ page language="java" %>
    <html>
    <head>
    <title>Sending mail from JSP</title>
    </head>
    <body>
    <%@ page import="jspbeans.*"%>
    <jsp:usebean id="sendmail" class="jspbeans.SendMail" scope="page"/>
    <jsp:setProperty name="sendmail" property="host" value="mail.wavelinksystems.com"/>
    <jsp:setProperty name="sendmail" property="to" value="[email protected]"/>
    <jsp:setProperty name="sendmail" property="from" value="[email protected]"/>
    <jsp:setProperty name="sendmail" property="msg" value="testing 1 2 3..."/>
    <jsp:setProperty name="sendmail" property="subject" value="test"/>
    <%//sendmail.send();%>
    <p>
    Mail has been sent to <jsp:getProperty name="sendmail" property="to"/>
    </body>
    </html>and the path of this jsp page is:
    C:\WINDOWS\Desktop\tomcat\jakarta-tomcat-3.3.1\webapps\ROOT\pruebas\jspMailTest.jsp
    the path for the package is:
    C:\WINDOWS\Desktop\tomcat\jakarta-tomcat-3.3.1\webapps\ROOT\pruebas\jspbeans
    what am i doing wrong?
    what am i missing?
    how do i have to import the package?
    thanks

    it generates a
    java.lang.NoClassDefFoundError: javax/mail/MessagingException
    i changed the package to that directory and the import generates no errors, if i do nothing but the import, and soem printing, the page is generated, but when i try to assign the variables, generates that error, why is it?

  • Import package with .* in jsp

    If i want to use HashMap in jsp page i need to have HashMap of util package in import statment in
    page directive.
    What is difference in Using
    a) <%@ page import="java.util.HashMap"%>
    b) <%@ page import="java.util.*"%>
    Is there any performance issue using importing package with .*

    Ofcourse there will be a performance issue. In the
    second case (<%@ page import="java.util.*"%>
    ) , you are loading all the classes in java.util
    package into your JSP, where as in the first case you
    are getting only HashMap. So the second option will
    affect the performance. Always import only the
    required classes.
    rgdsThen you have no idea how import works. The only difference at all would come at compile time. After the page is compiled, there would be no performance issue whatsoever.
    The main reason for doing one or the other way (same for any Java class) is clarity for those reading the code. Meaning if you use the full import, when they see "HashMap" in the code, they can look at the import statements and be sure that it's in java.util package. But generally, most people are going to be familiar with the classes in the common packages, like java.util. So I wouldn't generally list the specific classes if you are using more then one from the same package. There are other considerations where packages have classes of the same name (java.sql.Date & java.util.Date) but generally, I would always just put the full class name in the code.

  • Jsp import package error after upgrading to jdk1.4.2_08 and tomcat 5.0

    I am trying to upgrade the jdk and tomcat from 1.3/3.3 to 1.4/5.0.
    My jsp imports worked fine prior to the upgrade, but now I get the following:
    Jun 6, 2005 10:01:17 AM org.apache.jasper.compiler.Compiler generateClass
    SEVERE: Error compiling file: /C:/Tomcat/work/Catalina/localhost/Print//org/apac
    he/jsp\BillingPrompt_jsp.java [javac] Compiling 1 source file
    C:\Tomcat\work\Catalina\localhost\Print\org\apache\jsp\BillingPrompt_jsp.java:11
    : package com.adware.print.database.inquire does not exist
    import com.adware.print.database.inquire.*;
    ^
    1 error
    A fatal error has occured for user: Unable to compile class for JSP
    Generated servlet error:
    C:\Tomcat\work\Catalina\localhost\Print\org\apache\jsp\BillingPrompt_jsp.java:11
    : package com.adware.print.database.inquire does not exist
    import com.adware.print.database.inquire.*;
    The package in the import statement "import com.adware.print.database.inquire.*" actually has no classes in it. The classes are contained in "import com.adware.print.database.inquire.controller.*". If I change the import statement everything works. The problem is that I have 100s of jsps. If there is a work-around outside of changing the import statements, that would be best.
    Can anyone help? Thanks.

    do you know what url is being looked up? the message is complaining that the url is starting with the string "an]", which seems pretty bogus.

Maybe you are looking for

  • Video Driver Bug?

    Ever since installing Yosemite on my Late 2012, 27" iMac, Adobe Photoshop has caused problems when opening and saving large images. The time of trouble is inconsistent. Once it starts, I have to close and open Photoshop for it to go away. What happen

  • Why do we use Unserialized V3 update for Inventory Management?

    Hello Experts, I have question on LO Cockpit extractor. Why do we use Unserialized V3 update for Inventory Management (2LIS_03_BF) ? Are there any reasons behind? thanks a lot Padma

  • IView not found: com.sap.pct.mdm.tech.systems.MDMSystemWizard

    Hello Experts! I've installed MDM 5.5 SP6 along with the portal content that came from the same download. The portal content files I installed are listed below. BPMDMAPPLI06_0.sca BPMDMTECHN06_0.sca MDM_WEB_UI550.sca MDMJAVAAPI06_0.sca When I try to

  • Garageband tuner stops working

    On Mac, the Garageband tuner works only once: open it, tune your guitar, close it, re-open it, it's dead. It doesn't react at all. Anybody experiencing the same problem? Garageband 10.0.1, OS X Mavericks, Apogee Jam Thanks

  • Use Date Filter WebParts for Date Range In Sharepoint 2013

    Hi, Can someone please explain how to use the Date Filter WebParts in Sharepoint 2013 to act as a Date Range. Myrequirement is exactly like in the link Date Filter but this is not working on Sharepoint 2013 Designer. I am unable to edit a webpart pag