Application implicit object - undefined Variable!!??

          Hi!
          Is anybody able to access
          the "application" implicit object and
          the "pageContext" implicit object from
          a jspInit() method when an application is deployed as a War file?
          Thanks.
          

what is an application implicit Object ?

Similar Messages

  • How to query objects on variable one-to-one relationship

    Hi,
    I have a situation here:
    Application (APPLICATION table) has many payoffs (Payoff table); Primary key of application is the foreign key of payoff.
    Payoff has disbursement, such as check(check table), directDeposit(directDeposit table) or Wire(wire table), which is variable one-to-one relationship. They share the same primary key
    The query I need to run is to search application based on check number, How do I construct a query to perform this kind of search?
    Thanks
    Hao
    [email protected]

    Hi Doug,
    Thanks for all your help. But I guess I still need more details from you to help me understand the solution.
    First of all, I want to make sure I make my case clear
    Application (application table, pk: uniqueAppId) has many payoffs (Payoff table, pk: payoffId);
    Payoff object has variable one-to-one mapping to Disbursement object, which is a abstract super clss for following objects:
    Check(payoff-check table, pk: payoffId)
    DirectDeposit(payoff-deposit table, pk: payoffId)
    Wire(payoff-wire table, pk: payoffId),
    The query I want to run is to get me back an application for a particular check number
    From you email, first I thought "check" is a object, then your sample code showed it is a string. So I am kind of confused. The document you pointed seems not reflect my case. I wonder it is because I didn't present my case clear the first time.
    Looking forward to your further help
    Hao

  • Undefined Variable

    I have a beta version of a task management system that uploads new tasks to a SQL database using post and an HTTP service request. The same PHP page being posted to writes back an XML file that I use to get all of the information in a datagrid. All of the forms upload the all of the task info smoothly and the datagrid updates on the fly. My problem arises with a delete button inside the datagrid that that sends the ID of the selected item to my delete tasks PHP page through a function. I keep getting an error 1065 (undefined variable) when I click the delete button nested in a column of the datagrid. The code for my button is as follows
                                <mx:DataGridColumn headerText="clear task" editable="true">
                                    <mx:itemRenderer>
                                        <mx:Component>
                                            <mx:Button label="Delete" click="deleteInfo();" />
                                        </mx:Component>
                                    </mx:itemRenderer>  
                                </mx:DataGridColumn>
    The function in my CDATA reads
    function deleteInfo()
                      var number = dgtasks.selectedItem.number;
                      del_number = number;
                      deleteTask.send();
                      Alert.show(del_number);
    I have tried writing a number of different functions inside deleteInfo () just to see if it would even be called and I still get that error 1065. If anyone could help me out I would really appreciate. Thanks!

    Here is my entire file. The only thing negated are the URL's for the service requests. Thanks again!
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"  xmlns="*" layout="vertical" creationComplete="send_data();">
    <mx:String id="del_number">-1</mx:String>
    <!--- This is our HTTPService, it will send requests and recieve the latest XML information from the server -->
        <mx:HTTPService id="userRequest" url="myurl" useProxy="false" method="POST" >
        <!--- These are the post variables here, -->
        <!--- <edit_task>{activeId}</edit_task> will send the value of {activeId} to PHP as $_POST['edit_task'] -->
            <mx:request xmlns="">
                <employee>{employee.text}</employee>
                <client>{client.text}</client>
                <title>{title.text}</title>
                <description>{description.text}</description>
                <issued>{issued.text}</issued>
                <due>{due.text}</due>
                <priority>{priority.text}</priority>
                <opened>{opened.text}</opened>
                <adding_value>1</adding_value>
            </mx:request>
        </mx:HTTPService>
        <mx:HTTPService id="updateValue" url="myurl" useProxy="false" method="POST" > 
        <!--- These are the post variables here, --> 
        <!--- <edit_task>{activeId}</edit_task> will send the value of {activeId} to PHP as $_POST['edit_task'] --> 
            <mx:request xmlns=""> 
                <completed>{activeComplete}</completed> 
                <opened>{activeOpened}</opened> 
                <edit_task>{activeId}</edit_task> 
            </mx:request> 
        </mx:HTTPService> 
        <!--This is our HTTPService for removing a task from the table--> 
            <mx:HTTPService id="deleteTask" url="myurl" useProxy="false" method="POST" > 
            <mx:request xmlns=""> 
                <number>{del_number}</number> 
            </mx:request> 
        </mx:HTTPService> 
        <!--- These next 3 lines make String variables that i store the last ID clicked and the 'complete' and 'opened' status of that ID --> 
        <mx:String id="activeId">-1</mx:String> 
        <mx:String id="activeComplete">-1</mx:String> 
        <mx:String id="activeOpened">-1</mx:String> 
                    <mx:Panel width="100%" height="100%" title="Essence Task Manager"> 
                        <mx:DataGrid 
                            id="dgtasks" 
                            dataProvider="{userRequest.lastResult.tasks.task}" width="100%" height="50%" 
                            doubleClickEnabled="true" 
                            itemDoubleClick="alert_descript(event)" 
                            itemClick="clickItem(event);"> 
                            <mx:columns> 
                                <mx:DataGridColumn headerText="Task Number" dataField="number" editable="false"/> 
                                <mx:DataGridColumn headerText="Employee" dataField="employee" editable="false"/> 
                                <mx:DataGridColumn headerText="Client" dataField="client" editable="false"/> 
                                <mx:DataGridColumn headerText="title" dataField="title" editable="false"/> 
                                <mx:DataGridColumn headerText="description" dataField="description" editable="false"/> 
                                <mx:DataGridColumn headerText="issued" dataField="issued" editable="false"/> 
                                <mx:DataGridColumn headerText="due" dataField="due" editable="false"/> 
                                <mx:DataGridColumn headerText="priority" dataField="priority" editable="false"/> 
                                <mx:DataGridColumn headerText="Acknoweledged" dataField="opened" editable="true" rendererIsEditor="true"> 
                                    <mx:itemRenderer> 
                                        <mx:Component> 
                                            <mx:CheckBox selected="{data.opened}" click="data.opened=!data.opened"/> 
                                        </mx:Component> 
                                    </mx:itemRenderer>     
                                </mx:DataGridColumn> 
                                <mx:DataGridColumn headerText="Completed" dataField="completed" editable="true" width="100" rendererIsEditor="true"> 
                                        <mx:itemRenderer> 
                                    <mx:Component> 
                                        <mx:CheckBox selected="{data.completed}" click="data.completed=!data.completed"/> 
                                    </mx:Component> 
                                </mx:itemRenderer> 
                            </mx:DataGridColumn> 
                                <mx:DataGridColumn headerText="clear task" editable="true"> 
                                    <mx:itemRenderer> 
                                        <mx:Component> 
                                            <mx:Button label="Delete" click="deleteInfo();" /> 
                                        </mx:Component> 
                                    </mx:itemRenderer>     
                                </mx:DataGridColumn> 
                            </mx:columns> 
                            </mx:DataGrid> 
                            <mx:Panel title="Add Task" layout="horizontal" width="100%"> 
                                <mx:Form> 
                                    <mx:FormItem label="employee"> 
                                      <mx:TextInput id="employee"/> 
                                    </mx:FormItem>     
                                    <mx:FormItem label="client"> 
                                      <mx:TextInput id="client"/> 
                                    </mx:FormItem>   
                                    <mx:FormItem label="title"> 
                                      <mx:TextInput id="title"/> 
                                    </mx:FormItem> 
                                    <mx:FormItem label="description"> 
                                      <mx:TextInput id="description"/> 
                                    </mx:FormItem> 
                                        <mx:FormItem label="issued"> 
                                      <mx:TextInput id="issued"/> 
                                    </mx:FormItem>   
                                        <mx:FormItem label="due"> 
                                      <mx:TextInput id="due"/> 
                                    </mx:FormItem>   
                                   <mx:FormItem label="priority"> 
                                      <mx:TextInput id="priority"/> 
                                    </mx:FormItem>   
                                    <mx:FormItem label="opened"> 
                                      <mx:TextInput id="opened"/> 
                                    </mx:FormItem>    
                                    <mx:FormItem label="completed"> 
                                      <mx:TextInput id="completed"/> 
                                    </mx:FormItem>   
                                    <mx:FormItem> 
                                  <mx:Button label="Submit" click="send_data()"/> 
                                </mx:FormItem> 
                              </mx:Form> 
                                <mx:TabNavigator width="100%" height="100%"> 
                                <mx:VBox label="description"> 
                                        <mx:Panel title="Task Description" layout="vertical" width="100%" height="100%"> 
                                        <mx:FormItem> 
                                            <mx:Label  text="{dgtasks.selectedItem.description}"/> 
                                        </mx:FormItem> 
                                        </mx:Panel> 
                                    </mx:VBox> 
                                <mx:VBox label="comments"> 
                                <mx:DataGrid width="100%"> 
                                    <mx:columns> 
                                        <mx:DataGridColumn headerText="posted by"/> 
                                        <mx:DataGridColumn headerText="comment"/> 
                                    </mx:columns> 
                                </mx:DataGrid> 
                                </mx:VBox> 
                                </mx:TabNavigator> 
                            </mx:Panel> 
                       </mx:Panel> 
    <mx:Script> 
            <![CDATA[ 
                import mx.events.ListEvent; 
                import flash.events.Event; 
                import mx.controls.Alert; 
                private function send_data() 
                    userRequest.send(); 
                   function alert_descript(event:ListEvent) 
                    var showdescription:String = event.itemRenderer.data.description; 
                    Alert.show(showdescription); 
                function deleteInfo()
                      var number = dgtasks.selectedItem.number; 
                      del_number = number; 
                      deleteTask.send(); 
                      Alert.show(del_number); 
            ]]> 
        </mx:Script> 
        <!--This script is used to import the click event and than passes the variables back out to the mx--> 
        <mx:Script> 
            <![CDATA[ 
                //this is the clickItem function that is called above in the onClick function... 
                function clickItem(event:ListEvent) 
                    var id = event.itemRenderer.data.number; 
                    var comp = event.itemRenderer.data.completed; 
                    var opened = event.itemRenderer.data.opened; 
                    activeId = id; 
                    activeComplete = comp; 
                    activeOpened = opened; 
                    //send_data(); 
                    updateValue.send(); 
            ]]> 
        </mx:Script> 
    </mx:Application>

  • Error Script 5009 "Object" undefined in a Page with an iFrame IE9

    in some pages of my application (apex 4.0) i use an iframe to a google map.
    i use iframes because i want to use complex functionality in multiple pages of my apex app.
    this works finr in most browsers except ie9: the iFram page is not shown correct, in the console the error script 5009 object undefined in jquery-1.4.2.min.js, Line 21 Character 105
    is reported.
    mr google says that this is an known problem when loading jquery multiple times in one page for example if u use an iframe.
    my first idea was to disable the loading of the jqurey.js by removing the appropriate lines in the page template.
    but it seems to me, that lot of code is not part of the template, but is genereted by the apex engine for expample these lines can not be found in the page templates
    {<script type="text/javascript">var apex_img_dir = "/i/", htmldb_Img_Dir = apex_img_dir;</script>
    <script src="/i/libraries/jquery/1.4.2/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_4_0.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_legacy_4_0.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_widget_4_0.js" type="text/javascript"></script>
    <script src="/i/javascript/apex_dynamic_actions_4_0.js" type="text/javascript"></script>
    any ideas how i can overcome the problem, except using another browser?
    merry xmas
    peter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    push

  • Undefined Variable (Incoming Argument Error)

    Hello,
    I've created an XSD (Name: XYZ) in my BPM project and then created an instance variable (Name: asset) of type XYZ. I then created incoming argument and outgoing argument of the same type. Now I get an error message as stated below.
    Undefined variable 'assetArg'
    Note: I don't get an error message if i do the same steps and create it based on BPM object. But if i use XSD, I get the below error message. Any idea why?
    Thanks for your help.

    Here's just a suggestion. I'd completely agree with you if you reported it as a bug, but here's how you can get it working.
    Convert the incoming XML into a String before it arrives in the Begin activity of the process. In the logic below, I assumed that you would be willing to do this and you passed in your String as an argument variable called "incomingXmlStringArg" in the Begin activity.
    In the Begin activity, you mapped the String "incomingXmlStringArg" into a variable called incomingXmlString. If this is going to be a big thing, I'd strongly recommend that you make this instance variable's type "Separated".
    The xyz variable shown in the logic below is the instance variable you were wishing all along you could plop the XML directly into. "xyz" is a BPM Object instance variable of the type of the heir you created from your XSD. I'd strongly recommend that you also make this a Separated instance variable if it's going to potentially be huge.
    Put this logic in and Automatic activity that immediately follows your Begin activity.
    xyz = Model.Xyz()
    load xyz
        using xmlText = incomingXmlStringDan

  • PHP returning "undefined" variable to flash

    Hello Everyone, I am working on a touch screen POS login interface that takes in a four digit user pin and searches a database. It uses Flash, PHP and MYSQL. I need PHP to return the user name and access level. The AS3 code below is what I have so far, but it doesn't work correctly.
    "IntLogin" is the 4 digit pin that is sent to PHP when the user touches login on the GUI.
    function onLoginClick(e:MouseEvent):void
              keyLogin.gotoAndStop("KeyDn");
              var loader:URLLoader = new URLLoader();
              var request:URLRequest = new URLRequest("Login.php");
              var variables:URLVariables = new URLVariables();
              loader.dataFormat = URLLoaderDataFormat.VARIABLES;
              request.method = URLRequestMethod.POST;
              variables.login = intLogin;
              request.data = variables;
              trace(request.data = variables);
              loader.addEventListener(Event.COMPLETE, onComplete);
              loader.load(request);
               function onComplete(event:Event):void{
                        var loader:URLLoader = URLLoader(event.target);
                        var variables:URLVariables = new URLVariables(loader.data);
                        txtUser.text = variables.username;
    Next is the PHP code which works great in the browser when I implictly give $select a value, returning "username=Walker&access=1"
    However, when I run the program from Flash it returns an undefined variable and the end of the PHP file.
    <?php # Login.php
    require_once ('mysqli_connect.php');
    //Connect to the db
    if (!empty($_POST['login'])){
              $select = $_POST['login'];
              $sql = "SELECT Last_Name AS name, Access_Level AS level FROM Users WHERE User_ID = '$select'";
              $q = mysqli_query($dbc, $sql);
              if($q){
                        $row = mysqli_fetch_array($q, MYSQLI_ASSOC);
                        $name = $row['name'];
                        $access = $row['level'];
                        echo "username=$name";
      echo "&access=access";
    ?>
    I have have tried debugging the both the PHP and the AS code, but I am stuck. When I trace in AS3 I get the following:
    1445
    login=1445
    undefined
    $access";
    ?>
    Please if you anyone can help with this it would be greatly appreciated. I am on a strict timeline and I don't know what to do here.
    Thanks:)
    Jusmark

    You have to send it as a flash var
    Take a look at the code on my php webpage:
    http://www.spectacularstuff.com/php-test/inprogress/scrfix/home.php
    That is how I sent it to flash. Now, we want to receive it in
    flash. You need the following actionscript in AS3.
    // Display FlashVar onto webpage to ensure we are
    // receiving it
    var tf:TextField = new TextField();
    tf.autoSize = TextFieldAutoSize.LEFT;
    tf.border = false;
    tf.x = 50;
    tf.y = 10;
    addChild(tf);
    // Detect the FlashVar from the webpage
    try {
    var keyStr:String;
    var valueStr:String;
    var paramObj:Object =
    LoaderInfo(this.root.loaderInfo).parameters;
    for (keyStr in paramObj) {
    valueStr = String(paramObj[keyStr]);
    if (keyStr.indexOf(".") != -1){
    keyStr = keyStr.substring(0, keyStr.indexOf(".")); //now
    it's "home"
    // tf.appendText(keyStr);
    } catch (error:Error) {
    // tf.appendText(error);

  • How to keep an application level object running with SunIDM?

    We are working on intergrate a gmail project with SunIDM. We need an application level object running with SunIDM so it will maintain a token generated from Gmail side. In anther servlet project, I had this object saved in the attribute of the ServletContext, then other session level servlet could share this attribute anytime. Is there a way to store attribute in Servlet Context and have it shared by different user session in SunIDM? I have been reading documents and searched this forum, haven't find any topics related how to maintain an application level object live. Hopefully that I can get some hint here.
    Thank you so much.

    Paul, Thank you so much for the further explaination. I don't think it will work since the token generated from gmail will expire every 24 hours.
    We are using the gdata library published from by gmail people, and I create a new UserService object and have it run in the application level. The UserService object will generate a token and renew it every 24 hours behind the scene. Here is how I implement it in my Servlet project:
    //to have a UserService object running at the application level:
    public class GmailUserService extends HttpServlet {
    public void init(ServletConfig config) throws ServletException{
    super.init();
    userService = new UserService(myApplication);
    config.getServletContext().setAttribute("gmailUserService", userService);
    //to access this UserService object from other servlet in each user session:
    UserService userService = (UserService)servletContext.getAttribute("gmailUserService");
    Gmail will trigger an error if we create a new UserService object for each user. They recommend to have all the user to share one UserService object. I am looking for similar approach in SunIDM.
    Thank you again, Paul, for trying to help.

  • SSO to a weblogic application via a header variable, possible?

    Hi
    Is it possible to provide single sign on to a weblogic application via a header variable?
    We would like to follow a similar model to what's used with OC4J at:
    http://download.oracle.com/docs/cd/E10761_01/doc/oam.1014/e10356/osso.htm#BJFJBCHB
    Any feedback is appreciated.

    Yes this is possible via a custom Identity Assertion Provider if you are using Weblogic security. You can write the J2EE provider to extract the header and map the user to a LDAP user when you configure the authentication provider to use the same user store as OAM.

  • Multiple web services on single server causing object undefined errors

    Hi,
    I've currently got a bit of a strange problem within a web service that is proving difficult to debug.
    There are the web service urls :
         api.domain.com                -> /var/www/html/api.domain.com/            -> CF mapping to MYSERVICE
         testapi.domain.com          -> /var/www/html/testapi.domain.com/     -> CF mapping to MYSERVICE_test
    In both instances the cfcs that contain the code to be translated into a WSDL reside in /api/..., in the case of this example, /api/common.cfc.  wsargs constists simply of refreshwsdl true.
    If I call the following 2 lines ...
         obj_myservice = CreateObject('webservice','http://api.domain.com/api/common.cfc?wsdl',wsargs);
         obj_myservice_test = CreateObject('webservice','http://testapi.domain.com/api/common.cfc?wsdl',wsargs);
    I then call the same method in both, and they are successful.  When checking the "Data & Services" -> "Web Services" panel within the CF control panel, only the web service "http://api.domain.com/api/common.cfc?wsdl" is listed, and not testapi.domain.com......
    If I reverse the order in which the WSDL's are loaded then this switches, and testapi.domain.com..... gets listed under "Web Services" but api.domain.com..... does not.  In essence it appears as though for some reason the CF server overwrites one with the other.  The exact "object undefined" error is proving difficult to reproduce reliably.
    This appears to happen no matter which server is accessing the web service, be it the same server or a remote server.  All servers involved are running CF8.  Accessing the 2 WSDL files in a browser results in the 2 WSDLs being rendered correctly with different namespace values.
    On the same server are 2 more services
         MYSERVICE2
         MYSERVICE2_test
    These reside in the /api2 directories on the same 2 subdomains, api. and testapi.   MYSERVICE2 and MYSERVICE2_test appear to conflict with each other.  MYSERVICE and MYSERVICE_test appear to conflict with each other.  MYSERVICE and MYSERVICE2 do not appear to conflict with each other.
    Is there a configuration change or anything like that which I should be aware of that would prevent me doing the above?  The 2 /api/ directories are nearly identical with the exception that the namespace and complex type names have been set to http://api.domain.com & MYSERVICE in the first, and http://testapi.domain.com & MYSERVICE_test in the second url.
    I have also tried mapping /MYSERVICE and /MYSERVICE_test within /opt/coldfusion8/WEB-INF/jrun-web.xml to no avail.
    Any help would be appreciated.  If there is any useful information that I have missed off please let me know and I'll dig it out.
    - Simon H

    Hi,
    As an extension to the above
    Server                Test service         "Live" service
    1 ("dev")                devtest                   devlive               http://dev(test/live).domain.com
    2 ("test")                testtest                   testlive               http://test(test/live).domain.com
    I currently have a test script (TEST1) that performs the following :
    CreateObject + call method from devlive
    CreateObject + call method from devtest
    CreateObject + call method from testtest
    The script errors on the third, when it attempts to call a method from devtest.  On the server on which this test script is running, by the end of this, there are the following 2 web services in the Coldfusion control panel :
    http://devlive.domain.com/api/common.cfc?wsdl
    http://testtest.domain.com/api/common.cfc?wsdl
    I have a second test script (TEST2) on a second server distinctfrom the first test script server, on which the following is performed :
    CreateObject + call method from testlive
    If I execute TEST2, then it executes fine.  If I execute TEST1 straight after, then I receive the following error on TEST1
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: org.xml.sax.SAXException: Deserializing parameter 'objectFetchReturn':  could not find deserializer for type {http://common.types.WEBSERVICE_test}details
    Where WEBSERVICE.types.common.details is a complex type (/api/types/common/details.cfc). If I then run the TEST2 script again straight after, the same error appears (with WEBSERVICE in place of WEBSERVICE_test).  If I execute TEST2 twice in a row, or TEST1 twice in a row, then the error disappears"test" server has got jrun-web.xml  edited to include the following, which "dev" does not.
      <virtual-mapping>
        <resource-path>/WEBSERVICE_test</resource-path>
        <system-path>/var/www/html/testapi.domain.com/api</system-path>
      </virtual-mapping>
      <virtual-mapping>
        <resource-path>/WEBSERVICE</resource-path>
        <system-path>/var/www/html/api.domain.com/api</system-path>
      </virtual-mapping>
    I hope that this extended explaination helps.
    Simon H

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

  • Assign value to Object type variable

    CREATE OR REPLACE TYPE emp AS OBJECT (
    empid NUMBER,
    age NUMBER,
    dob date);
    CREATE OR REPLACE TYPE emp _tab AS TABLE OF emp;
    Pls hlep me assign value to the object type variable in loop..(assume there is 5 10 records in emp table)
    declare
    v_emp_tt emp _tab ;
    begin
    for i in (select empid ,age ,dob from emp ) Loop
    v_emp_tt := i.empid; --this is wrong pls help me correct it.
    end loop;
    end;
    thanks,

    I would keep the type/object naming convention distinct from the table name.
    In terms of assignment:
    CREATE OR REPLACE TYPE to_emp AS OBJECT
    (empid NUMBER,
    age NUMBER,
    dob date);
    CREATE OR REPLACE TYPE tt_emp AS TABLE OF emp;
    declare
    v_emp tt_emp;
    begin
    select to_emp_obj(emp_id, age, dob)
    bulk collect into v_emp
    from emp;
    end;

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

  • GetVariable() doesn't work in FireFox for object member variables

    I'm trying to access Flash member variables from Javascript
    using GetVariable. The following line of code works for IE but not
    for Firefox:
    var variable = swf.GetVariable("someObject.someProperty");
    In IE, the GetVariable() function returns the correct value
    for the property. However in Firefox, the GetVariable() function
    returns "null" when trying to access the property. If I just try to
    access the object in Firefox (i.e. swf.GetVariable("someObject"), I
    get a string back (instead of the object that I am expecting). If I
    try to access a variable (such as a string) and not an object using
    GetVariable(), this works in both Firefox and IE.
    Any ideas what I am doing wrong? I suspect that my syntax for
    accessing object member variables in Firefox is incorrect but I
    have not been able to find any documentation on the correct syntax.
    Any assistance would be greatly appreciated.
    Thanks.

    Thanks, but this isn't an issue.
    The window.document.flashMovie will return the correct flash
    object/embed flash movie.
    The issue is that the GetVariable method wont return the
    object variable. When you try to get an simple variable that is in
    the _root timeline, it will return the value. Example:
    movie.GetVariable(_url) will return the url of the flash
    movie without any problem.
    But when you create an ActionScript class with
    userName property and then you will create the instance of
    it in the _root, you should be able to get it's value. Example:
    Flash:
    var obj = new SomeClass();
    obj.userName = "peter";
    JavaScript:
    movie.GetVariable("/obj:userName");
    or
    movie.GetVariable("obj.userName");
    This will return
    Peter for IE and null for Forefox/Opera.
    The same when you use the document.embeds[..].

  • HAP_Document BSP Application "Enter Objective Here "

    HI All BSP Expert and PMS Expert.
    BSP Standard application "HAP_DOCUMENT" Copy as a Z application. In Standard application "Enter Objective Here" Coming As Label but In Z Application i had changed as Input Field , That Input Field Values it  Does not save to R/3 System.
    So , Please it is urgent , Suggest me How to save that value to R/3 System.
    IF you have any document Related To this Query Please Mail  Me.
    id : pappu21198mehta @ gmail.com
    Thanks & Regard.
    Pappu Mehta.

    No need to email you the document related to this query. You can find it right [here|http://wiki.sdn.sap.com/wiki/display/HOME/Rules%20of%20Engagement?bc=true].
    Cheers
    Graham Robbo

  • How to invoke BPM object instance variable from interactive activity?

    I have a screenflow with an automatic activity "A" followed by an interactive activity "B". "B" calls a BPM object "X" and uses a JSP presentation to show its attributes. Is there a way to use another BPM object, say type "Y", create an instance variable of that type inside "A", and get its attributes values from the JSP page associated to "B"?
    Edited by: user6473912 on 20/07/2010 03:37 PM

    Try this. It assumes you have:
    <li> a user named "auto"
    <li> a project variable named "customerType"
    <li> an instance variable named "orderAmount" that is a decimal
    <li> an instance variable named "order" that is a BPM Object that has attributes named "customerName" and "amount"
    ps as ProcessService
    xmlObject as Fuego.Xml.XMLObject
    do 
      connectTo ps
          using url = Fuego.Server.directoryURL,
          user = "auto",
          password = "auto"
      instF as InstanceFilter
      create(instF, processService : ps)
      addAttributeTo(instF, variable : "customerType", comparator : IS, value : "Gold")
      instF.searchScope = SearchScope(participantScope : ParticipantScope.ALL, statusScope : StatusScope.ONLY_INPROCESS)
      for each inst in getInstancesByFilter(ps, filter : instF) do
        // here's how to get the value inside a primitive instance variable
        orderAmtObj as Object = getVar(inst, var : "orderAmount")
        // here's how to get the value of attributes inside a complex BPM Object instance variable
        //    - in this case this is an "order" object with two attributes (customerName and amount)
        orderObj as Object = (getVar(inst, var : "order"))
        xmlObject = Fuego.Xml.XMLObject(createXmlTextFor(DynamicXml, object : orderObj, topLevelTag : "xsi"))
        logMessage "The value of the order object's customer name is: " +
               selectString(xmlObject, xpath : "customerName")
        logMessage "The value of the order object's order amount is: " +
               selectNumber(xmlObject, xpath : "amount")
        // here's a rather uninspired way to retrieve who the participant is that was assigned the instance
        logMessage "The participant assigned to this instance is: " + inst.participantId
      end
    on exit
      disconnectFrom ps
    endDan

Maybe you are looking for

  • My MacBook Pro Retina crashes several times a week

    I have a late 2013 MacBook Pro, 15 inch, Retina, with the latest software updates installed.  It crashes several times a week, usually while I'm just surfing the web.  The most recent crash was different, it just fully locked up-  the pointer was mov

  • Photoshop Elements 10: Guided Edit options missing.

    My Full Edit is working just fine...however, when I click on Quick or Guided Edit, the options for editing are all missing. (These are the edits that come up on the right hand side.) I don't know if I clicked on something to make them go away...but I

  • Adding binlocation items from sales order to sales invoice through DI API

    Hi I  want to add items from sales order to sales invoice. when i am allocated bin locations for the item sales invoice is not adding is there any way to update BIN Location Alocation-Issue qty through DI API please help me.... regard, LakkshmiKantth

  • My iPod nano wont connect

    Okay, so my hubby has been using my ipod nano and it will no longer connect.  The when it is plugged it, nothing.  Any ideas?

  • Reformatted my C drive.

    I lost my copy of Adobe Photoshop Elements 11. I redownloaded it from Adobe but haven't got my serial number to activate the programme. Thank you for your help. [email protected]