Undefined variable or class name

I am trying to call a java class to another class but gets the error: "Undefined variable or class name"
Both my java files are in the same directory and I am able to compile only one of the program. Wondering what am I missing?
The source code is:
ServletUtilities.java: (I am able to compile)
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class ServletUtilities {
public static final String DOCTYPE =
     "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 " +
     "Transitional//EN\">";
public static String headWithTitle(String title) {
     return(DOCTYPE + "\n" +
          "<HTML>\n" +
          "<head><title>" + title + "</title></head>\n");
HelloWWW3.java (getting error when compile)
public class HelloWWW3 extends HttpServlet {
public void doGet(HttpServletRequest request,
               HttpServletResponse response)
     throws ServletException, IOException
     response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println(ServletUtilities.headWithTitle("Hello WWW") +
          "<body>\n" +
          "<h1>Hello WWW</h1>\n" +
          "</body></html>");

I tried and I got these errors:
C:\java servlets\HelloWWW3\src>javac -classpath . HelloWWW3.java
HelloWWW3.java:4: Package javax.servlet not found in import.
import javax.servlet.*;
^
HelloWWW3.java:5: Package javax.servlet.http not found in import.
import javax.servlet.http.*;
^
HelloWWW3.java:7: Superclass coreservlets.HttpServlet of class coreservlets.Hell
oWWW3 not found.
public class HelloWWW3 extends HttpServlet
^
3 errors
Then I moved HelloWWW3.java and ServletUtilities.class file to C:\jakarta-tomcat-3.2.3\lib
This dir has files
JAXP JAR
SERVLET JAR
ANT JAR
PARSER JAR
WEBSER~1 JAR
JASPER JAR
and compiled and got this error
C:\jakarta-tomcat-3.2.3\lib>javac -classpath . HelloWWW3.java
HelloWWW3.java:4: Package javax.servlet not found in import.
import javax.servlet.*;
^
HelloWWW3.java:5: Package javax.servlet.http not found in import.
import javax.servlet.http.*;
^
HelloWWW3.java:7: Superclass coreservlets.HttpServlet of class coreservlets.Hell
oWWW3 not found.
public class HelloWWW3 extends HttpServlet
^
3 errors
Here is what I hava defined for my CLASSPATH
C:\jakarta-tomcat-3.2.3\lib>echo %CLASSPATH%
C:\jakarta-tomcat-3.2.3\lib\servlet.jar;C:\jakarta-tomcat-3.2.3\lib\jasper.jar
------------------------------------------

Similar Messages

  • How to convert a String variable as class name and method name?

    i have two classes
    class Student
    public String insertStudent(String sname)
    { return("Student has been inserted ");     }
    class Teacher
    public String execute(String methodName, String className)
    {  //return statement of the method 'insertStudent' in the class 'Student'; }
    }Now, i have a class with the main method. Here, i would like to call the method *'insertStudent'* of class *'Student'*
    using the method *'execute'* of class *'Teacher',* passing the method-name and the class-name (viz. insertStudent, Student) as the
    String parameter.
    Can anyone please help me out. Thanks
    regards,
    chinglai

    You should have just added that as a comment on your [initial posting|http://forums.sun.com/thread.jspa?threadID=5334953] instead of starting a new thread.
    Now, i have a class with the main method. Here, i would like to call the method 'insertStudent' of class 'Student'using the method 'execute' of class 'Teacher', passing the method-name and the class-name (viz. insertStudent, Student) as the
    String parameter.
    Why oh why? What do you want to achieve?
    Let me tell you: there is a way to do what you try to do, but it's not recommended and should be used only very sparingly. Especially not in anything like your code, that resembles normal business logic (as opposed to an application framework such as Spring, for example).
    Can you explain what exactly you want to do with that? Why should a Teacher be able to call any random method ony any other class. And what good would that do?

  • An object variable and class name

    How come some classes, such as wrapper classes, don?t use an object variable to call a method in their classes? For example, StingBuffer or String class needs an object variable to call its method but Double, Integer, Character, NumberFormat, or some other classes doesn?t use an object variable to call a method in its class. Why is that? Any suggestions? Any explanation would be helpful.

    errr.. do you mean static methods and instance methods?
    http://java.sun.com/docs/books/tutorial/java/javaOO/classvars.html

  • Error message - undefined variable or class:Console

    I'm trying to compile a java program written by a lecturer but I get this message every time. I think I'm not importing something I should. Help?

    It says that java doesn't know what Console is. Post relevant code and the exact error message for further help.

  • Undefined variable or classname snpRef (when executing Java within a KM)

    Hi there,
    I'm looking into ODI, specifically customizing scripts using java functions and have hit a bit of a problem.
    Does the following error ring any bells?
    Attempt to resolve method: getobjectname() on undefined variable or class name: snpref
    I find it quite weird and strange that it cannot find snpref?
    The script is below - as you can see, I'm just having a play around
    drop table <%=odiRef.getTable("L", "COLL_NAME", "A")%>
    +<%String sTestString = odiRef.getFrom(); %>+
    +<%sTestString = sTestString.toLowerCase();%>+
    +<%out.print("/*"+sTestString+"*/");%>+
    As you can see, I have no clue where snpref is being called from. It may be an internal translation of odiRef but I thought snpRef has been deprecated!? What's also weird is that without the last or penultimate line, everything works fine?
    For example, this works:
    drop table <%=odiRef.getTable("L", "COLL_NAME", "A")%>
    +<%String sTestString = odiRef.getFrom(); %>+
    +<%out.print("/*"+sTestString+"*/");%>+
    it gives:
    drop table ODI_TESTING."C$_0SmalldatetimeTable"
    +/*Testing.dbo.SmalldatetimeTable as SMALLDATETIMETABLE*/+
    Also this works:
    drop table <%=odiRef.getTable("L", "COLL_NAME", "A")%>
    +<%String sTestString = "TeSt"; %>+
    +<%sTestString = sTestString.toLowerCase(); %>+
    +<%out.print("/*"+sTestString+"*/");%>+
    outputting (as totally expected):
    drop table ODI_TESTING."C$_0SmalldatetimeTable"
    +/*test*/+
    What gives? I know this is a bit theoretical but I'd really love to know what's causing it to break so spectacularly? Could it be some sort of misconfiguration?
    Here's the stack trace:
    com.sunopsis.tools.core.exception.SnpsSimpleMessageException: ODI-17517: Error during task interpretation.
    Task: 4
    java.lang.Exception: BeanShell script error: Sourced file: inline evaluation of: ``out.print("drop table ") ; out.print(snpRef.getObjectName("L", "%COL_PRF0Smallda . . . '' : Attempt to resolve method: getobjectname() on undefined variable or class name: snpref : at Line: 4 : in file: inline evaluation of: ``out.print("drop table ") ; out.print(snpRef.getObjectName("L", "%COL_PRF0Smallda . . . '' : snpref .getobjectname ( "l" , "smalldatetimetable" , "testing" , "" , "d" )
    BSF info: Drop work table at line: 0 column: columnNo
    +     at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:485)+
    +     at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:711)+
    +     at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)+
    +     at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)+
    +     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)+
    +     at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)+
    +     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)+
    +     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)+
    +     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)+
    +     at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)+
    +     at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)+
    +     at java.lang.Thread.run(Thread.java:662)+
    Caused by: org.apache.bsf.BSFException: BeanShell script error: Sourced file: inline evaluation of: ``out.print("drop table ") ; out.print(snpRef.getObjectName("L", "%COL_PRF0Smallda . . . '' : Attempt to resolve method: getobjectname() on undefined variable or class name: snpref : at Line: 4 : in file: inline evaluation of: ``out.print("drop table ") ; out.print(snpRef.getObjectName("L", "%COL_PRF0Smallda . . . '' : snpref .getobjectname ( "l" , "smalldatetimetable" , "testing" , "" , "d" )
    BSF info: Drop work table at line: 0 column: columnNo
    +     at bsh.util.BeanShellBSFEngine.eval(Unknown Source)+
    +     at bsh.util.BeanShellBSFEngine.exec(Unknown Source)+
    +     at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:471)+
    +     ... 11 more+
    Text: drop table <?=snpRef.getObjectName("L", "%COL_PRF0SmalldatetimeTable", "W") ?>
    +/*<?=snpref.getobjectname("l", "smalldatetimetable", "testing", "", "d")?> as smalldatetimetable*/.+
    +     at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:738)+
    +     at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)+
    +     at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)+
    +     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)+
    +     at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)+
    +     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)+
    +     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)+
    +     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)+
    +     at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)+
    +     at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)+
    +     at java.lang.Thread.run(Thread.java:662)+
    Thanks!
    Matt
    Edited by: 979675 on Jan 9, 2013 1:04 AM

    Okay here is the solution.
    I tried 100s of ways but it didnt work. So the alternative is create one more step in your KM with jython technology. Below code will print it in lowercase.
    sTestString= '<%=sTestString%>'
    raise (sTestString.lower())
    Note: Click on ignore error. So that the flow will move on.
    Bhabani

  • Undefined variable, class, or package name

    The following code in the jsp is supposed to display the correct 'Securities' link based on the app_main_frames URL. I am getting an error. Can anyone help?
    <% if (parent.app_main_frame.location == ("http://ccmsun57.ccminvest.com:8080/cgi-java/Allocation/jsp/scenario.jsp?source=init")) { %>
    Securities
    <% } else { %>
    <a href="/cgi-java/Holdings/jsp/SecurityInventoryQuery.jsp?which_search=none&which_category=none
    target="app_main_frame">Securities</a>
    <% } %>
    I am getting the following error:
    Generated servlet error:
    /opt/JBoss-2.4.4_Tomcat-4.0.1/catalina/work/localhost/cgi-java/common/jsp/NavigationMenu$jsp.java:173:
    Undefined variable, class, or package name: parent
    if (parent.app_main_frame.location ==
    ^
    ("http://ccmsun57.ccminvest.com:8080/cgi-java/Allocation/jsp/scenario.jsp?source=init")) {

    If app_main_frame is a frame in a frameset then you cannot
    simply refer to it in a Java scriptlet.
    You can refer to it in a JavaScript script, like this:
    <script>
    if (parent.app_main_frame.location == "http://ccmsun57.ccminvest.com:8080/cgi-java/Allocation/jsp/scenario.jsp?source=init")
       document.write("<a href=\"javascript:submit_Form('none')\"target=\"app_main_frame\">Securities</a>");
    else
       document.write("<a href=\"/cgi-java/Holdings/jsp/SecurityInventoryQuery.jsp?which_search=none&which_category=none\"target=\"app_main_frame">Securities</a>");
    </script>

  • Variable class names,QUESTION

    how do I get information from a class using a String for the class name? (in an applet)

    whether you are in an applet or java application, just use Class.forName to retrieve a java.lang.Class instance for that class- then you can get field or method informaiton. There are additional security restrictions in applets, so you may not have access to the particular class, but, if it is accessible, java.lang.Class.forName("yourClassName") is the best choice.

  • Undefined variable error

    I defined the two variables upper_limit and lower_limit in my bean but I get an undefined variable message when I try to use them in my jsp page. Can anyone see what the problem is?
    JSP code:
    I'm thinking of a number between <%=lower_limit%> and <%=upper_limit%>.<p>
    error message:
    org.apache.jasper.JasperException: Unable to compile class for JSPC:\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_0002fnum_0002fnumguess_00031_0002ejspnumguess1_jsp_0.java:157: Undefined variable: lower_limit
    out.print(lower_limit);
    ^
    C:\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_0002fnum_0002fnumguess_00031_0002ejspnumguess1_jsp_0.java:163: Undefined variable: upper_limit
    out.print(upper_limit);

    I defined the two variables upper_limit and
    lower_limit in my bean but I get an undefined variable
    message when I try to use them in my jsp page. Can
    anyone see what the problem is?If these are defined in your bean this doesn't mean that you can access them directly from your JSP page.
    try the <jsp:getProperty name="beanName" property="lower_limit"/> and <jsp:getProperty name="beanName" property="upper_limit"/>
    >
    >
    JSP code:
    I'm thinking of a number between <%=lower_limit%>
    and <%=upper_limit%>.<p>
    I believe that's what these error codes are suggesting, not that you haven't defined the variable in your Bean, but that you haven't gotten the variable from the Bean.
    >
    error message:
    org.apache.jasper.JasperException: Unable to compile
    class for
    JSPC:\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexampl
    s\_0002fjsp_0002fnum_0002fnumguess_00031_0002ejspnumgue
    s1_jsp_0.java:157: Undefined variable: lower_limit
    out.print(lower_limit);
    ^
    C:\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\
    0002fjsp_0002fnum_0002fnumguess_00031_0002ejspnumguess1
    jsp_0.java:163: Undefined variable: upper_limit
    out.print(upper_limit);
    Hope that helps some,
    Bryan

  • Can you determine a dragged objects Class Name when it is dropped?

    Is there a way to determine the class name for a dragged object.
    I have set up two objects. One is a JList that acts as a data source for the second object which is a JTable. Both objects serve as both drag source and drop targets. I need to be able to react to the following events:
    1. Drag value from JList to JTable.
    2. Drag value from JTable to JTable (itself) to reposition order.
    3. Drag value from JTable to JList (deletes item from JTable).
    So far, I have had no problem in getting #1 to work.
    The problem is determining how to consistently interpret which event is happening for 2 and 3. Both the drop (DropTargetDropEvent event) and the dragDropEnd (DragSourceDropEvent event) are fired for either 2 or 3 above. If I could identify the source class for the dragsource and the target class for the droptarget, the coding would be easy. I haven't been able to find anything on this while reviewing the API documentation.
    Any help would be appreciated.
    Thanks

    No, there are not multiple policies - the host names for all aliases on that single webserver are together in a single host identifier. And I realize I can only have a single challenge redirect, I just want to use a variable to redirect to the host name that was accessed as opposed to a static name.

  • Error when inserting into table - Undefined Variable

    DB = Oracle 10.2.0.1
    WEBSERV = Apache 2.0.55
    LANG = PHP5
    I have created (or more accurately, copied) a php script to insert data into one of my database tables when I press submit. The code is as follows (my connect string works fine and its included in the dbutils.php file):
    <?php
    if($submit == "submit"){
    include "dbutils.php";
      $query = "insert into users values (seq_user_usr_id.NEXTVAL, '$usr_name')";
      $cursor = OCIParse ($db_conn, $query);
      if ($cursor == false){
        echo OCIError($cursor)."<BR>";
        exit;
      $result = OCIExecute ($cursor);
      if ($result == false){
        echo OCIError($cursor)."<BR>";
        exit;
      OCICommit ($db_conn);
      OCILogoff ($db_conn);
    else{
       echo '
        <html><body>
        <form method="post" action="index.php">
    <table width="400" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>Please enter a username:</td>
        <td><input type="text" name="usr_name"></input><br></td>
    </tr>
    <tr>
        <td><input type="submit" name="button" value="Submit"></input></td>
    </tr>
    </table>
        </form>
        </body></html>
    ?></p>I am getting the following error regarding an undefined variable:
    [Fri Jan 20 13:11:22 2006] [error] [client 127.0.0.1] PHP Notice: Undefined variable: submit in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\mywebsite\\test.php on line 3
    Where would I declare this variable? It is just a check to see if the submit button is pressed as far as I can see. Any help would be greatfully appreciated.
    W8

    I have changed the code to this:
    <?php
    if($submit == "submit"){
    include "dbutils.php";
    $usr_name = $_POST['usr_name'];
    $query = "insert into users (column1, column2) values (seq_user_usr_id.NEXTVAL, '$usr_name')";
    $cursor = OCIParse ($db_conn, $query);
    if ($cursor == false){
    echo OCIError($cursor)."
    exit;
    $result = OCIExecute ($cursor);
    if ($result == false){
    echo OCIError($cursor)."
    exit;
    OCICommit ($db_conn);
    OCILogoff ($db_conn);
    else{
    $submit = $_POST['submit'];
    echo '
    <html><body>
    <form method="post" action="index.php">
    <table width="400" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>Please enter a username:</td>
    <td><input type="text" name="usr_name"></input>
    </td>
    </tr>
    <tr>
    <td><input type="submit" name="submit" value="submit"></input></td>
    </tr>
    </table>
    </form>
    </body></html>
    ?>And now I am getting the following error:
    [Mon Jan 23 13:45:32 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  submit in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\mywebsite\\test2.php on line 24Does anyone have any ideas?
    I am struggling to find an example to work from to get this working. If anyone can point me to any literature that will explain the code so that I can work this out for myself that would also be a great help.

  • Error in File name or class name not found during Automation operation: 'CreateObj​ect'

    Hello Team,
    When I am trying to execute the below code i am getting the following error. Any help would be greatly appreciated.
    Set oFSO = CreateObject("Scripting.FileSystemObject")
    If Not oFSO.FolderExists(SavePath) Then
    Set f = oFSO.CreateFolder(SavePath)
    Else
    End If
    53 4/11/2014 12:27:22 PM Error:
    Error in <NoName(4).VBS> (Line: 9, Column: 1):
    File name or class name not found during Automation operation: 'CreateObject'
    I have googled through the error and tried to re-register the scrrun.dll using regsvr32 eventhogh it is successfully registered, i am getting the following error. My PC is windows 7 32bit OS.
    any help is greatly appreciated.

    The following script class will write a log file entry. See if it will run for you.
    The script is using a class object that you might not have seen before. A little intro:  The top section is just for testing the class. Normally I just comment this out after the class is working well.  It should run right way. I would save the vbs file in the editor, That way when you are using autoactpath or currentscriptpath variables they will be able resolve the paths.
    Paul
    Attachments:
    LoggingCode_V2.VBS ‏5 KB

  • All of a sudden getting Undefined variable: attvalue in Squirrelmail

    I'm running squirrelmail 1.4.17, and it's been running fine for about 2 months now. This week all of a sudden, I'm getting the following error when trying to read e-mails:
    Notice: Undefined variable: attvalue in /usr/share/squirrelmail/functions/mime.php on line 1407
    The attvalue variable has to do with stripping out dangerous characters from e-mails. My concern is that my system has been compromised and that someone has disabled this value in order to hack into my server.
    The only non standard plugin I've installed into Squirrelmail is a filter that enables me to have an out of office message, it also helps me to move junk mail automatically. It too has been running fine for about a month.
    If anyone can offer any advice, I'd greatly appreciate it. Like I said, everything was fine until just a couple of days ago. No updates took place, everything else seems fine on the surface.
    Thanks
    Mike

    I did forget to mention one thing. At the same time this started happening, I also had a problem that I had experienced before upgrading to the latest Squirrelmail, and that is that in the sending mail processing, specifically in the file deliver.class.php (line 614), I was getting a Notice: Undefined variable: default_charset in /usr/share/squirrelmail/class/deliver/Deliver.class.php on line 614.
    I brute force fixed this problem by hard coding the default_charset variable in that function. I know that's not an ideal solution, but it at least fixed the problem from the users point of view.
    Again, this wasn't happening until just recently, and I can't figure out what on the server changed to trigger these problems.

  • Undefined VARIABLE in FORM

    Dear All,
    Another post with a classic "undefined <VARIABLE> in
    FORM" error message I'm afraid. I don't think this is the usual
    problem of scoping however or form not submitting the data.
    Basically I've checked and triple checked the file with the
    <cfform> tag in it and it definately contains the relevant
    controls with the names correct. I've also put <cfdump
    var="#Form#"><cfabort> tags at the top of each file to
    ensure the information is getting through. Looking at the Form
    structure I can see the variables that are being posted (all of
    which have the values passed from the file with the form tag).
    However, despite this, when I remove the <cfabort> tag to let
    the website process then the error message returns. I can't think
    of what else might be causing this. Any ideas?
    The actual .cfm files are pretty long but the jist of them is
    as follows:
    <!-- calling.cfm - a file that contains a form -->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    lang="en">
    <head>
    <title>A title</title>
    </head>
    <body>
    <CFSET avariable=10> <!-- In the actual file
    avariable comes from a database -->
    <CFFORM name="aform" action="beingcalled.cfm">
    <CFINPUT name="aformvar" type="hidden"
    value=#avariable#>
    <CFINPUT name="action" type="submit" value="Press Me">
    </CFFORM>
    </body>
    </html>
    <!-- beingcalled.cfm - a file that has form variables
    added to it -->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    lang="en">
    <head>
    <title>A title</title>
    </head>
    <body>
    <CFDUMP var="#Form#"> <This shows aformvar as part
    of the form structure>
    <!-- Do something with Form.aformvar here -->
    <CFIF Form.aformvar EQ 10> <!-- THIS DOESN'T
    PROCESS - ERROR IS RETURNED -->
    I should be displayed
    </CFIF>
    </body>
    </html>
    I am using coldfusion 7.
    Many thanks in advance,

    quote:
    The actual .cfm files are pretty long but the jist of them is
    as follows
    I think that the above statement says it all. I
    wish that I had a dollar for every time that I looked at a piece of
    code and could swear that there was nothing in it that could be
    causing "the problem".... yeah, right.
    Even if it is long, you might consider posting it if, for no
    other reason, another pair of eyes may be able to spot the
    "obvious" problem that your eyes may be skipping over (and over and
    over.....).
    <edit> FYI, I once actually had a CF template that
    would fail just because it was a certain size... period. It was a
    few CF versions ago, but if I made the template larger, or smaller,
    no problem, But I made no actual changes other than size to keep it
    from failing... very strange, but heck, you never know sometimes
    </edit>
    Phil

  • AS3 - dynamic class names with *new* operator

    I'm using AcrtionScript 3 and Adobe Flash 9 Public Alpha.
    I have 50 movie clips in the Library that use Linkage to set
    the Class name to: Img1, Img2, Img3, ..., Img50.
    I have a parent class named RandImg. I want the constructor
    for RandImg to randomly select one of the 50 movie clips from the
    Library and display it. I could get this working by generating a
    random number, and then writing a really huge switch statement to
    associate each possible random number with its respective Library
    Movie Clip Class name, but I would much rather do this with a
    dynamic/variable class name based on the random number, such as:
    var nImgChoice:Number = Math.floor( Math.random( ) * 50 ) +
    1;
    var mcImg:MovieClip = new [ "Img"+String(nImgChoice) ] ( );
    addChild( mcImg );
    Note that this used to be possible in AS 2 by doing the
    following:
    this.attachMovie( "Img"+String(nImgChoice) , "mcImg",
    this.getNextHighestDepth());
    Suggestions?
    Thanks,
    ~JC

    import flash.display.DisplayObject;
    import flash.display.Sprite;
    import flash.utils.getDefinitionByName;
    var nImgChoice:Number = Math.floor( Math.random( ) * 50 ) +
    1;
    var ClassReference:Class =
    getDefinitionByName("Img"+String(nImgChoice) ) as
    Class;
    var instance:Object = new ClassReference();
    addChild(DisplayObject(instance));

  • Can't find "Delegate Class Name" for JDBC Helper Service

    Hi,
    I downloaded WLServer 6.1 with sp1 and WLPortal 4.0, installed them on Solaris 7 using default DB cloudscape -- everything was fine. Now, I'm trying to configure database to Oracle 8.1.7.
    In "Configure the JDBC Helper Service" section of document "Configuring WebLogic Portal for Oracle Databases" (http://e-docs.bea.com/wlp/docs40/deploygd/oraclnew.htm), step 2 requires to enter value of "com.bea.p13n.util.jdbc.internal.OracleJDriverJdbcHelperDelegate" to "Delegate Class Name". But, I can't find this "Delegate Class Name" variable. The available varialbles on the Configuration tab on my screen are: Maximum Number of Retries, Maximum Wait Time (milliseconds), Use CLOBs for Read?, Use CLOBs for Write?. And the Configuration tab is the only available tag for JDBC Helper Service. Did I download a different version from other people? I downloaded it within 3 months.
    Can anyone help?
    Thanks in advance,
    Jane

    Thanks Steve.
    I had my own jndi.properties file that's why it was working with ejb bean I created in the AM and not with the sdo web service.
    I didn't know I had to add the jndi properties to the connection.xml maybe you can update the documentation.
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <ns2:References xmlns:ns2="http://xmlns.oracle.com/adf/jndi">
    <Reference className="oracle.jbo.client.svc.Service"
    name="{/test/model/common/}DepartmentModuleService">
    <Factory className="oracle.jbo.client.svc.ServiceFactory"/>
    <RefAddresses>
    <StringRefAddr addrType="serviceInterfaceName">
    <Contents>test.model.common.serviceinterface.DepartmentModuleService</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="serviceEndpointProvider">
    <Contents>ADFBC</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="jndiName">
    <Contents>test.model.common.DepartmentModuleServiceBean</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="serviceSchemaName">
    <Contents>DepartmentModuleService.xsd</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="serviceSchemaLocation">
    <Contents>test/model/common/serviceinterface/</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="jndiFactoryInitial">
    <Contents>oracle.j2ee.rmi.RMIInitialContextFactory</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="jndiProviderURL">
    <Contents>ormi://localhost:23791/SvcInterfaceDeploy_MiddleTier</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="jndiSecurityPrincipal">
    <Contents>fmwadmin</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="jndiSecurityCredentials">
    <Contents>welcome</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="serviceSchemaName">
    <Contents>HRAppService.xsd</Contents>
    </StringRefAddr>
    </RefAddresses>
    </Reference>
    </ns2:References>
    thanks edwin

Maybe you are looking for

  • File Adapter FTP Timeout

    While processing a file with about 2000 messages from a Sender file channel which lasts about 35 minutes we receive an error which points to a time-out parameter: "Error file:'nnnn': Archiving to file 'nnnn' on FTP server after processing failed with

  • Why it gives an error , although the result is correct

    Hello everybody, here is my code, which i wrote in another way, After th sucessful compiling it gives an error, but the results of execution is ok. What is wrong? import java.io.*; import java.lang.*; import java.util.*; import java.awt.*; public cla

  • I can't see the Copy dialog box - ideas?

    Yep, it's as simple as that. When I copy something, I can't see the dialog box showing the progress of the copy/move/etc. In the Window menu, it shows that there's a copy dialog open, but I just can't see it.  It's not on another desktop or in a corn

  • Downloading oracle forms9i and report9i devloper

    Hi all, 1) Can any one send the download link for oracle forms9i and reports9i developer? 2)I am using Oracle 9i database. Is oracle forms10g support for Oracle 9i database. Thanks and regards Michael

  • Buying movies in the UK ITunes Store?

    How do you purchase movies from the UK store? There is no option that I can see. I've looked at the US store and the option is available there. Is it just a matter of time before UK gets it? If I buy it on the US site will they work here (Scotland)?