First Try and JSP with JavaBeans

Hi:
I've installed Tomcat 3.3.2, and have made no configuration changes.
I'm trying to create a JSP that uses a JavaBean. This is my first attempt, and there's nothing exciting about my try.
Below is the JavaBean, that compiles just fine:
import java.io.Serializable;
import java.util.*;
import java.text.*;
public class today implements Serializable {
public String getToday() {
Date df = new Date();
String today = DateFormat.getDateInstance().format(df);
return today;
The class for this .java file is stored in webapps\exampiles\web-inf\classes
Here is the JSP file:
<%@ page language="java" import="today" %>
<jsp:useBean id="jsp" class="today" scope="session" /></jsp:useBean>
<html><body>
Today is: //<%= getToday() %>
</body></html>
This is stored in webapps\examples\jsp.
When I try to run the JSP, I receive the following:
Method getToday() not found in class jsp.today_3.
out.print( getToday() );
I have tried many things, but have not succeeded.
Any suggestions? Thanks.

<%@ page language="java" import="today" %>
<jsp:useBean id="jsp" class="today" scope="session"
/></jsp:useBean>
<html><body>
Today is: //<%= getToday() %>
</body></html>
}You're not referencing your bean instance when you're trying to access the getToday() method in the code above. It should be jsp.getToday()

Similar Messages

  • HELP! Beginning JSP with JavaBean Class

