Problem with importing packages in servlet

Hi all,
I am a newbie to java so please bear with me...
I am trying to create a java servlet but Eclipse is giving me errors such as:
'the import org.apache.struts cannot be resolved' in the following line:
import org.apache.struts.action.Action;
My environtment is:
Windows 2000
Tomcat 5
j2sdk1.4.2_04
struts 1.1
Any help would be greatly appreciated.
Thanks
John

you need to add the struts.jar to your classpath

Similar Messages

  • Problem with Importing Packages

    I have a file which has several classes and an interface. The first line is package ImageSequence; . It is saved in a file called ImageSequence.java. I have another file in the same directory that has include ImageSequence.* as the third line. I get an error that the package is not found. What is wrong?

    Thanks, but that still doesn't solve the problem. I have this code:
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    import ImageSequence.*;
    public class ImageSequenceTest extends JComponent {
         public static void main(String args[])
              new ImageSequenceTest();
         public ImageSequenceTest()
              Toolkit toolkit = Toolkit.getDefaultToolkit();
              Image i1 = toolkit.getImage("ImageSequenceTesti1.gif");
              Image i2 = toolkit.getImage("ImageSequenceTesti2.gif");
              Image i3 = toolkit.getImage("ImageSequenceTesti3.gif");
              Image i4 = toolkit.getImage("ImageSequenceTesti4.gif");
              Image i5 = toolkit.getImage("ImageSequenceTesti5.gif");
              Image i6 = toolkit.getImage("ImageSequenceTesti6.gif");
              Image images[] = new Image[] {i1, i2, i3, i4, i5, i6};
              ImageSequence is = new ImageSequence(images, 50);
              JFrame frame = new JFrame();
              frame.setSize(100, 100);
              frame.getContentPane().add(is);
              frame.setVisible(true);
              is.setRepeat(true);
              is.start();
    }When I try to compile it, I get these error messages:C:\Program Files\Xinox Software\JCreator LE\MyProjects\ImageSequenceTest.java:22: cannot resolve symbol
    symbol : constructor ImageSequence (java.awt.Image[],int)
    location: class ImageSequence
              ImageSequence is = new ImageSequence(images, 50);
    ^
    C:\Program Files\Xinox Software\JCreator LE\MyProjects\ImageSequenceTest.java:25: cannot resolve symbol
    symbol : method add (ImageSequence)
    location: class java.awt.Container
              frame.getContentPane().add(is);
    ^
    C:\Program Files\Xinox Software\JCreator LE\MyProjects\ImageSequenceTest.java:27: cannot resolve symbol
    symbol : method setRepeat (boolean)
    location: class ImageSequence
              is.setRepeat(true);
    ^
    C:\Program Files\Xinox Software\JCreator LE\MyProjects\ImageSequenceTest.java:28: cannot resolve symbol
    symbol : method start ()
    location: class ImageSequence
              is.start();
    ^
    4 errors
    When I get rid of import ImageSequence.*; and copy the code for the ImageSequence class from the package into the file, everything works.

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

  • Problems with importing text messages from PC Suit...

    Problems with importing text messages from PC Suit 7.1.18.0 to my Nokia 5800
     I am trying to import a csv file that contains text messages (Note that this file was created using PC Suit 7.1.18.0) to a subfolder that I have created to My Folders but PC Suits only imports the text messages to the Draft folder. Note that initially it shows that the messages are import in the correct folder but after a refresh it shows them in the Draft Folder. Is their any setting that I should change in the PC Suit or the phone? My computer runs on Windows XP Service Pack 3 and the Nokia 5800 was upgraded to the latest firmware v20.0.012
     Thanks for your help

    Most phones only allows importing of draft and archived box for SMS.
    To do a restoring, you need to backup the SMS as a .nbu file using PC Suite and restore later.
    If you got an SD card, you can also do a backup on the SD Card (backup.arc) then restore later (reset and restore: backup.arc and mmc).
    What's the law of the jungle?

  • Tempo problems with imported wav files

    Hey everyone, sorry if there's a quick fix for this in the forums that I couldn't find, but I've been having some tempo problems with imported .wav files.
    Long story short, my system couldn't handle playing all the tracks for a song while recording drums, so I bounced out an mp3 of the song and put it in a new Logic file so my drummer could just play along to that as I recorded him. Unfortunately, the original song is at 167 bpm, but I forgot to change the bpm in the new Logic file with the .mp3 file of the song to 167 bpm, so it was left at the default 120 bpm.
    So, the drums were recorded at the correct 167 bpm, but Logic thinks that those new drum .wav files should be played at 120 bpm, so when I import my drum tracks back into the original file, they do not play correctly at all.
    I could get record it all again, but I wanted to check if there was a way I could salvage what I already have, since my drummer lives about an hour away right now and can't just come over whenever he wants.
    Thanks for the help! I really appreciate it.

    Hi,
    First, do not use MP3 in Logic, the sound quality is less than AIFF, WAV or CAF, and Logic has to decode it for playback, making it a heavier burden on the CPU than an uncoded audiofile, such as AIFF, WAV or CAF.
    Secondly, audio files are independent of Logic's tempo. If you bounce down an audio file in any format (other than Apple Loop), it will play back at the same speed, +regardless of Logics' tempo setting+, either at recording or playback. Logic doesn't 'think' anything. The BPM is only important to MIDI tracks, or to the spacing between audio files. The audio files themselves *are not affected* by the tempo setting. If you import an audio file of tempo 167 into a 120 BPM project, the file will still play at 167, only Logic will indicate the wrong bar positions.
    regards, Erik.

  • Problem with JSP and Java Servlet Web Application....

    Hi every body....
    I av developed a web based application with java (jsp and Java Servlets)....
    that was working fine on Lane and Local Host....
    But when i upload on internet with unix package my servlets and Java Beans are not working .....
    also not access database which i developed on My Sql....
    M using cpanel support on web server
    Plz gave me solution...
    Thanx looking forward Adnan

    You need to elaborate "not working" in developer's perspective instead of in user's perspective.

  • Unable to update itunes. help. error message when trying to update to latest version of itunes. "the installer has encountered an unexpected error installing this package. this may indicate a problem with this package. error code 2721"

    unable to update itunes. help. error message when trying to update to latest version of itunes. "the installer has encountered an unexpected error installing this package. this may indicate a problem with this package. error code 2721"

    Hello chae84swangin,
    I recommend following the steps in the article below when getting an error message trying to install iTunes:
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Problem with import file type setting

    Problem with import file type settings - In preferences>general I select "wav encoder" But then going to tools>Create it still says "create mp3 version".
    Can't find a way to overcome this. Thanks for any help.

    Doublechecking, roy. After making the preferences change, are you leaving the General tab by clicking the OK button down the bottom-right-hand corner of the tab?

  • Hi, I have problem with importing MOV files from SJCAM 4000. MOV files are in supported formats for Adobe Premiere Elements 11. But if I'm importing MOV file, only audio part is imported, video part is not imported. How can I solve this problem?

    Hi, I have problem with importing MOV files from SJCAM 4000. MOV files are in supported formats for Adobe Premiere Elements 11. But if I'm importing MOV file, only audio part is imported, video part is not imported. How can I solve this problem?

    haben
    From looking at the specifications of your camera (SJCam 4000), we know already what video compression your camera is using. It is H.264.
    A H.264.mov file should be supported by Premiere Elements 11. On what computer operating system is your Premiere Elements 11 running?
    Do you have the latest version of QuickTime installed on your computer? And, are you running QuickTime and Premiere Elements 11 from a
    User Account with administrative privileges? Please go to Premiere Elements 11 Publish+Share/Computer/QuickTime to confirm that you find
    presets there for the QuickTime choice there.
    What are the properties of these H.264.mov files - is it 1080p30 (1920 x 1080p30)  or something else? Do you know if this camera is recording with a variable or
    a constant frame rate?
    Please review and consider and then we will decide what next.
    Thank you.
    ATR

  • Load of big files in BPC with import package

    HI,
    I need to import many files (.txt) with 1,5 million of data lines in BPC with import package.
    But BPC is limited to 500 000 lines for each import.
    Have you got a solution ?
    Thanks,
    Morgann

    Morgann,
    You have two options.
    1. use import into FACT table -> Cons : System will be offline.  Pros : faster performance. No limit
    2. if you should use import package,  split file and put it into one folder and create a custom package that will handle those data file one by one.      Cons : Need to make a custom package   Pros : No system offline.
    I hope it will help you.
    Thanks.
    James Lim

  • Problem with importing

    Hi all, I recently downloaded elements 11, and I imported some photos okay, but now it starts to import, gets about half way, and a box saying elements organizer has stopped working. When I went into problem details, it said appcrash. any ideas wot be goin on. (Im importing photos in raw) Regards. Paul.

    Thanks for the reply jon. I was only importing 152 pics. off my nikon camera. I re downloaded elements 7 on to the puter, and they went straight on there with no trouble, so I would of thought they would go straight on to elmnts. 11. ho hum.and strange.
    Date: Fri, 18 Jan 2013 04:58:39 -0700
    From: [email protected]
    To: [email protected]
    Subject: Problem with importing
        Re: Problem with importing
        created by 99jon in Photoshop Elements - View the full discussion
    Hi Paul  What are your system specs. Raw files are usually quite large so the process could be draining your memory (RAM). Are you importing from camera or from your hard drive. In the case of the latter try importing one folder at a time or in smaller batches. You can select files and drag and drop into the organizer. You must drop on the dark gray area between the left and right side panels (if both panel are visible).
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5003831#5003831
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5003831#5003831
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5003831#5003831. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Elements by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Problems with import slides powerpoint

    Hello,
    I have a problem with import slides from the powerpoint, when
    I try to import, the computer blow.
    What I can do?

    there have been lots of issues regarding this, however, I
    have found that if I export my ppt as individual jpeg slides I can
    then use the "insert > Slide > Image Slide" command to bring
    in my ppt slides, I have tried everything else as well but what was
    happening to me was Captivate 3 was losing all of my text and text
    animation. Now my animation is not critical, however, the text is
    very important of course. So now I have stagnat slides, a bit
    boring but at least I was able to finish my project.
    Hope this helps.
    Tony :)

  • Problems with import from textfile

    Hi
    We are experiencing problems with importing tables from a text-file. We are using Designer 6i (NT) release 2.
    Some of the column sequences are lost others are changed.
    Foreign keys are lost if the referenced table is after in alphbetical order! Not null columns are nullified and the column of the primary key definition is lost.
    Has anyone had similar problems and/or know of a workaround?

    Hi
    We are experiencing problems with importing tables from a text-file. We are using Designer 6i (NT) release 2.
    Some of the column sequences are lost others are changed.
    Foreign keys are lost if the referenced table is after in alphbetical order! Not null columns are nullified and the column of the primary key definition is lost.
    Has anyone had similar problems and/or know of a workaround?

  • A problem with importing layered PSD file into Flash

    Hi.
    There's a problem with importing layered PSD file into Flash.
    If I import a layered PSD file, some part the color of the lower layer is shown at the edge of objects or shadows. Instead, if I crop each layers first and import them, there's no problem.
    If the higher layer has brush or transparent effects, it becomes worse.
    Any help with this problem?
    Thanks.

    How was the original art created? Was the original RGB or CMYK? What is the resolution of the Photoshop file? Flash only works well with RGB and 72 pixel per inch resolution. If your original art is not set this way, then Flash will attempt to convert it as it imports it. Flash uses the sRGB color space. You'll get the best color translation if your Photoshop file is using this color preference.

  • Premiere Pro CS5: please help problem with importing a file error output "there was an error decompressing audio or video"

    please help problem with importing a file error output "there was an error decompressing audio or video"

    this is related to what adobe program/version?

