Multiple import directives in jsp

I have a JSP and in my page directive I have an import as follows: import="java.util.*" which works fine
However if I add another one eg import="java.text.*" I get an error message because it only seems to pick up one import. Anydbody know what is going wrong?
Thanks!!

Not exactly sure whats wrong here because I can't see all your code, but you can definetely import more than one class like this:
<%@ page import="java.util.*, java.text.*" %>

Similar Messages

  • How to create multiple toolbar buttons in jsp ?

    hi all,
    how to create multiple toolbar buttons in jsp ?
    plz help me

    mgmt
    plzhttp://www.catb.org/~esr/faqs/smart-questions.html#writewell
    How To Ask Questions The Smart Way
    Eric Steven Raymond
    Rick Moen
    Write in clear, grammatical, correctly-spelled language
    We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding (often enough to bet on, anyway). Answering questions for careless and sloppy thinkers is not rewarding; we'd rather spend our time elsewhere.
    So expressing your question clearly and well is important. If you can't be bothered to do that, we can't be bothered to pay attention. Spend the extra effort to polish your language. It doesn't have to be stiff or formal ? in fact, hacker culture values informal, slangy and humorous language used with precision. But it has to be precise; there has to be some indication that you're thinking and paying attention.
    Spell, punctuate, and capitalize correctly. Don't confuse "its" with "it's", "loose" with "lose", or "discrete" with "discreet". Don't TYPE IN ALL CAPS; this is read as shouting and considered rude. (All-smalls is only slightly less annoying, as it's difficult to read. Alan Cox can get away with it, but you can't.)
    More generally, if you write like a semi-literate b o o b you will very likely be ignored. So don't use instant-messaging shortcuts. Spelling "you" as "u" makes you look like a semi-literate b o o b to save two entire keystrokes.

  • I need a digital camcorder that imports direct to iMovie - any ideas

    I have been using a MiniDV JVC camcorder to import direct into iMovie - worked great but the camcorder heads are now worn out. So I use an Hitachi HD flash card camcorder that outputs AVI files. I then have to convert through Handbrake to get a useable file for iMovie.
    This is much too slow as I produce lots of short video for customers - is there a better direct camera to get files straight into iMovie or should I use different software on the mac?
    Last resort, I have been told to buy a pc to use for producing edited DVD movies - I don't really want to move off the mac - HELP?

    Wow...good question.
    Do your FCP setups have capture cards? You could send a signal from the toaster machine to FCP via the capture card and recapture the footage in FCP. Will take a while, but it should work.
    Tough working with proprietary formats.
    Shane

  • Multiple Import into Multiple schemas in a single Database server ?

    Is it possible to create a multiple import into multiple schema in a single DB server ?

    Hi,
    Yes, You can do it.. With Multiple Export File..it may cause some Performance issue, so need to check your Server configuration before do that..

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

  • Import directive

    Hi,
    what does it really do the import directive/statement?
    Please don't tell me it includes all the bytecodes from the packages used in the bytecodes generated from the java class which use them.
    Please help.
    Marla

    The purpose of the import is to provide a shorthand to refer to classes in another package, without typing the entire fully qualified class name for each class in the external package each time it is used. It makes a package or an individual class available. And it manages namespaces.
    com.mycompany.model.Foo myFoo = new com.mycompany.model.Foo();
    vs
    import com.mycompany.model.Foo;
    <... class definition here ...>
    Foo myFoo = new Foo();
    When the compiler encounters the import statement, it searches the directories specified by the CLASSPATH looking for subdirectories that match the package structure in the import statement, and seeks compiled files of the appropriate name in the final directory.

  • Crashes while importing TIFFs.  Also, how to import directly into an album?

    Just got Aperture last night in the mail. Upgraded to 1.1.1.
    I have about 250 CDs with TIFF images that I've created over the years. The TIFF files were created by a Nikon film scanner. Some of those images were later re-touched and re-saved using Photoshop.
    In any event, I started importing all those CDs into Aperture to consolidate all my photographs in one place. On the first CD, Aperture crashed unexpectedly for no reason. The Aperture database would also get corrupted and I would have to delete it, and start from scratch.
    Here's what I discovered. If I wait for Aperture to generate a thumbnail of all the images in the CD before I click on the "Import All" button, there are four images in the CD for which Aperture does not generate a thumbnail. Furthermore, if I tried to import the same CD into iPhoto, all files but those four would get imported. At least iPhoto doesn't crash, and after the import is finished it would tell me that four photographs could not be imported because the format was not recognized. The interesting thing is that Photoshop can open every single file on the CD (again, all of them are TIFF images)
    So my (painful) workaround is to import all my CDs into iPhoto first, and then import into Aperture from iPhoto, which works very well. That way the Aperture repository doesn't get corrupted.
    So, question 1: does anybody know if there's a special setting in Aperture that would stop it from crashing and gracefuly skip over any photographs that it can't recognize?
    Question 2: I want to import every single CD into its own album so I later know what CD I can find the image on. Aperture seems to import always onto the project, not the album. Is there a way around this?
    When I import into iPhoto, I create an empty album and then drag the files from the CD onto that album. If I then import the iPhoto album into Aperture, Aperture automatically creates an album, which is nice. I'd love to do the same but with iPhoto out of the picture (excuse the pun). That would speed up the import process tremendously.
    Thanks for your help,
    Julian

    Are there two questions here?
    1. You can indeed create an album under a Project in advance and Import direct to that. One Album per CD? Works fine. Just point the Import Arrow at the Album. NOTE: the Masters are actually held in the Project (this is true across Aperture) and Pointers are held in the Album .... but the effect is of Albums with photos > Project containing all the photos.
    2. These TIF files are not corrupt, if Photoshop or iPhoto opens them. This has got to be an Aperture bug and I have the same issues with TIF's. Created a thread about it, so I hope the Aperture development team did read it (please, please, please). You could convert in Photoshop to .PSD vs. resaving (unless this is what you did) as I haven't noted this problem with .PSD files

  • HT202020 Using a SDHC card adapter I can import directly on my iPad2 videos (.mov) taken with a Panasonic DMC-ZS3. The same video files (same file format) imported in Aperture 3.3 cannot be synchronized with iPad. Is Aperture causing the problem?

    Using a SDHC card adapter I can import directly on my iPad2 videos (.mov) taken with a Panasonic DMC-ZS3. The same video files (same file format) imported in Aperture 3.3 cannot be synchronized with iPad. Is Aperture causing the problem?

    Oh, baby! This bad boy flies!! Here's what to expect:
    I had 40,000 images in Aperture 3 and it was dog slow at everything. I installed 3.1 update today. It took 5 minutes to update the database and then behaved marginally better than before at ASIC library navigation. I was disappointed.
    Then I QUIT the app. It took a couple of hours to "update files for sharing" with a counter that went to 110,000 images. So it must have updated every thumbnail and variation of preview. Turned it back on , and BAM. Came up fully in seconds. Paused for 10 seconds ten everything was lickrty split. For the first time ever, I can use the Projects view with all 791 projects and scroll quickly. I even put it in photos modevand whipped thru all 49,000 images!
    Haven't done anybprocessing yet, but i'm liking it!!
    Jim

  • LR displays "no preview available" upon import direct from camera after last update. How do I fix this?

    I have the latest LR update with Nikon D700 and import directly from camera. I purchased a new CF card in case the old one was the problem but I get the same thing with the new card. Is there a bug in the last update or is this a problem with my equipment?

    Hey everyone in Apple world!
    I figured out how to fix the flashing yellow screen problem that I've been having on my MBP!  Yessssss!!!
    I found this super handy website with the golden answer: http://support.apple.com/kb/HT1379
    I followed the instructions on this page and here's what I did:
    Resetting NVRAM / PRAM
    Shut down your Mac.
    Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    I went through the 6 steps above twice, just to make sure I got rid of whatever stuff was holding up my bootup process.  Since I did that, my MBP boots up just like normal.  No flashing yellow screen anymore!!   
    (Note that I arrived at this solution when I first saw this page: http://support.apple.com/kb/TS2570?viewlocale=en_US)
    Let me know if this works for you!
    Elaine

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

  • Raw files missing in import direct from canon eos 350D

    Hi,
    I realise that files missing for import is fairly common, but I still haven't been able to find a reason. I can load jpg and cr2 from a folder no problem, but when I attach the camera, using the latest canon WIA driver on windows xp, the window that comes up shows only the jpgs on my camera. I realise that a workaround is to get the files on the pc and import from there, but I don't have my canon software anymore to do that, and besides, I'm using the trial version to decide whether or not to buy. Is this a LR problem? a canon one? and is there a fix in the pipeline?
    Apart from that, really like the product.
    Many thanks
    Dave

    Dave
    There was a problem with version 1.0 about importing JPG's and RAW's because although they have a different suffix i.e. JPG or CR2 they have the same file name. LR, as primarily a RAW converter sees these as one and the same file and only imported the RAW file. The work round for this was to rename the JPG's slightly outside of LR using a name that you could yourself identify with the original RAW e.g. RAW 0000001.crs with the JPG being renamed to 0000001A.JPG followed by Importing. I had thought they had cured this with the update but as I don't shoot JPG + RAW haven't tried this for myself. What's strange about your post though, is that if memory serves me correctly the problem lay not in the Importing of the RAW file but in the JPG file as described above. Perhaps someone with more up to date knowledge of this will jump in here.
    The importing directly from the camera I referred to earlier was a known problem with Canon cameras - perhaps something to do with the folder structure although I couldn't swear to it. Hence the reference to using a Card Reader. In any event downloading from a Card Reader is faster as I'm sure you know.
    If you right click and explore the Card you'll find that not all of the files are empty. The top folder will be something like DCM and by double clicking on this top folder it will open up the others.

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

  • Import directly to Audio books folder

    Hello
    is there a way to import directly to an assigned folder.( audio books) For example I imported a cd book all the tracks were imported as tracks and could I not sort them out. Is there a purpose for the audio books folder.
    Thanks to all that help.
    Troy

    When iTunes open check General preferences under iTunes on the menu bar to see if the category Books is checked.

Maybe you are looking for

  • How to use the BADI CRM_MKTLIST_BADI in External List Management?

    Hi Experts, I am using ELM tool to upload new accounts from an excel file. I need to do some coding before the BPs get created into CRM. This coding is for mapping some fields & doing a few validation checks. We have a BADI CRM_MKTLIST_BADI for this.

  • Images sent from Lightroom 5 won't appear in Elements 12

    About one month ago I've bought and installed on my computer Photoshop Elements 12. However since then I had never launched the programme, which I did for the first time yesterday by trying to send five TIFF shots from Lightoroom 5.4 to Elements (Pho

  • Help, issue on Lion

    Just installed a new Travel Star 1 GB hard drive on my 2011 MacBook Pro 17".  Did a fresh install of Lion from Internet Recovery.  That was 2 days ago.  Only programs installed is Diablo 3, Auroa Firefox Browser, Itunes update.  Started up the Mac to

  • I don't see my iCloud Drive  files in Finder

    When I click on iCloud Drive in the Finder I don't see my files. In other folders (Dropbox, Downloads, Applications, Google Drive etc. everything is OK).

  • Dynamic un-link/re-link

    I'm looking for help finding out how to dynamically relink to a different shared object. Say I have a piece of code that gets upgraded periodically and I don't want to restart the application to link to the new code. I can pause the application and t