    First of all, I'm using jdk1.4 beta and Jakarta's tomcat version 4.0.1 release build.
    Hello. I desparately need help. I have a JavaBean class ("CarBean.class") saved in %catalina_home%\webapps\root\myapp\web-inf\classes\com\wrox\cars\CarBean.class
    I also have a jsp page saved as carpage.jsp in %catalina_home%\webapps\root\myapp\
    So when I point my browser to http://localhost:8080/myapp/carpage.jsp, I get an internal server error. It appears it can't find the JavaBean class for some reason. I'm pretty sure I have my envionment variables set up right. I can get it to work, if I save the JavaBean class in c:\jdk1.4\jre\class\com\wrox\cars
    Here's my JavaBean class source file:
    package com.wrox.cars;
    import java.io.Serializable;
    public class CarBean implements Serializable {
    public CarBean() {
    private String make = "Ford";
    public String getMake() {
    return make;
    public void setMake(String make) {
    this.make = make;
    and here's my jsp page:
    <html>
    <head>
    <title>Using a JavaBean</title>
    </head>
    <body>
    <h2>Using a JavaBean</h2>
    <% com.wrox.cars.CarBean myCar = new com.wrox.cars.CarBean(); %>
    I own a <%= myCar.getMake() %>
    <% myCar.setMake("Ferrari"); %>
    Now I own a <%= myCar.getMake() %>
    </body>
    </html>
    I'm not new to java, just JSP. I just don't know why I can't get the jsp to locate the JavaBean class. I remember I used to have an older version of Tomcat and I recall not having any problems. It seems the Tomcat 4.XX is somewhat significantly different than previous versions. Perhaps I configured my Tomcat wrong? Help would be greatly appreciated. Thanks.

    hi
    i am not using Tomcat server but as i worked in JWS you have to import the bean class from jsp files.
    so the first code in jsp file will be like this
    <%@ page import = "CarBean">
    becoz JWS cant automatically find the bean class we have to explicitly import bean.but i dont know if tomcat finds
    bean or one have to import.
    hope this will help u.
    regards
    manoj choudhury.

  • Have an Epson workforce 600 worked fine until new router and Lion installed.  Now when I try and scan with the all in one I get a "POWER PC APPLICATIONS ARE NO LONGER SUPPORTED"  and my IMAC does not recognize that the Epson is a multi function printer.

    Installed a new router.  Installed Lion. Have an Epson Workforce 600 multi function printer.  Two problems. 
    1. I cannot get Lion to recognize that the Epson is a multi function printer.  There is no scan option on the "print/Scan" popup window.
    2. When I try and use the epson scan utility I get:  POWER PC APPLICATIONS ARE NOT LONGER SUPPORTED.
    I have tried EPSON support with no real luck as they say it is Apple upgrades that are the problem.
    Apple support was quite rude..said it was not their problem and that I should call epson.  Told the I did but it made no difference just got the same reply.
    Have no idea what to do.....seems I cannot find out which multi-function printers Lion supports. 

    daolbuzzard1 wrote:
    Epson Workforce 600 multi function printer
    Not to give you another run around, but you need new printer drivers from Epson for your printer so it works in Lion.
    Now it could be that they are working on it, or that they could have decided not to provide new drivers in order for you to force upgrade.
    The only thing a user can do is decide very carefully BEFORE upgrading to a newer Apple operating system, make sure that all their current hardware and software works and make a decision for themselves.
    Since you upgraded to Lion, you can go back to Snow Leopard and your PPC software will work.
    Do you need instructions?

  • JSP with JavaBeans

    Hello,
    I'm trying to write my first page of JSP using a JavaBean.
    I've created a simple bean :
    package dalpkg;
    public class DalBean
    public DalBean()
    setName("DIMA");
    private String myName;
    public void setName(String name)
    this.myName=name;
    public String getName()
    return myName;
    }Now i've created a JSP :
    <jsp:useBean class="dalpkg.DalBean" id="info" scope="session"> 
    <html> 
    <head> 
    <title>Simple JSP Document</title> 
    </head> 
    <body> 
    Initial name is <%=info.getName()%><br> 
    <% info.setName("Adi"); %> 
    New name is <%=info.getName()%><br>
    </body> 
    </html>
    </jsp:useBean>I'm Getting this error : "/DIMA/hello.jsp(1,1) The value for the useBean class attribute dalpkg.DalBean is invalid"
    I couldn't find the solution any where.
    Where should I put the .Java file for it to work?
    Could this be the reason why this isnt working?

    Well thats wierd.. the class file looks ok.. starts just like you said CA FE BA BE.
    Recomiling didnt help..
    but this code works :
    package dalpkg;
    public class HelloWorld
    public void HelloWorld()
    public String ReturnHello()
    return "Hello";
    <jsp:useBean class="dalpkg.HelloWorld" id="info" scope="session"> 
    <html> 
    <head> 
    <title>Simple JSP Document</title> 
    </head> 
    <body> 
    Print Hello :  <%=info.ReturnHello()%><br> 
    </body> 
    </html>
    </jsp:useBean>Edited by: dimamah on Mar 6, 2009 4:43 PM

  • Problem linking jsp with javabeans

    Hey guys,
    I am new at this jsp stuff, but have read a few threads as well as a few tutorials. however, i dont understand why i keep getting this error. any help would be appreciate it!
    i m currently running it off tomcat 4.1, and the hierarchy that i have currently is set like this:
    "xxx/build/array.jsp"
    "xxx/build/WEB-INF/classes/arraymap/javaBeans/ArraysBean.java"
    the content of my jsp is as follows:
    <%@ page import="arraymap.javaBeans.ArraysBean" %>
    <html>
    <head>
         you are in the array page!
    </head>
    <jsp:useBean id="test" class="arraymap.javaBeans.ArraysBean" scope="page"/>
    <body>
    <a href="index.html"> LOG OUT</a>
    <center>
    Please choose one of the following queries:
    </h3>
    </center>
    </body>
    </html>and my simple bean code:
    package arraymap.javaBeans;
    import java.util.*;
    import arraymap.*;
    public class ArraysBean {
        ArrayMapModMain a = ArrayMapModMain.instance();
        public Object[] getArrayTypes()
         return a.getArrayTypes();
    }but i get this error:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 6 in the jsp file: /cds_jsp/build/array.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\cds_jsp\build\array_jsp.java:7: package arraymap.javaBeans does not exist
    import arraymap.javaBeans.ArraysBean;
    ^
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\cds_jsp\build\array_jsp.java:46: package arraymap.javaBeans does not exist
    arraymap.javaBeans.ArraysBean test = null;
    ^
    An error occurred at line: 6 in the jsp file: /cds_jsp/build/array.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\cds_jsp\build\array_jsp.java:48: package arraymap.javaBeans does not exist
    test = (arraymap.javaBeans.ArraysBean) pageContext.getAttribute("test", PageContext.PAGE_SCOPE);
    ^
    An error occurred at line: 6 in the jsp file: /cds_jsp/build/array.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\cds_jsp\build\array_jsp.java:51: package arraymap.javaBeans does not exist
    test = (arraymap.javaBeans.ArraysBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "arraymap.javaBeans.ArraysBean");
    ^
    4 errors
    any idea on why i cant recognize the package? the file is on the tomcat server (the class file is physically there when i manually check it), and i couldnt figure out what i went wrong with either the jsp or hte beans. i have been stuck on this problem for several hours and it is painful sitting in a cube not knowing what is goin on. any help would be GREATLY appreciated! thanks in advance!
    kev

    I copied your files into my environment and it worked fine for me (I had to strip out the ArrayMapModMain stuff to get a compilation though), so it looks like an environment thing as opposed to an issue with your code.
    Possibilities include (shots in the dark):
    1.) The path it showed in the error messages
    "C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\cds_jsp\build\array_jsp.java"
    looks a little funny, mainly the underscore between localhost and cds_jsp. Maybe there's something wrong in your Tomcat config file (see #3).
    2.) Maybe your directory has a permissions issue. Is it readable? Likely not an issue as you're using windows, but it bites me all the time in linux.
    3.) I haven't used Tomcat in a while, but I'll bet it has a config file. Are you sure it's pointing to your WEB-INF/classes dir for your servlets?
    Sorry I can't be of more help.
    jengi