Maybe you are looking for

  • Is it possible UPLOAD a single printer from an LDT with a lot of printers?

    is it possible UPLOAD a single printer from an LDT with a lot of printers? by using FNDLOAD here we can download a specific printer definition, we need to follow the below syntax FNDLOAD apps/ 0 Y DOWNLOAD $FND_TOP/patch/115/import/afcppinf.lct sourc

  • Cisco DVR constantly loses subscription infomration

    I just "upgraded" to the Cisco DVR, and I'm finding that it frequently (like several times an evening) pops up a message indicating "You are not subscribed to"" whatever channel I'm watching. So I go through the troubleshooting, or reboot the box, or

  • DB 13 Error

    Dear SAP Guru, when i am trying to take the backup from DB13 Tx .its shows error  but i am take succesfuly backup through NTBACKUP (windows utility).the Error are below whicj im get Detail log:     aedifjve     .     cds                          BR00

  • IPhone will not sync iTunes and iPhoto

    Just bought an iPhone a couple weeks ago. No problems transferring (sync) iTunes and iPhoto (and everything else) on day 1. Now looking to sync a second time and no luck. When I connect iPhone to my MacBookPro, iTunes and iPhoto automatically open bu

  • Exporting charts (chart and data behind it)

    Hi there, Im new to Flex and Air but I have come here because Im looking into a way to export a chart from an application we have to excel. At the moment we are able to export the data behind the chart but not the chart itself. I have come to two way