How can I import my class or package in JSP?

Hello.
I develop jsp. When I assign variables in jsp, everything work fine. For Example:
connStr="jdbc:oracle:thin:@191.168.0.1:1521:orcl";
But I want put some variables inside class or package, so using text editor I created and compiled package:
package Pack1;
public class Test1 extends java.lang.Object {
public static void main(String[] args) {
String ConnStr = "jdbc:oracle:thin:@191.168.0.1:1521:orcl";
or class
class Test1 {
public static void main(String[] args) {
String connStr = "jdbc:oracle:thin:@191.168.0.1:1521:orcl";
But as soon as I put in my jsp line
<%@ page import="Test1" %> or <%@ page import="Pack1.*" %>
I always have an error.
JSP Error:
Request URI:/DateN/search/Search.jsp
Exception:
oracle.jsp.provider.JspCompileException:
Errors compiling:e:\orant\oem8i\apache\apache\htdocs\daten\_pages\_daten\_search\_Search.java
C:\orant\oem8i\apache\apache\htdocs\daten\_pages\_daten\_search\_Search.java:12: Package DateN not found in import.
import Pack1.*; (or Test1)
^
1 error
I using OEM2.2 with Apache-Server under Win2000. I put my classes:
Test1 in package: in folder: C:\orant\oem8i\Apache\Apache\htdocs\WEB-INF\classes\Pack1
If just class, when just in folder: C:\orant\oem8i\Apache\Apache\htdocs\WEB-INF\classes
If I using just class, when I put just in folder: C:\orant\oem8i\Apache\Apache\htdocs\WEB-INF\classes.
Im stack. Anybody can help?
Thank you.

Another way. You can use a USB flash drive & the camera connection kit.
Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
Secrets of the iPad Camera Connection Kit
http://howto.cnet.com/8301-11310_39-57401068-285/secrets-of-the-ipad-camera-conn ection-kit/
 Cheers, Tom

Similar Messages

  • How can I import a class in my program?

    In my program I want to use a class named "WordExtractor" that resides in a jar file named "poi-3.0.1-FINAL-20070705.jar".
    This jar file is stored on my computer under:
    D:\java_projects\Word Reader\poi-bin-3.0.1-FINAL-20070705\poi-3.0.1-FINAL\poi-3.0.1-FINAL-20070705.jar
    How can I import this class WordExtractor into my program?
    import ????????? ;

    In my program I want to use a class named
    "WordExtractor" that resides in a jar file named
    "poi-3.0.1-FINAL-20070705.jar".
    This jar file is stored on my computer under:
    D:\java_projects\Word
    Reader\poi-bin-3.0.1-FINAL-20070705\poi-3.0.1-FINAL\po
    i-3.0.1-FINAL-20070705.jar
    How can I import this class WordExtractor into my
    program?
    import ????????? ;After you add this jar file to the lib , you can use a tools(rar extracter tools) to extract "poi-3.0.1-FINAL-20070705.jar" file and find the position of that class "WordExtractor" .
    write "import XXXX.WordExtractor"into your program,"XXXX" is the position that you have found.

  • How can i import my classes in jsp?

    Dear All,
    i want to access my classes in jsp. i am using apache tomcat
    server. let me know where i have to put my own packages and
    how can i use them in jsp.
    thanks

    Put them in directory /WEB-INF/classes under you webcontext. You can use them in your jsp by importing them or using the useBean directive.

  • How can we call a class file of one package for class file of another

    How can we call a class file of one package from class file of another package and both packages exist in a same folder

    How can we call a class file of one package from
    class file of another package and both packages exist
    in a same folder
    Luckily they don't so it's really not a problem after all.

  • How can I merge OrCAD Library file package (.lib, .obk, .olb, .opj, .ind, .err, .log) and import component in NI Multisim?

    Hello Friends,
    I have OrCAD library package of a component which has few files with extention .lib, .obk, .olb, .opj, .ind, .err, .log..
    So I just want to know that how can I import these files into NI Multisim (v 11.2) and create this component on NI Multisim..
    If somebody has the idea about this or a similar kind of solution then pease help me with it..
    Thanks in advance.
    Have a good day.

    Hi ,
    <b><i>
          1) Why i have this error and how can i fix it? Is it a problem inside my code? Or is it somewhere else?</i></b>
               No problem at ur side .
                There is no Executable Java file  in the EJB  . It will show like this for EJB applications  .  Don't worry about this . Just deploy  .
    Assign Points if you  found helpful!
    Regards.,
    V.Rangarajan

  • Import, import, import... but how can i import my own libraries?

    This is the case: i have a personal library, made by me. I jarred it and then i put it on a subdirectory named lib.
    How can i import it on a new class file? Because import only loads libraries on the jdk directory and only in the format any.any.* Compile is not the problem, i set up classpath and no problem. But if i send my program to another person, it wont run because dont have the library.
    And another question: can i put all the libraries in a jar file and the program read libraries IN the jar? So, how do i import it?

    How can i import it on a new class file? Because
    import only loads libraries on the jdk directory and
    only in the format any.any.*Bad assumption. It will import anything in the classpath.
    Compile is not the
    problem, i set up classpath and no problem. But if i
    send my program to another person, it wont run because
    dont have the library. Well, gee, they need the jar too, don't they?
    >
    And another question: can i put all the libraries in a
    jar file and the program read libraries IN the jar?
    So, how do i import it?Jars cannot contain (ok, they can, but not without a custom classloader) other jars.

  • How can I import photos from iPhoto-library to edit in Photoshop CC? - and save it back to the iPhoto-library?

    How can I import photos from iPhoto-library to edit in Photoshop CC? - and save it back to the iPhoto-library?

    How to access iPhoto images for use in Photoshop
    1. In the Finder, navigate to Users > [user name} > Pictures > iPhoto Library. 
    2. Control-click the iPhoto Library file and choose Show Package Contents.
    3. A Finder window opens that shows the contents. The Masters folder (or called Originals folder) contains all of the photographs that are in iPhoto. 
    Photoshop cannot access this folder, but if you make a duplicate of the folder, the dupe will be accessible -- so:
    4. Control-click the folder named Masters (or Originals) and choose Duplicate. 
    5, Drag the duplicate folder which is named "Masters copy" or “Originals copy” from the iPhoto Library Finder window to the Desktop.
    6. Open images in Photoshop from file on desktop.
    7  Rename the folder and move it elsewhere (probably to the Pictures folder), if desired.  

  • How can I import images from iphoto with the albums and folders?

    How can I import images from iphoto without losing the albums and folders I already created?

    In Organizer, you can choose File>get Photos and Videos>From iPhoto.
    Importing from iPhoto'09: If in iPhoto, you organize your media using photo references, that is, the media actually does not reside inside iPhoto library package, and are referenced through original locations, Organizer does not create new copies of those media and just refer to the original location. but if your iPhoto media reside inside iPhoto library, Organizer creates a copy all media in your pictures folder, also imports albums and tags and other metadata.
    Importing from iPhoto'011: In this case, Organizer always creates a copy of your photos in your pictures folder which resides inside iPohto package. It does not import the albums and other metadata like star rating, caption etc.
    Hope this information helps!
    regards,
    vaishali

  • How can i import procedure with %ROWTYPE in Oracle 10.2 (paris) warehouse b

    Hello.
    How can i import procedure with %ROWTYPE in Oracle 10.2 (paris) warehouse builder?Everytime i try to do it i get an error message:
    API0411: Name should be an empty string.
    If i comment out %rowtype i can import it without problems.
    I have tried re-creating the procedure in OWB but once again i cannot find the %rowtype anywhere. the %type is there etc. I have tried to use Publish transformation / custom and cannot find %rowtypa there either.
    Thank you very much for your help

    Just in case you are having the same problem and cannot find any help anywhere - it is a bug in OWB.
    I got in touch with Oracle Support and it appears that it is possible to import procedure/package with %ROWTYPE inside it, but it is not possible if the %ROWTYPE is in the arguments.
    Just waiting for them to provide me with the bug ID.

  • How can I import a  library ??

    How can use the WSDP library of inside Java SDK? I want to use the javax.servlet class but it is not available in SDK, however it is available in WSDP .How can I import them into Java1.4.1 Applications ?
    2nd:I have already set JAVA_HOME & ANT_HOME as permenant Environment Variables .the ant build command gives me a message that the setenv.bat is not recognized .
    The problem is that setenv.batch is in another directory of the ANT_HOME's and I don't know what variable I should use to point to it.

    What classes in particular are you wanting to use? If they're sitting there as jars on your box -- add them to your classpath when you compile/execute and all should be well.
    Some of these classes will most likely have dependencies upon classes associated with the J2EE platform (considering that a good deal of them are fashioned to execute inside of some form of servlet container) -- so, it's a wise idea to go ahead and grab the J2EE SDK as well.
    And, people do care, they just don't care for someone that nags.

  • How can i import the AUC value when the project go-live

    Dear all experts,
    please help me on the following issue.
    our SAP project will go live in Jan 2010.
    there are some open investment projects to be imported in the PRD.
    the projects are settled to AUC when it is not completed.
    so the actual cost of open projects are the value of AUC.
    but i can not use AS91 to import the value for the AUC because the asset class is for investment measure.
    so  i want to know how can i import the value to AUC thanks a lot.

    Dear  Judy ZHU,
    You can do manual posting to FI using T code like FB50,
    Dr - Cost element(related to project cost ) & WBS
    Cr- CWIP account.
    After that run CJ88 for that project, your project expenses will be settled into AUC/Cost center.
    This is one proposed solution for this to my knowledge..
    SAP experts,  Please correct this if i'm wrong, since I' have not  practically used this method.
    Regards,
    Sam L.

  • How can i import contacts from another AIM account to this new one

    If you reference my last ichat question, you will see that I have had serious problems and had to create a new account.
    How can I import contacts from another AIM account to this new one??

    Hi,
    Use AIM for Mac and use the Export and Import features.
    Other than that it is a question on making sure every Single Buddy has more than just their Screen name in the IChat Address Card so it is added to the Address Book and dragging them back from there
    9:08 PM Thursday; February 7, 2008

  • Not enough space on my new SSD drive to import my data from time machine backup, how can I import my latest backup minus some big files?

    I just got a new 256GB SSD drive for my mac, I want to import my data from time machine backup, but its larger than 256GB since it used to be on my old optical drive. How can I import my latest backup keeping out some big files on the external drive?

    Hello Salemr,
    When you restore from a Time Machine back up, you can tell it to not transfer folders like Desktop, Documents. Downloads, Movies, Music, Pictures and Public. Take a look at the article below for the steps to restore from your back up.  
    Move your data to a new Mac
    http://support.apple.com/en-us/ht5872
    Regards,
    -Norm G. 

  • How can I hide the class file ??

    Hi !
    I has a question, when i write a program of Java, then use the command "javac" to compiler to class file for other people using, but the class file can be disassembled and convert to source code. How can I hide the class file and let people can not disassemble, or can not see the source code. Thinks

    See these....
    http://www.saffeine.com/
    http://www.jarsafe.com/
    I recently read this. This will help you.
    http://developer.java.sun.com/developer/qow/archive/160/index.jsp
    Enojy....
    Rajesh

  • How can I convert a class file to Exe file

    hai
    How can I convert a class file to Exe file

    Please search the forums before asking questions - this has been answered hundreds (really!) of times.

Maybe you are looking for

  • Switch Question

    I'm new to Java, but not to programming or IDE's. I'm in the early stages of developing a new Java application, so I've been playing with various example code from some of the number of books available on the topic. In particular I was interested in

  • Bug:Java install should remove old uninstall entries when updating in-place

    Assume I have installed an (old) version of Java (under 64bit Win7).. Now I download a newer/newest version of Java JDK and start installation process. When prompted I tell the procedure to install JAva JDK in the SAME directory as the previous versi

  • Where is Clipboard

    I have downloaded EtreCheck and have run it. Now it says to Save to Clipboard. When I go to Finder - Edit - show Clipboard only a line of text comes up. When I take a screen shot they go into my Dropbox (not sure how that happened but ok with it). An

  • How to upgrade NWDI

    I want to upgrade my current NWDI server from 7.0 to EHP2. Which tool do I use? JSPM or EHPI? Thanks Jex

  • Viewing by keyword

    I have spent some time creating a keyword system for 15000 photos of wildlife including many sub-keywords (eg birds - eagles - bateleur). This makes tagging the keywords fairly easy. Is there any way of using the same system for searching quickly; th