  • Proxying servlets and JSPs with apache

    We have a couple of servlets within our application, the rest of it
    being JSPs.
    We are having a problems maintaining the session state across links from
    the JSPs to the servlets. It works fine with WL as the web server when
    the servlet picks up the same session as the JSPs, but when we are using
    the apache bridge, the servlet seems to have a new session.
    We are using WL5.1.0 SP6 on solaris.
    The JSPs are proxied by extension, and the servlets by location -
    everything under the servlet directory being directed to a servlet.
    Is there anything we need to do in the configuration to allow this to
    work?
    Thanks,
    Steve

    Core Servlets is pretty good. I have both parts.
    One day I'm actually going to read them.you mean these two right?
    Core Servlets and Javaserver Pages: Core Technologies, Vol. 2 (2nd Edition) (Core) by Marty Hall, Larry Brown, and Yaakov Chaikin
    Core Servlets and JavaServer Pages, Vol. 1: Core Technologies, Second Edition by Marty Hall and Larry Brown
    I should buy the Vol 1 first right?

  • Bionic to Razr, replace first Razr and sim, with new Razr and Sim.  All service loss.

    I would like to say that the era of smartphones has been both fun and expensive.  Having computers in our pockets is an amazing breakthough in technology.  I used to have both the Droid, and I also got the Droid 2 when it came out, my next purchase was the Bionic, and that's where my problems started.  The 4g would drop all the time, and it wasn't much of an inconvenience because usually it would come back on if I waited a little bit.  I'm patient most of the time unless I need directions somewhere and then I get a bit angry.  So I researched on the web and I tried all the tips and tricks and other things you can do to see if you can fix the problem to no avail.  I would check in from time to time and found out that it was a known issue, so I called up and just like I heard I could get a free replacement phone the Droid Razr which had come out directly after the Bionic.  I got it in the mail and it worked for about 20 minutes before losing all service(not just the 4g), and this happened every 5 to 10 minutes for the next couple days, so I got drunk and planned on yelling at some poor verizon person, but she was so nice and offered to send me out a new phone, so I decided to be nice back.  She said I should make sure to send in my Bionic so I didn't get charged, but I said how about I send in the ****** that you sent me instead and keep my original.  I got the new one a couple days later, and it seemed to be ok for the first few days, maybe I was just lucky not to notice.  It does the same thing as the other one, and I am about to lose my patience.  I want a solution to my problem.  Is there anyone out there in Verizonland that can give me a solution that doesn't involve (because I have already done all these things multiple times) resetting the phone to factory default, clearing the cache, the motorola reconnect app, power cycling the phone by holding the power and volume down keys, or as i mentioned above getting a new (used and probably sent back in because of the same problem) phone and sim card?

