SAPCONSOLE create own error screen

Hi,
i´ve just read Rich Heilman´s weblog "
Implementing Bell Signal Functionality in Sapconsole Transactions".
in my report i use SAP standard error screen '0999' by means of FM 'CALL_MESSAGE_SCREEN'.
i want to implement bell signal functionality in my error screen.Can i do it with SAP standard screen or do i have to create my own error screen?.
What do i have to consider when creating an own error screen?.
Best regards.

Hi,
after considering the question hat i finally intend to do is to create a new screen 9999 as a copy of screen 2999.
in order to do the copy i´ve been reading the documentation of SAP HELP and in SE51 i'd need to do thus:
From                                       
  Program        SAPLLMOB               
  Nº dynpro       2999                   
to                                        
  Program        SAPLXLRF               
  Nº dynpro       9999                   
and i would save it in a $tmp transport request.
is this correct?
Best regards.

Similar Messages

  • How can I create my own error log in sql

    I would like to create an error log table in sql where every time there is an error in sql and every time a stored procedure rolls back it should submit an entry into the error table to show where and what the error was.
    Thank you
    Debra has a question

    I think SQL Server does a fairly good job of creating, writing to, and reading from it's own built-in error log.  please see this link for details.
    http://sqlandme.com/2012/01/25/sql-server-reading-errorlog-with-xp_readerrorlog/
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Creating a splash screen for your app.

    Im trying to create a splash screen for my app but im not too sure how it's done.
    Im using the following piece of code.
    public static void main(String[] args)
              JPanel display = new JPanel();
              display.setPreferredSize(new Dimension( (300), (200) ));
              display.setBackground(Color.white);
                   // I WILL PUT AN IMAGE ICON ON A JLABEL HERE              
              display.setVisible(true);
                   // I WILL NEED A DELAY HERE
              test.instance();
    }The problem I am having is that the JPanel is not being displayed. I will also need a way to create a delay, I know that I can't just use Thread.sleep(5000); because the JPanel will require the thread to be running in order to display the panel.
    Does anyone know how I could get my JPanel to display and somehow insert a delay before test.instance();?
    Thanks.

    I made my own a few days before for a database program. It can be easily done with Threads.
    I recommend you create a new class to be used as the spalsh screen , it has to extends JFrame and implements Runnable.
    I ll give you an example. I used the spash screen to display the screen and also to laod the main GUI form so that when the spash screen dispose, the main GUI form displays instantly, making the user think that the application loads faster.
    public void run ()
            try
                 this.setVisible(true);
                 Thread.sleep(2000);
                 // sets the menu visible before disposing
                 guiMenu.setVisible(true);
                 // disposes the object and returns the resources to the OS
                 this.dispose();
            catch(InterruptedException exception)
                exception.printStackTrace();
    // this method must be implement in the class
    // that implements Runnable interface
    //MAIN
    public class Main
        public static void main(String[] args)
            Menu menu = new Menu();
            SplashScreen introScreen = new SplashScreen(menu);
            ExecutorService splashExecutor= Executors.newFixedThreadPool(1);
            splashExecutor.execute(introScreen);       
    }ExecutorService is a subinterface of Executor that declares methods for managing the threads. It also has the method execute (that provides the Executor interface) which when invoked calls the method public void run() of the argument class that must implement Runnable.
    Executors.newFixedThreadPool(1); creates a poll consisting of a 1 thread which is been used by splashExecutor to execute the Runnable.
    Hope i've been of some assistance!

  • RFC system error: Screen output without connection to user

    After running transaction SMWP, we nagivate to the "Parameters for object load management" node using the following path:
    Runtime Information -> Adapter Status Information -> Parameters in R/3 Backend(s) -> ECC -> Parameters for object load management
    Under the node “Parameters for object load management”, when we double click any of the entries we receive the following error message in the form of a pop-up: “RFC system error: Screen output without connection to user”.
    Has anyone encountered the aforementioned error?

    Hi,
    while creating the syncbo you have to give the RFC destination for corresponding Bapi wrappers
    so plz check that.
    and can you please explain the exact error in detail and add the trace..
    Regards
    Manohar

  • Error  Screen output without connection to user  DYNPRO_SEND_IN_BACKGROUND

    Hi Experts
    I am  trying to debbug a BADI (for shc)  in SRM 7.0 with external debugger.
    I placed a breakpoint in the BADI, and logged into the portal screen,it is  independent portal.
    when i start to create the shc i get the error:     Screen output without connection to user
    if i delete the breakpoint it work well.
    the user i work with, has a developer key and SAP_ALL.
    Runtime Errors      DYNPRO_SEND_IN_BACKGROUND
    Exception              CX_SY_SEND_DYNPRO_NO_RECEIVER
    Thanks
    Almog
    Edited by: almog126 on Jul 14, 2010 3:00 PM
    Edited by: almog126 on Jul 14, 2010 3:00 PM

    did you solve this?
    We have now the same problem with any external debugging (WebServices/WebDynpro).

  • After installing itunes and restarting computer, blue error screen comes up

    After I installed itunes 9 and restarting my computer a blue error screen came up. I had to restart my computer in safe mode and restore. Now itunes will not work. I have tried uninstalling and reinstalling various itunes, ipod, apple...etc programs and i get the blue error message again. HELP!

    What version of iTunes is installed in the Apple default location ..... /Applications/iTunes ???
    Drag the iTunes icon in the Dock to the Desktop and release; it will be deleted with a poof! Don't worry it's only an alias.
    In your Home Page ~/Library/Preferences/ ......... drag to the Trash and delete:
    com.apple.iTunes.plist and com.apple.iTunesHelper.plist
    (don't worry ... new ones will be created upon relaunch of iTunes .... +see below+)
    Using: /Applications/Utilities/Disk Utility/Repair Permissions
    RESTART the computer
    Within the Applicatons folder: double-click the iTunes icon ... if the launch is successful, drag a copy of the iTunes icon to the Dock ... release ... you will now have a current alias in the Dock.
    P.S. *Do Not* have the iPod connected to the computer during this process!
    DIXIE

  • Want to have own selection screen  in HR-ABAP report using LDB

    Hi experts,
            I am working on HR-ABAP report using LDB pnp and infotypes..But, here we get the built in selection criterion..but I want my own selection screen to be displayed..whats the solution for this??? Is it possible to create my own selection screen instead of default one..and how???
    Please help me..its very urgent..

    Hi,
    chk this out:
    Create Report Categories                                                                               
    In this step, you define the report categories and determine the layout
       of the standard selection screen for these report categories. You can 
       create report categories for programs or queries that are based on the
       PNP or PNPCE logical databases.                                                                               
    The definition of report categories is divided into two sections:                                                                               
    o   In the Change Report Category view, you define general attributes 
           such as sort order, input fields for date, and so on.                                                                               
    o   In the Change Selection Criteria view, you define which selection 
           fields of the logical database should be avaliable on the selection
           screen.                                                                               
    Example                                                                               
    You want to set up your system so that your employees can only start  
       evaluation reports for Payroll if they use a payroll area. Within a   
       payroll area, you should be able to select according to personnel     
       number. Additional selection criteria should not be possible and you  
       should not be allowed to enter a sort sequence.                       
    Standard settings                                                                               
    The standard system already contains report categories. You can find the 
    attributes of the report categories in the table.                                                                               
    Note the following five report categories in particular:                                                                               
    o   Report category ' ' is the SAP default report category for     
        programs that are based on the PNP logical database.                                                                               
    o   Report category PNPCE is the SAP default category for programs that  
        are based on the PNPCE logical database.                                                                               
    o   Report category '00000000' is the customer-specific default category 
        for programs that are based on the PNP logical database.                                                                               
    o   Report category '0PNPCE' is the customer-specific default category   
        for programs that are based on the PNPCE logical database.                                                                               
    o   Report category __X2001 is the default category for Queries  that    
        are based on an InfoSet of the PNP LDB.                                                                               
    o   Report category QUEPNPCE is the default category for queries that    
        are based on an InfoSet of the PNPCE LDB.                                                                               
    The default report categories are used when a report is called if    
        the report has not been assigned a report category.                  
    Parameters and Options for Report Categories of the LDB PNP and PNPCE  
    Parameters and Options in Screen Area General Data                     
       If you activate this parameter, you can only enter data on the data
       selection period if you use reports that have been assigned. The   
       same date entries are then used for the person selection as for the
       date selection.                                                                               
    o   Matchcode allowed                                                  
       If you activate this parameter, you have use of a Matchcode        
       pushbutton (search help) if you use reports that have been assigned.
       This pushbutton enables you to perform the person selection.                                                                               
    o   Sort allowed                                                       
       If you activate this parameter, you have use of a Sort pushbutton if
       you use report that have been assigned. This pushbutton enables you
       to define a sort order before you execute the report.                                                                               
    o   Organizational structure allowed                                   
       If you activate this parameter, you have use of an Org.Structure   
       pushbutton if you use reports that have been assigned. This        
       pushbutton enables you to perform the person selection.            
       Note:                                                              
       For more information about these options, see the online           
       documentation under this path:                                     
       SAP Library -> Human Resources -> Reporting in Human Resources     
       Management -> Standard HR Reports -> Report Selection Screen in    
       Human Resources Management.                                                                               
    Parameters and Options in Screen Areas Data Selection Period/Person    
    Selection Period/Payroll Area/Period/Year                                                                               
    o   Options for data selection period and person selection period (key 
        date and so on)                                                    
        Here you define which options for date and person selection are    
        available for reports that have been assigned.                                                                               
    o   Options for payroll area/period/year                               
        Here you define which options for selection using payroll          
        area/period/year are available for reports that have been assigned.                                                                               
    Parameters and Options in Screen Area Selection View                                                                               
    o   Type/Name                                                          
        This parameter enables you to use selection views to define report 
        categories. You use the selection view selected here to determine  
        which fields are available in the Dynamic Selectionsy.                                                                               
    Note:                                                              
        You create selection views for the PNP and PNPCE logical databases 
        in the Object Navigator (SE80):                                    
        1. Start the Object Navigator (SE80)                               
        2. Choose Workbench -> Edit Object.                                
        3. Choose the More... tab page and the Selection view on this tab  
        page.                                                              
        4. Choose Create.                                                  
        5. In the Create Selection View dialog box, choose the For any     
        tables option.                                                     
        6. In the Name of view field, enter a name for your selection view.
        7. In the Tables dialog box, enter the name of the table from which
        you want to use fields.                                            
        Note:                                                              
        When you enter the table name, observe the naming convention in    
        Personnel Administration:                                          
        Infotype number: nnnn -> table name: PAnnnn                        
        8. Choose Continue.                                                
        9. In the Functional groups area, define functional groups by      
        assigning a name and a number.                                     
        10. Assign fields from the selected tables to the functional groups
        by entering the number of the desired functional group in front of 
        each field.                                                        
        11. Save your entries.                                                                               
    For more information about adjusting the dynamic selections using 
    your own selection views, see the online documentation under the  
    following menu path:                                              
    SAP Library -> Human Resources -> Reporting in Human Resources    
    Management -> HR Standard Reports -> Report Selection Screen in   
    Human Resources Management -> Enhancing the Selection Screen -    
    Dynamic Selections.                                                                               
    If you do not want to offer dynamic selections, make the following
    settings:                                                                               
    -   LDB PNP: In the Selection view field, enter PNP_NO_FREE_SEL.  
    -   LDB PNPCE: Leave the Selection view field empty.                                                                               
    Parameters and Options in Screen Area Data Selection Period/Person   
    Selection Period/Payroll Area/Period/Year                                                                               
    o   Available input parameters, date or period entry (today, key date,
       all, and so on), and standard value.                             
       Using the Standard value option, you define which of the selected
       options is shown.                                                                               
    Parameters and Options in Screen Area CE Selection Fields                                                                               
    o   CE selection fields (external person ID, grouping reason, grouping
       value)                                                           
       Using the options in this area, you define whether the external  
       person Id, grouping reason, or grouping value are available on the
       selection screen.                                                
       Note:                                                            
       These parameters are only relevant for you if you implement      
       Concurrent Employment (see also note 517071).                                                                               
    Parameters and Options in Screen Area Selection view                                                                               
    o   Dynamic selections as dialog box                                  
        If this switch is set, you can call the dynamic selections as a   
        dialog box.                                                                               
    o   Dynamic selections active                                         
        If this switch is set, the dynamic selections of the logical      
        database are active at the start of the report.                                                                               
    Note that the following combinations are possible for the last two
        options mentioned:                                                                               
    Dyn.Sel. as dialog box/Dyn.Sel. active: inactive/inactive         
        Dyn.Sel. as dialog box/Dyn.Sel. active: inactive/active           
        Dyn.Sel. as dialog box/Dyn.Sel. active: active/inactive                                                                               
    Activities                                                                               
    1.  Choose Edit -> New entries.                                                                               
    2.  Enter an abbreviation and a long text for the report category.         
        The customer name range for report categories is 0-9.                                                                               
    3.  Select the For the PNPCE logical database checkbox, if you want to     
        create a report category for a program or for queries of the PNPCE     
        logical database.                                                                               
    4.  In the General Data screen area, choose the desired options.           
        If you want to use selection IDs, you must have first created and      
        grouped selection Ids. The IMG path to do this is given in the         
        parameter description section.                                                                               
    5.  In the Data selection period/person selection period or Selection      
        period screen area, choose the desired options.                                                                               
    6.  In the Selection view screen area, choose the desired options.                                                                               
    7.  In the CE selection fields screen area, choose the desired (only       
        possible for report categories of the LDB PNPCE).                                                                               
    8.  Save your entries.                                                                               
    9.  Choose the subactivity Permitted selection criteria.                                                                               
    10. Choose Edit -> New entries.                                                                               
    11. In the Select option field, use the input help to select each field    
        that should be available on the selection screen.                                                                               
    12. Select the checkbox in the 1.page column, if you want this selection   
        field to be available directly when you call the selection screen.                                                                               
    Further notes                                                                               
    13. If you want to copy entries, you still have to enter the selection     
        parameters again in the subsequent screen.                                                                               
    o   If you create the report category '000000000', a selection screen is   
        generated according to report category '00000000'for all reports for   
        which a report category has not explicitly been assigned.                                                                               
    Assign Report Categories                                                                               
    In this step, you assign a report category to your reports.                                                                               
    Example                                                                               
    You have created your own report, for example ZPCTEST1, and would like
        it to have the selection screen that corresponds to that of the       
        evaluation report for Payroll, which is assigned to report category   
        '__M00001'.                                                           
        Assign report category '__M00001' to the report.                                                                               
    Requirements                                                                               
    You must have defined the Report Categories.                                                                               
    Standard settings                                                                               
    SAP Standard Reports:                                                                               
    In the standard system, reports are assigned a report category. If you
        want to override these assignments, perform the activities described  
        here. If you want to assign report categories to standard reports using
        SE38, this represents a modification.                                                                               
    Customer-Specific Reports:                                                                               
    For reports you have developed yourself, you can either assign report 
        categories by performing the activities described here or directly in SE38.
    Recommendation                                                                               
    Only assign a report category if you have created your own reports or if  
    the selection screens in the standard system do not meet your             
    requirements.                                                                               
    Activities                                                                               
    1.  Choose Edit -> New entries.                                                                               
    2.  Perform the required assignment using the Program name and Report     
       category fields.                                                                               
    3.  Save your entries.                   
    reward if helpful
    regards,
    madhumitha

  • Directshow + JNI 1.2( NewDirectByteBuffer ) + JMF = Fatal Error Screen

    Hi,
    I have a stream in directshow with a SampleGrabberFilter for the video and another for the audio. I'm using the code of https://jmds.dev.java.net/ for implementing the layer directchow.
    After, I'm trying to create a datasource for JMF with the example "Generating Live Audio/Video Data [Custom DataSource]"
    (http://java.sun.com/products/java-media/jmf/2.1.1/solutions/LiveData.html)
    But I cannot transfer the buffer in SampleGrabberFilter through JNI 1.2. and I don't find a good example for helping me.
    Could you help me ?
    Karima
    Here a part of my code :
    public class LiveStream implements PushBufferStream {
    public void read(Buffer _buffer) throws IOException { /////////////////////// Fatal Error Screen !!! Here...
            Object data = _buffer.getData();
             int length = ((VideoFormat) myFormat).getMaxDataLength();
             ByteBuffer newdata = createAndfillByteBuffer(length);
              buffer.setData(newdata);
             _buffer.setOffset(0);
             _buffer.setFormat(myFormat);
             _buffer.setLength(newdata.limit());
             _buffer.setTimeStamp(Buffer.TIME_UNKNOWN);
             _buffer.notifyAll();
    public void setTransferHandler(BufferTransferHandler _transferHandler) {
            myTransferHandler = _transferHandler;
            private class CaptureRunnable implements Runnable {
         public void run() {
              start0();
              // notify sleepers that we're done starting up
              synchronized (myRestartLock) {
                   myRestartLock.notifyAll();
              // chill until there is data in the buffer
              while (!myStopRequested && getBufferSize() == 0) {
                         try {
                   Thread.sleep(100);
                            }catch (Throwable t) {
                        t.printStackTrace();
              // grab frames as fast as possible
              while (!myStopRequested) {
                   if (myTransferHandler != null) {
                             myTransferHandler.transferData(LiveStream.this);
                   else {
                            // if there's no transfer handler, just wait for a bit and try again
                        try {
                                  Thread.sleep(100);
                        }catch (Throwable t) {}
                        // This sleep is here because there is the
                        // potential that you can starve your PC
                        // while polling the capture card for video.
                        try {
                             Thread.sleep(20);
                        }catch (Throwable t) {}
              stop0();
              // notify waiters that we're done stopping the thread
              synchronized (myRestartLock) {
                   myStarted = false;
                   myRestartLock.notify();
    private native void start0(); // Run the Graph in directshow
    private native void stop0();  //stop the Graph in directshow
    private native ByteBuffer createAndfillByteBuffer(int capacity);
    ///////////////////// C
    long MAX_BufferVideo = 1024;
    BYTE * tabBufferVideo;
    JNIEXPORT  jobject JNICALL Java_com_mycompagny_media_protocol_Camera_LiveStream_createAndfillByteBuffer
    (JNIEnv * pEnv, jobject jLiveStream,  jint jcapacity){
         HRESULT hr;
         long MaxBuffer = MAX_BufferVideo;
         long cbBufferLength = -1;
         hr = g_pSampleGrabberVideo->GetCurrentBuffer(&cbBufferLength, NULL);
         if (hr != VFW_E_WRONG_STATE) {
         CheckForFailure(pEnv, "Failed to get buffer size.", hr);
         long jLength = (long) jcapacity ;//pEnv->GetDirectBufferCapacity(jByteBuffer);
         if (jLength < MaxBuffer){
              MaxBuffer = jLength;
         if (cbBufferLength < MaxBuffer) {
                              MaxBuffer = cbBufferLength;
         HRESULT hrInitialize = CoInitialize(NULL);
         CheckForFailure(pEnv, "CoInitialize Failed.", hrInitialize);
         g_pSampleGrabberVideo->GetCurrentBuffer(&MaxBuffer,(long *)tabBufferVideo);
         CheckForFailure(pEnv, "Failed to fill buffer.", hr);
         if (hrInitialize == S_OK) {
              CoUninitialize();
         return pEnv->NewDirectByteBuffer(tabBufferVideo,MaxBuffer);
         return NULL;
    }

    1. Did you call g_pSampleGrabberVideo->SetBufferSamples( TRUE ) on the sample grabber?
      long MAX_BufferVideo = 1024;
    // global variableBYTE * tabBufferVideo; // global variable
    2. Where are you allocating the memory for BYTE* tabBufferVideo?
    JNIEXPORT void JNICALL Java_mycompany_LiveStream_connect(JNIEnv * pEnv, jobject jDataSource){
    ...// add filters
         CComPtr<ISampleGrabber> pSampleGrabberVideo = NULL;
         hr = pGrabberVideo->QueryInterface(IID_ISampleGrabber, (void**)&pSampleGrabberVideo);
         CheckForFailure(pEnv, "Failed to retrieve sample grabber Video interface.", hr);
         hr = pSampleGrabberVideo->SetBufferSamples(TRUE);
         CheckForFailure(pEnv, "Failed to turn on buffering on sample grabber Video.", hr);
    ... //connect filters
         if(tabBufferVideo == NULL)
         if (!(tabBufferVideo = (BYTE *)malloc(MAX_BufferVideo))) {
              FailWithException(pEnv, "Cannot create the buffer Video ", E_FAIL);

  • Creating a login screen.

    I saw another post by some-one trying to create a login screen. I used the example that someone responded with and managed to get it working.
    However I then tried to edit it to connect to a database and then got a Tomcat error saying "The value for the useBean class attribute Website.Login is invalid."
    Can anyone see anything wrong with this code?
       <html>
                 <body>
                           <form    method=post    action=do-log.jsp>
                             <input   type=text      name='text1'>
                                     <input   type=text      name='text2'>
                              <input   type=submit>
                            </form>
                     </body>
                     </html>
                     <html>
    <%@ page import="java.util.Date"%>
    <%@ page import="java.net.*"%>
    <jsp:useBean id="myForm" class="Website.Login" scope="session" />
    <jsp:setProperty name="myForm" property="*"/>
    <%
    myForm.MakeConnection();
    myForm.login();
    String name = myForm.getUser();
    System.out.println("\nusername from String: "+name);
    System.out.println("\nusername from database: "+myForm.getUser());
    System.out.println("\nresult of boolean: "+myForm.getbool());
    if(myForm.getbool() == true && myForm.getpreferences().equals("Golf"))
    %>
    <jsp:forward page = "Golf.jsp"/>
    <%
    else if(myForm.getbool() == true && myForm.getpreferences().equals("Rugby"))
    %>
    <jsp:forward page= "Rugby.jsp"/>
    <%
    else if(myForm.getbool() == true && myForm.getpreferences().equals("Soccer"))
    %>
    <jsp:forward page= "Soccer.jsp"/>
    <%
    else
    System.out.println("failure");
    %>
    <jsp:forward page = "Login.html"/>
    <%
    %>
    package Website;
    import java.io.*;
    import java.sql.*;
    import java.text.*;
    public class Login
         Connection db;     
           Statement  st;     
           private ResultSet rsetlogin;
        String user;
        String pass;
        public void setUser(String user) {
            this.user = user;
        public String getUser() {
            return this.user;
        public void setPass(String pass) {
            this.pass = pass;
        public String getPass() {
            return this.pass;
        public Login(String args[]) throws ClassNotFoundException, FileNotFoundException, IOException, SQLException
           MakeConnection();
            System.out.println("Now closing the connection");
        st.close();
        db.close();
        public void MakeConnection()throws ClassNotFoundException, FileNotFoundException, IOException, SQLException
            String url = "jdbc:postgresql:database";
        String usr = "postgres";
        String pwd = "dune";
        // Load the driver
        Class.forName("org.postgresql.Driver");
        // Connect to database
        System.out.println("Connecting to Database URL = " + url);
        db = DriverManager.getConnection(url, usr, pwd);
        System.out.println("Connected...Now creating a statement");
        st = db.createStatement();
         public void userLogin(String user, String pass) {
        this.user = user;
        this.pass = pass;
         boolean validpass = false;
    //method to log in.
        public boolean getbool(){return validpass;}
         public void login()
              String usernameIn;
              String passwordIn;
              try
                   Statement stmt = db.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
                   rsetlogin = stmt.executeQuery("SELECT Username,Cust_Password, Prefered_Sport  FROM Customer WHERE Username ='"+getUser()+"'");
                   while(rsetlogin.next())
                        usernameIn = rsetlogin.getString(1);
                        passwordIn = rsetlogin.getString(2);
                        if(usernameIn.equals(getUser()) && passwordIn.equals(getPass()))
                             validpass = true;
                             System.out.println("log in success");
                             setUser(rsetlogin.getString(1));
                             setPass(rsetlogin.getString(2))     ;
                        else if(!usernameIn.equals(getUser()) || !passwordIn.equals(getPass()))
                             System.out.println("log in failure");
                             validpass = false;
              catch (SQLException e)
                   System.out.print("Error at login");
                   e.printStackTrace();
         public static void main(String args[])
        System.out.println("PostgreSQL basic test v6.3 rev 1\n");
    }

    Ok thanks for all your help. It's abit too selfish to ask you are help again (I'm using a different screen-name as I had difficulty logging back in).
    But if anyone else has any suggestion please feel free to share. Basically the login is failing and is promting the user to the index.htm file even though I entered the right password.
       <html>
                 <body>
                           <form    method=post    action=do-log.jsp>
                             <input   type=text      name='Username'>
                                     <input   type=text      name='Cust_Password'>
                                     <input   type=text      name='PreferedSport'>
                              <input   type=submit>
                            </form>
                     </body>
                     </html>
                     <html>
    <%@ page import="java.util.Date"%>
    <%@ page import="java.net.*"%>
    <jsp:useBean id="myForm" class="Website.Login" scope="session" />
    <jsp:setProperty name="myForm" property="*"/>
    <%
    myForm.MakeConnection();
    myForm.getUsername();
    myForm.getCust_Password();
    myForm.getPrefered_Sport();
    if(myForm.getbool() == true && myForm.getPrefered_Sport().equals("swimming"))
    %>
    <jsp:forward page = "swimming.jsp"/>
    <%
    else if(myForm.getbool() == true && myForm.getPrefered_Sport().equals("Tennis"))
    %>
    <jsp:forward page= "Tennis.jsp"/>
    <%
    else if(myForm.getbool() == true && myForm.getPrefered_Sport().equals("Soccer"))
    %>
    <jsp:forward page= "Soccer.jsp"/>
    <%
    else
    System.out.println("failure");
    %>
    <jsp:forward page = "index.htm"/>
    <%
    myForm.close();
    %>
    package Website;
    import java.io.*;
    import java.sql.*;
    import java.text.*;
    public class Login
         Connection db;     
           Statement  st;     
           private ResultSet rsetlogin;
        String Username;
        String Cust_Password;
        String Prefered_Sport;
        public void setUser(String Username) {
            this.Username = Username;
        public String getUsername() {
            return this.Username;
        public void setCust_Password(String Cust_Password) {
            this.Cust_Password = Cust_Password;
        public String getCust_Password() {
            return this.Cust_Password;
        public void setPrefered_Sport(String Prefered_Sport)
             this.Prefered_Sport=Prefered_Sport;
        public String getPrefered_Sport()
             return this.Prefered_Sport;
        public Login() throws ClassNotFoundException, FileNotFoundException, IOException, SQLException
        public void MakeConnection()throws ClassNotFoundException, FileNotFoundException, IOException, SQLException
            String url = "jdbc:postgresql:database";
        String usr = "postgres";
        String pwd = "dune";
        // Load the driver
        Class.forName("org.postgresql.Driver");
        // Connect to database
        System.out.println("Connecting to Database URL = " + url);
        db = DriverManager.getConnection(url, usr, pwd);
        System.out.println("Connected...Now creating a statement");
        st = db.createStatement();
         boolean validpass = false;
    //method to log in.
        public boolean getbool(){return validpass;}
         public void login()
              String usernameIn;
              String passwordIn;
              try
                   Statement stmt = db.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
                   rsetlogin = stmt.executeQuery("SELECT Username,Cust_Password,  FROM Customer WHERE Username ='"+getUsername()+"'");
                   while(rsetlogin.next())
                        usernameIn = rsetlogin.getString(1);
                        passwordIn = rsetlogin.getString(2);
                        if(usernameIn.equals(getUsername()) && passwordIn.equals(getCust_Password()))
                             validpass = true;
                             System.out.println("log in success");
                             setUser(rsetlogin.getString(1));
                             setCust_Password(rsetlogin.getString(2))     ;
                        else if(!usernameIn.equals(getUsername()) || !passwordIn.equals(getCust_Password()))
                             System.out.println("log in failure");
                             validpass = false;
              catch (SQLException e)
                   System.out.print("Error at login");
                   e.printStackTrace();
         public void close()
             try
                  db.close();
             catch (Exception e)
                   System.out.print("error at database close");          
                   e.printStackTrace();
         public static void main(String args[])
        System.out.println("PostgreSQL basic test v6.3 rev 1\n");
    }

  • How to create own customized screensaver on Windows 7 Embedded Standard sp1

    Hi Support,
                      How to create own customized screensaver on Windows 7 Embedded Standard sp1 OS.
    Regards
    YASH PAL SINGH

    This forum is for POSReady. wES7 forum can be found here:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=quebecmisc
    Create the screen saver in Windows 7 first and then put the file in the distribution share to be included in the image. There are tools that can help create a custom screen saver:
    http://download.cnet.com/windows/screensaver-editors-and-tools
    www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WE8S, Pro Guide to WES 7, Pro Guide to POS for .NET

  • Rule Author-How to use own JSP screen instead of Rule Author Customization

    hi' I am using Oracle Business Rules and creating Rule Repository using Rule Author however
    I want to use my own JSP screen for customization of Rules instead of using Rule Author customization screen.
    please tell me how to do this.
    thanks
    Yatan
    Edited by: Yatanveer Singh on Jan 29, 2009 5:19 AM

    oracle provides API to edit rule repository programmatically. To use your custom JSP pages you need to write your wrapper classes over following oracle rule API classes:
    oracle.rules.sdk.editor.ruleset.Rule
    oracle.rules.sdk.editor.ruleset.RuleSet
    oracle.rules.sdk.editor.ruleset.Action;
    oracle.rules.sdk.editor.ruleset.AdvancedExpression;
    oracle.rules.sdk.editor.ruleset.Expression;
    oracle.rules.sdk.editor.ruleset.Pattern;
    oracle.rules.sdk.editor.ruleset.SimpleTest
    Once you create wrapper you can use them as pojos to build your custom rule author screen.

  • Creating own datatypes/handles

    Hello!
    I have a C library which has differents functions that expect various handles (uint32) as parameters. Calling these functions from within LabVIEW is not a problem. What I want to do is make these handles avaible to the outside, accessible through a SubVI connector, somehow comparable to the "Tasks" in DAQmx functions. I can without problem give them as uint32, however this way different types of handles can easily get mixed up as they all appear as blue lines and look like some integers and are not typechecked at all.
    Is there a possibility to create own datatypes in LabVIEW that basically can be translated to a simple uint32 in order to pass them to a DLL but to avoid mixing up different types of handles outside of the SubVI. It would be comparable to some C "typedef" with additional typechecking when they are passed to a SubVI. This would simplify the use of the VIs I am creating siginificantly as errors with mixed up handles are very hard to spot and cause major run-time errors. Additionally it would be very helpful if it was able to create its own coloring/design for the lines and connectors to make the block diagram look cleaner.
    I am using LabVIEW 8.5.1.  
    Best regards! 

    Two ideas come to mind.
    Type cast your U32 as an datalog reference. That will only give you the option for a green wire. But its traditional and has been around for a long time.
    LVOOP lets you define the appearence of the wires used by a class. So wrapping your dll inside a privat method in its class will give you custom wires.
    Ben
    Message Edited by Ben on 03-12-2009 01:07 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Wire_Colors.PNG ‏26 KB

  • PA30 Create Employee Payments Screen

    Hi In My System F1 Function is not working...
    In PA30 TCode, Create Employee Payments Screen...
    Security Amount field is not accepting the value 1 Crore...It gives the error Entry too long...
    I went to the Table PA9060 and the field AMNT and changed the length by assigning user defined domain...
    Previous length was 9 and decimal 2... I changed that to length 12 and decimal 2
    still it is giving the same error...
    Pls help me...
    Thanks
    Rajkamal

    SAS, Gautham...
    the problem was with the output length...
    I only changed the length...but forgot to change the Output length...
    Now the Problem is solved...
    Thanks Friends...
    Rajkamal

  • How to define our own selection screen for logical database  in abap-hr?

    Hi Friends,
    Can u please help me
    How to define your own selection screens for  logical database.
    we use to do like(goto->attributes-HRReportcatagerious ).but How to desin using  customer table like t599c, t599f and how to add to my logical database?
    Thanks in advance
    charan

    check out this online help
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dba65c35c111d1829f0000e829fbfe/frameset.htm
    Regards
    Raja

  • Can't Create Bean Error

    I modified the numguess example that comes with tomcat but I get a "can't create bean" error message when I call my jsp file. If anyone can see what I'm doing wrong or suggest ways to discover the problem I'd appreciate it.
    My modified jsp:
    <!--
    Copyright (c) 1999 The Apache Software Foundation. All rights
    reserved.
    Number Guess Game
    Written by Jason Hunter, CTO, K&A Software
    http://www.servlets.com
    -->
    <%@ page import = "num.NumberGuessBean" %>
    <jsp:useBean id="numguess" class="num.NumberGuessBean" scope="session"/>
    <jsp:setProperty name="numguess" property="*"/>
    <html>
    <head><title>Number Guess</title></head>
    <body bgcolor="white">
    <font size=4>
    <% if (numguess.getSuccess()) { %>
    Congratulations! You got it.
    And after just <%= numguess.getNumGuesses() %> tries.<p>
    <% numguess.reset(); %>
    Care to try again?
    <% } else if (numguess.getNumGuesses() == 0) { %>
    Welcome to the Number Guess game.<p>
    Play with default limits ( a number between 0 and 100)<p>
    or enter upper and lower limits.<p>
    <form method=get>
    Play with defaults?: <input type=radio name=default value="yes">Yes
    <input type=radio name=default value="no">No
    <\form>
    <% if (numguess.getRadio().equals("no")) { %>
    <form method=get>
    Enter upper limit:<input type=text name=upperLimit>
    Enter lower limit:<input type=text name=lowerLimit>
    <\form>
    <% numguess.reset(); %>
    <% } %>
    <form method=get>
    What's your guess? <input type=text name=guess>
    <input type=submit value="Submit">
    </form>
    <% } else { %>
    Good guess, but nope. Try <b><%= numguess.getHint() %></b>.
    You have made <%= numguess.getNumGuesses() %> guesses.<p>
    I'm thinking of a number between <jsp:getProperty name="numguess" property="lowerLimit"/> and <jsp:getProperty name="numguess" property="upperLimit"/>.<p>
    <form method=get>
    What's your guess? <input type=text name=guess>
    <input type=submit value="Submit">
    </form>
    <% } %>
    </font>
    </body>
    </html>
    and the modified bean:
    * ====================================================================
    * The Apache Software License, Version 1.1
    * Copyright (c) 1999 The Apache Software Foundation. All rights
    * reserved.
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
    * 1. Redistributions of source code must retain the above copyright
    * notice, this list of conditions and the following disclaimer.
    * 2. Redistributions in binary form must reproduce the above copyright
    * notice, this list of conditions and the following disclaimer in
    * the documentation and/or other materials provided with the
    * distribution.
    * 3. The end-user documentation included with the redistribution, if
    * any, must include the following acknowlegement:
    * "This product includes software developed by the
    * Apache Software Foundation (http://www.apache.org/)."
    * Alternately, this acknowlegement may appear in the software itself,
    * if and wherever such third-party acknowlegements normally appear.
    * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
    * Foundation" must not be used to endorse or promote products derived
    * from this software without prior written permission. For written
    * permission, please contact [email protected].
    * 5. Products derived from this software may not be called "Apache"
    * nor may "Apache" appear in their names without prior written
    * permission of the Apache Group.
    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
    * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    * SUCH DAMAGE.
    * ====================================================================
    * This software consists of voluntary contributions made by many
    * individuals on behalf of the Apache Software Foundation. For more
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    * Originally written by Jason Hunter, http://www.servlets.com.
    package num;
    import java.util.*;
    public class NumberGuessBean {
    int answer;
    boolean success;
    String hint;
    int numGuesses;
    String radiochoice;
    int lowerLimit=0;
    int upperLimit=100;
    String error;
    public NumberGuessBean() {
    reset();
    public void setGuess(String guess) {
    numGuesses++;
    int g;
    try {
    g = Integer.parseInt(guess);
    catch (NumberFormatException e) {
    g = -1;
    if (g == answer) {
    success = true;
    else if (g == -1) {
    hint = "a number next time";
    else if (g < answer) {
    hint = "higher";
    else if (g > answer) {
    hint = "lower";
    public void setRadio(String s) {
         radiochoice=s;
    public String getRadio() {
         return radiochoice;
    public void setLowerLimit( int lowerLimit) {
         this.lowerLimit=lowerLimit;
    public int getLowerLimit() {
         return lowerLimit;
    public void setUpperLimit(int upperLimit) {
         this.upperLimit=upperLimit;
    public int getUpperLimit() {
         return upperLimit;
    public boolean getSuccess() {
    return success;
    public String getHint() {
    return "" + hint;
    public String getError() {
         return ""+error;
    public int getNumGuesses() {
    return numGuesses;
    public void reset() {
         if (getRadio().equals("yes")) {
              answer = (int)(Math.random()*100);
         else {
              int i;
              i=(int)(Math.random()*upperLimit);
              if (i<lowerLimit) {
                   i=i+lowerLimit;
              answer=i;
         success = false;
    numGuesses = 0;

    implement synchronizable and createa constructor, then check it once again.

Maybe you are looking for