    Same as before, the service drops to zero, has the universal no sign over the bars.  The screen kicks on and it starts to build up to 4 bars, then white 4g, blue 4g, and it does that oh I would say every 10-30 minutes or so when I have had it sitting there while on my computer.  If I am on Netflix watching stuff it doesn't drop, like once I have engaged the 4g and am using it I don't have problems with it.  I have had a couple of calls drop, and in a text conversation it has just dropped to zero while I was typing a response.  I am not sure about maps, it's usually off when I want to try to find something so I have to wait for it to kick in to give me a route, which is by far the most irritating thing in the world when you are in unfamiliar territory.

  • Help! How do I exit tab groups and get my session/tabs back. The icon doesn't toggle and instructions don't say how to get back -- first try and I'm stuck.

    This is the first time I tried to use tabgroups. I clicked on the bricks-style icon and then couldn't see any way to get back to my current firefox session and open tabs. It doesn't seem to be a toggle, no "go back" or anything else I can see. Help!

    In the Tab Groups window, I have a Close (X) button in the right upper corner (along with the Minimize and Maximize buttons). Clicking the Close (X) button will return you to your normal browsing session. In addition, SHIFT+CTRL+E will return you to to your normal browsing (SHIFT+CTRL+E also will open the Tab Groups window).
    *Article about Tab Groups --> http://www.makeuseof.com/tag/organize-manage-firefox-open-tabs-tab-groups/
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • SetProperty in JSP with JavaBeans

    Why do they always talk about the following code in JSP's for getting or setting property's in a JavaBean.
    <jsp:setProperty name="dbb" property="dbDriver" value="<%= set.getDbDriver()%>" />
    Because it is also possible by just calling this "dbb.setDbdriver(set.getDbDriver())" setting-methode.
    Is there also a specific code to call normal methods, no set or get method, of a JavaBean in a JSP
    for something like "dbb.execSQL(String sql)".

    One of the reasons for JSPs existence is to separate the presentation logic from the business and control logic. The rationale is that the skills required to design a user interface are different than programming skills, so creators and maintainers of JSPs may not be Java programmers. In this scenario, there is no Java scripting in a JSP. All data and business logic is encapsulated in beans and/or custom tags accessed from the page. That's why the useBean, getProperty and setProperty tags exist. Check out the web for info on the Model, View, Controller framework.
    There are no built-in JSP tags to call bean methods that require arguments or do not have get/set methods. Custom tags could do this job if necessary.
    Whether you follow this approach is your call and, among other things, depends on the skills of those who will be maintaining your JSPs in the future.

  • Inserting and deleting with JavaBean Data Control

    Hi,
    I have been teaching myself how to use Data Controls with a Struts applications. In order to understand the fundamentals, I thought I could just use a simple javabean encapsulated in a Service facade to implement trivial CRUD operations.
    Upto this point I have the ability to Diplay a table of my objects, Edit a single object and display a single object using the Data control and struts. Unfortunately I am now stuck since all the help documents assume that either I am using a Database bound business object or an EJB to implement my CRUD use cases. These have a lot more operations on their data control that are unavailable to JavaBean data controls.
    How do I go about implementing create and delete use cases with plain JavaBeans? Presumably there are Oracle foundation classes that I can extend that would allow me to expose more operations to the Data Control Pallete.
    Thanks for the input
    Suhail

    For JavaBean DataControl, you will have to write custom methods in servicefacade class which will create, delete or update the collections.
    Though you are not using EJB, following tutorial, shows how custom methods which implement crud operations are used with sessionfacacde (EJB Session bean).
    http://otn.oracle.com/products/jdev/collateral/tutorials/9050/ejbdatabinding_tut.html
    Following thread has discussion on how to refresh the collections from JavaBean.
    10g ADF : how to update the binding values in the UI layer ?
    or
    10g ADF : how to update the binding values in the UI layer ?
    raghu
    JDev Team

  • Errors in a program jsp with javabeans

    With the following program time.jsp from the book bigjava by
    horstmann, I get from tomcat 5.0 the following errors. Who helps me?
    My O.S. is win pro.
    Thanks
    Eugenia Mariani
    this is the program:
    time.jsp
    inside the folder
    C:\Programmi\Apache Software Foundation\Tomcat 5.0\webapps\bigjava
    <jsp:useBean id="formatter" class="TimeFormatterBean"/>
    <jsp:setProperty name="formatter" property="date" value="<%= new
    java.util.Date() %>"/>
    <html>
    <head>
    <title>Time JSP</title>
    </head>
    <body>
    <h1>Time JSP</h1>
    <p>The current time is:
    <jsp:getProperty name="formatter" property="time"/>
    </p>
    </body>
    </html>
    this is the program TimeFormatterBean.java with
    TimeFormatterBean.class
    inside the folder:
    C:\Programmi\Apache Software Foundation\Tomcat
    5.0\webapps\bigjava\WEB-INF\classes
    import java.text.DateFormat;
    import java.util.Date;
    This bean formats the time of day from a given date.
    public class TimeFormatterBean
    Initializes the formatter.
    public TimeFormatterBean()
    timeFormatter = DateFormat.getTimeInstance();
    Write-only date property.
    @param aDate the date to be formatted.
    public void setDate(Date aDate)
    theDate = aDate;
    Read-only time property.
    @return the formatted time
    public String getTime()
    String timeString = timeFormatter.format(theDate);
    return timeString;
    private DateFormat timeFormatter;
    private Date theDate;
    these are the errors fro TOMCAT 5.0
    HTTP Status 500 -
    type Exception report
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    description The server encountered an internal error () that prevented
    it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 1 in the jsp file: /time.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Programmi\Apache Software Foundation\Tomcat
    5.0\work\Catalina\localhost\bigjava\org\apache\jsp\time_jsp.java:42:
    cannot resolve symbol
    symbol : class TimeFormatterBean
    location: class org.apache.jsp.time_jsp
    TimeFormatterBean formatter = null;
    ^
    An error occurred at line: 1 in the jsp file: /time.jsp
    Generated servlet error:
    C:\Programmi\Apache Software Foundation\Tomcat
    5.0\work\Catalina\localhost\bigjava\org\apache\jsp\time_jsp.java:44:
    cannot resolve symbol
    symbol : class TimeFormatterBean
    location: class org.apache.jsp.time_jsp
    formatter = (TimeFormatterBean)
    jspxpage_context.getAttribute("formatter", PageContext.PAGE_SCOPE);
    ^
    An error occurred at line: 1 in the jsp file: /time.jsp
    Generated servlet error:
    C:\Programmi\Apache Software Foundation\Tomcat
    5.0\work\Catalina\localhost\bigjava\org\apache\jsp\time_jsp.java:46:
    cannot resolve symbol
    symbol : class TimeFormatterBean
    location: class org.apache.jsp.time_jsp
    formatter = new TimeFormatterBean();
    ^
    An error occurred at line: 10 in the jsp file: /time.jsp
    Generated servlet error:
    C:\Programmi\Apache Software Foundation\Tomcat
    5.0\work\Catalina\localhost\bigjava\org\apache\jsp\time_jsp.java:63:
    cannot resolve symbol
    symbol : class TimeFormatterBean
    location: class org.apache.jsp.time_jsp
    out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((Time
    FormatterBean)_jspx_page_context.findAttribute("formatter")).getTime()
    ^
    4 errors
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultError
    Handler.java:83)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.
    java:306)
    org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:398)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:441)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:422)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.
    java:507)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.
    java:274)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:29
    2)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    note The full stack trace of the root cause is available in the Apache
    Tomcat/5.0.24 logs.
    Apache Tomcat/5.0.24

    Cross Post
    http://forum.java.sun.com/thread.jsp?thread=526883&forum=45&message=2528346

  • How to Upload in Servlet or JSP with JavaBean?

    Anybody used to be familiar with these techs?I want to implement a function of upload files.Can you help me with some suggestions?

    Hi,
    This might help you
    read the file and upload to database
    Read that file using java.io.
    File f= new File("give the file name");
    FileInputStream fis= new FileInputStream(f);
    byte[] data= null;
    Vector tempVector = new Vector();
    int tempInt=fis.read();
    while(tempInt!=-1){
    tempVector.add(new Byte((byte)tempInt));
    tempInt=fis.read();
    data= new byte[tempVector.size()];
    for(int k=0;k<tempVector.size();k++){
    data[k]=new Byte(tempVector.get(k).toString()).byteValue();
    System.out.println("The byte[] data is : " +data);
    stmt= conn.prepareStatement("insert into <tableName>(blobValue, key) values ( ? , ? ) " );
    stmt.setObject(1,data);
    stmt.setString(2,"filename");
    stmt.executeUpdate();

  • 9.0.3 ojspc and JSPs with JSTL

    I tried using ojspc to pre-compile my jsps, as such: #ojspc myApp.war and got the following error:
    Detected archive, now processing contents of myApp.war...
    Setting up temp area...
    Expanding archive in temp area...
    Parse error in index.jsp:
    oracle.jsp.parse.JspParseException: Line # 2, <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    Error: java.io.FileNotFoundException: /tmp/tmp10045/http:/java.sun.com/jstl/core (No such file or directory)
    Removing temp area...
    Are there any work-arounds to pre-compile jsps which utilize JSTL (almost all of ours do...)?
    Thanks,
    Voytek Jarnot

    Hi,
    Have you mentioned the tag lib mapping in ur web.xml? [Something like this]
    <taglib>
    <taglib-uri>http://.....</taglib-uri>
    <taglib-location>/WEB-INF/jstl-core.tld</taglib-location>
    </taglib>
    rgds,
    Neelesh
    OTN Team @IDC

  • What is different between strut and jsp+servlet+javabean?

    welcome

    Struts is a package that sits on top of the usual webapp stuff and organises and makes regular a lot of the stuff you wind up doing in servlets without it.
    It handles stuff like the objects you usually wind up using to pass data between JSPs and forms and servlets.
    It implements transaction stearing rules.

  • The deployment problem in JSP using JavaBean

    Hi there,
    I followed the descriptions in Writing Enterprise Applications with
    Java 2 SDK, Enterprise Edition tutorial to build a set of programs to run JSP with JavaBean, and I also followed the steps in creating new WAR file, but some how it wouldn't work after I deployed them. I run the JSP in IE and got a message like this:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 20 in the jsp file: /1bonus.jsp
    Generated servlet error:
    c:\j2sdkee1.3.1\repository\orbit\web\JSPRoot\$1bonus$jsp.java:63: Class org.apache.jsp.JBonusBean not found.
    JBonusBean jbonus = null;
    ^
    I used the deploytool to create the WAR file, and after I added the 1bonus.jsp, I also added JBonusBean into the WAR file. I found 1bonus.jsp was added into the WAR file, but there's no JBonusBean appeared under the WAR file.
    Could you please tell me is there anything wrong?
    Thanks for your time.
    Regards,
    Eric

    I think you have not imported 'BonusBean' in your jsp. Code this line in your jsp at the top.
    <%@page import="BonusBean" %>
    Sudha

Maybe you are looking for

  • How to call setdata method in POST method of BADI ME_PROCESS_PO_CUST ?

    Hi all, I am working on the enhancement to PO using BADI . My requirement is to update the net price of the item while saving the PO based on some conditions. i am calling setdata method to update the item netprice. But i am unable to update it? Can

  • No taxing on unplanned delivery cost

    Hi all, I have an invoice in MIRO where I have manually entered the QST provincial tax - lets say $350.49. When I click simulate, the QST amount is fine (stays the same at 350.49). But when I add an unplanned delivery cost of $5, the QST amount incre

  • Bug in command + tab

    the box behind the app switcher goes behind windows when activated in spaces.

  • SQL Server file required

    I may have missed the fix on this but I am having the same issue where iTunes requires a file from the SQL Server Desktop engine (sony media Manager disk) and It can not find it. Where do I go from here. I do not have a Sony Media Manager Disk or a s

  • Do I need to install Avira?

    I got this info from twitter that Mac can be attacked by virus nowadays. And Avira has this Avira Free Mac Security. Should I or shouldn't I install this to my MacBook Pro? Tried to search the discussion, but couldn't find any about this Avira. Thank