Database login form j2me

Hello
Using netbeans for mobile and j2me, where can i find java samples or resources that show me how to access a internet database(mdb or sql, using asp/php) from my mobile to validate a login form(my jar application)?
obrigado thanks in portuguese
aquiles boi�a

you can use the servlet+jdbc to fetch database !!
there is example avail for that on java.sun.com site
[email protected]

Similar Messages

  • Database login through OEM

    Dear all,
    When try to log in to target database in OEM, the web browser hanging for a long time before disconnecting.
    The browser interface is as the follwoing. Even connect as sysdba doesn't work.
    Username:
    Password:
    Database:
    Connect As:
    The user account can connect to database using sqlplus and host login through OEM works fine too. Could some one give a hint on this problem?
    Thanks
    Jiang

    I hope the following is a better description.
    After log in to OEM browser located in the OMS server, select a target database instance, which is in the remote machine. The following page has four tabs, Home, Performance, Administration and Maintenance. Select Performance, the next page is Database login form needs following information:
    user name:
    password:
    Database:
    Connect As.
    Although I provide the correct information, the connection is hang for ever. The database instance is up and running.
    Jiang.

  • I want to create a login form by using servlets with database validation.

    Would you please provide me a code for a login form using servlets with Ms Access database validation?

    No. This is not a free coding service. Your request is (a) ridiculous, (b) offensive, and (c) off-topic. Locking this thread for later deletion.

  • Forms 9i Running & Database Login

    Hai,
    I am having a problem with forms 9i
    I installed Oracle9ias & configured everything is ok
    while opening the form from the browser it is asking database login. I kept the entry in formsweb.cfg for the database login. but it is not taking.
    if anyone knows please help me.

    OK, I know this does not make logical sense, but could you try you url without letting the form name default to what is in the formsweb.cfg. In other words, make the url:
    http://dgmofiora.adil.com/forms90/f90servlet?config=mojcnfg&form=c:\mainform.fmx
    I run on unix and am not real familiar with Windows, so I may have the slashes going the wrong way.

  • Missing DataBase Login information for deployed VS2008 w/Crystal Report

    I'm creating a Windows Form application using VS2008 Pro and the basic Crystal Reports (included).</br></br>
    I've successfully added a crystalreportviewer control and a crystal report (.rpt) to my form. I've written the following code in the code behind to programmatically load/bind the report to the viewer. Everything works fine on my development machine (or any machine that has Visual Studio installed). Where I'm encountering problems is when I deploy the application to a machine that does not have VS installed (I have downloaded and installed the "Crystal Reports Basic for Visual Studio 2008 Redistributable Package" for the appropriate processor type on this non development machine) that I'm getting an error . It prompts for "DataBase Login". The ServerName, LoginID and Password are all there, but the "DataBase" field is empty and disable for user input.</br></br>
    Why is the DataBase information missing? How can I solve this problem?</br></br>
    (On a side note, I vaguely remember a property for enabling/disabling the prompting of the database login. I can't remember where this was again to double check if that is the culprit. But I'm pretty sure that I did mark it as to not prompt, since it's supplied in the code behind. Plus it doesn't prompt on the development machines. Only on the non-development machines).</br></br>
    Any help is greatly appreciated! Thanks.</br></br>
    The code executed in the PageLoad event of the form.</br></br>
    this.crystalReportViewer1.RefreshReport();</br>
                ReportDocument reportDocument = new ReportDocument();</br></br>
                #region Load Parameters</br></br>
                ParameterFields paramFields = new ParameterFields();</br></br>
                for (int i = 0; i < _parameterName.Length; i++)</br>
                {</br>
                    ParameterField paramField = new ParameterField();</br>
                    paramField.ParameterFieldName = _parameterName<i>;</br>
                    ParameterDiscreteValue discreteVal = new ParameterDiscreteValue();</br>
                    discreteVal.Value = _parameterValues<i>;</br>
                    paramField.CurrentValues.Add(discreteVal);</br>
                    paramFields.Add(paramField);</br>
                }</br></br>
                crystalReportViewer1.ParameterFieldInfo = paramFields;</br></br>
                #endregion</br></br>
                #region Load Report</br></br>
                string reportUrl = "";</br></br>
                string exePath = Application.ExecutablePath.ToString();</br>
                exePath = exePath.Remove(exePath.Length - 18, 18);</br>
                exePath += _reportName + ".rpt";</br>
                reportUrl = exePath;</br>
                reportDocument.Load(reportUrl);</br>
               #endregion</br></br>
               reportDocument.SetDatabaseLogon("myUserName", "myPassword", "myServer", "myDataBase");</br></br>
                crystalReportViewer1.ReportSource = reportDocument;
    </br></br>
    Edited by: mtech8 on Jan 9, 2010 3:03 PM. Corrected formatting issues to make post readable.

    HI. Ludek,
    Thanks for the tips. I tried both, but the problem presists.
    On a side note, I did get my hands on yet another "non-development machine". This one ran with Window's Vista appeared to work (even with my original code).
    The "non-development machines" that I've tested on are Windows 7 and Window XP machines. On these machines, when I commented out the reportDocument.SetDatabaseLogon line, when I try to load the report, it still prompts for the Database Logon information, however, it also has the "Database name" empty and disabled.
    Since it worked on a non-development machine with Win Vista. I don't think there is a problem with references or the Crystal runtime packages.
    As far as permission for the report to contact the database, I'm guessing there isn't a problem there either because the application does successfully connect to the database.
    I'm connecting to a SQL2005 database and using the SQL Native connection.
    On a side note: as for the enabling prompting, I just remembered that it was an option available when using Crystal Reports with a web project. Thus I couldn't find it here with a Window's Form project.

  • Crystal Report Print Preview presenting users with Database Login

    Issue
    A user amended a crystal report form, on doing so has now made that Form unavailable to the majority of users to Print or Preview this is in 8.8 PL10. All other users on Previewing are presented with a window  Database Login, but this only presents the server name, Database name is blank and greyed out and then there is only Login ID and Password available. If you enter in the database password a message appears stating failed login.
    We have access to the SAP server and logged in and get the same message! but on the users machine who amended the Form they can print? any suggestions greatly appreciated

    Hi Roger,
    The problem sounds similar to what I've had recently, it was resolved by changing the database connection type to SAP Business One in Crystal Reports 2008, I can confirm that using OLE DB or other will still cause the login issue on other machines off the SQL server, the SAP Business one connection solves the issue.
    I was fighting with this for hours, hope this helps you all.

  • Parameters and database login with Web Services SDK

    I need to know how to do the two most common report tasks through the Web Services interface to Crystal Reports Server 2008:
    How do I get a list of a report's parameters and set the parameter's values?
    How do I set the database login information?
    I have considerable experience with writing custom web interfaces for Business Objects Enterprise with .NET, but now we're supposed to use web services instead of Enterprise services, especially when writing Windows forms apps. The official line is that writing thick client apps using Enterprise services is "possible but not supported." I can't seem to find the equivalent to the .Parameters property in Web Services.
    The tutorials for Web Services aren't much help. The BIPlatform examples show how to schedule a report without parameters and without setting the database login, but this isn't much help in the real world. The ReportEngine tutorial was apparently written by someone else, and is little or no help.
    This seems like such a simple question, but I have wasted an entire day and am no closer to the answer.

    I think the following resources will help:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/GettingStartedwiththeWebServicesSDK
    http://help.sap.com/businessobject/product_guides/xir2PP/en/qaaws.pdf
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/WS_SDK/wssdk_server/default.htm
    Also, see this forum thread:
    Web Services SDK secLDAP
    Ludek

  • Avoid Database Login prompt when using CrystalReportViewer

    Is there a way to keep the Database Login prompt from coming up when using Crystal Reports runtime 2008 SP2? I'm using that plus Visual Studio 2008 to develop a Windows Form application to view reports on a client machine that accesses data on a seperate SQL Server 2005 machine. My customer would like to avoid having users manually enter anything everytime a report is opened with the Crystal Reports viewer.
    I've used the following code with ODBC and OLE DB report connections. When I use ODBC, the prompt comes up with Integrated Security checked which must be cleared. When I use OLE DB, the prompt comes up with Database Name blank and greyed out so I cannot manually enter it.
    Am I missing something here?
    Imports CrystalDecisions.Shared
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Windows.Forms
    Public Class Form1
        Private Sub setDatabaseLogon(ByVal myConnectionInfo As ConnectionInfo)
            Dim logOnInfos As TableLogOnInfos = CrystalReportViewer1.LogOnInfo
            For Each logOnInfo As TableLogOnInfo In logOnInfos
                logOnInfo.ConnectionInfo = myConnectionInfo
            Nex
        End Sub
        Private Sub ConfigureCrystalReports()
            Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo()
            setDatabaseLogon(myConnectionInfo)
            myConnectionInfo.DatabaseName = "ClearView"
            myConnectionInfo.UserID = "reports"
            myConnectionInfo.Password = "dstreports"
            myConnectionInfo.IntegratedSecurity = False
        End Sub
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            ConfigureCrystalReports()
        End Sub
    End Class

    Thanks Jonathan for the tip. I tried it before and after the setDatabaseLogin call yesterday, but got the same results. I'm still going to follow your suggestion because that makes more sense.
    Turns out it was the configuration of my ODBC/System DSN that was causing the problem. I reconfigured the System DSN by clearing the check box to provide username/password and now I don't get the Database Login anymore.
    I found a different blog post that answered the OLE DB issue I was seeing where the DatabaseName was coming up blank:
    Login Error Database at Runtime
    Haven't tried it yet and probably won't because I got the Viewer to work with ODBC the way I like it.
    Thanks for the help!

  • Report asks for database login in deployed version using crystal runtime for vs2008

    I am developing an application with VS2008 .Net with an Interface to use external Crystal  reports.
    I created a Report using Crystal Reports 2011 "doku.rpt".
    I am using a CrystalReportViewer "crpv" on a form.
    I am using a ReportDocument object (Variable "ReportDocumentM"), to which I load the file "doku.rpt"  and assign the logon Settings of main and subreports (which are the same for all tables).
    Using crpv.ReportSource = ReportDocumentM I assign the reportDocument to the ReportViewer.
    On my develop System everything works fine, the Report is shown in the Viewer.
    I created a Setup for my application and isnatalled it on another System. I also installed the CrystalRuntime for VS2008.
    When I try to Show the Report, a dailog "Database Login" appears and aks for the Connection.
    where the SERVER, USERID and (sometimes the PWD) Input fields are filled with  the correct values, but always the DATABASE field is empty.
    SERVER and DATABASE fields are READONLY.
    Hours and hours I tried differnt things, I also filled the logon info of the ReportViewer himself, nothing helped.
    The code:

    Sorry, I found the solution in another discussion:
    "Crystal ask for DB Connections on new installation"
    Correct Answer by Marc Trudel  on Jan 9, 2014 6:57 PM ' Solved Reports are all saved with SQLNCLI which is Sql Native client 9 (2005) New computers only have SQLNCLI10 which is Sql Native Client 10 (2008) Customer will either install SQL CLient 10 on all old computer and upgrade the reports or install SQL Client 9 on new computers which will avoid upgrading hundred of reports
    In my case the original Report was created on a System with both SQLNativeClient 9 and SQLNativeClient 10 on it. Because I originally used a SQL2000 database as datasource, the SQLNativeClient9 was used. It wasn't a Problem on the System when I dynamically connected to a SQL2008R" database, probably because the NativeClient9 was still there and could be used. On the other Computer only the NativeClient10 was existing and this caused the Problems.
    But I think that this is a bug in Crystal: I think ist normal, that from time to time there are changes in DataBase Connections and Clients, so the reports should be able to work also with new Clients. At least there  should be a message to inform about the Problem.

  • How to Develop a Login Form In Developer 6i

    Hi to everyone,
    I have developed some forms in Developer 6i. Now i want to deploy these Forms to client side. I want to design a Login Form for the end users to Use the Database Application. But the problem is, I don't know how to Develop a Login Form with the permission for the End Users to access the application.
    Also please tell me how to configure the FORMS Developer 6i to Run the Forms by the end users.
    Please help me to solve out the problem.
    Thank you in advance.

    If you are using ADFBC, the easiest way is
    - drop the data control as ADF form
    - add CreateInsert method binding to the pagedef
    - add an invokeAction for the createInsert with a refresh property set to renderModel so that an empty creation form will be shown on page load
    for insertion
    - Finally, add the commit action as button
    Sireesha

  • Login Form Wizard

    Trying to build a home page with login & registration. I started with html blank page and used css layout with sidebar. Tried placing login area in sidebar and creating area with login form wizard and wouldn't work. Can anyone help?

    you need to follow the steps required to add a server behavior
    Create a site.
    this site should be be dynamic and oen of the supported ones by ADDT.
    such as php ASP coldfusion.
    add a database connection which is valid during the design time too.
    then
    simply use the login wizard.
    ofcourse u need to set up some fields in database (table) as required by the login wizard.
    Enjoy and best of luck..
    try Mx Kollection tutorials..
    from the interakt website..

  • Login form using Access... (in JSP )

    I have written the following code in JSP and connected to Access Database.
    Aftre i run the JSP from browser the Login form is displayed. but aftre i enter the "userid" and "password" nothing hapens. the application is STUCK !!
    <HTML>
    <HEAD>
    <TITLE> Login </TITLE>
    <script language="Javascript">
    function giveFocus()
         document.login.user.focus()
    function submitForm()
         document.login.submit()
    function resetForm()
         document.login.reset()
         document.passwd.reset()
         document.login.user.focus()
    </script>
    </HEAD>
    <BODY onload="giveFocus()">
    <form name="login" method="post" action="http://localhost//dcs/forward.jsp">
    <table border="0" cellpadding="2" cellspacing="0" width="80%"> <tr><td bgcolor="#ffffff" align="center">
    <table border="0" cellspacing="6" cellpadding="6" bgcolor="ffffff" width="80%" height="280">
    <tr bgcolor="#ADADAD">
    <td align="center"><font face="Verdana" SIZE="5">LOGIN FOR DDM</font><br>
    <table border=0 cellpadding=4 cellspacing=0>
    <tr> <td align="right">
    <P ALIGN="LEFT"><font face="Verdana" size="3"><BR>Please enter your ID and password
    <table border=0 cellpadding=10 cellspacing=10>
    <tr>
         <td align="right" ><font face="Verdana" size="4">User Id   :</font></td>
         <td><font face="arial" size="-1"><b></b></font><input name="user" type="text" length="9" maxlength="9"></td>
    </tr>
    <tr>
         <td align="right" ><font face="Verdana" size="4">Password  :</font></td>
         <td><input name="passwd" type="password" length="8" maxlength="8"></td>
    </tr>
    <tr>
         <td align=center valign=bottom>
         <input type="submit" name="login" value="     LOGIN     "  ></td>
    <td align=center valign=bottom><input type="button" name="cancel" value="   Cancel    " ></td>
    <td align=center valign=bottom><input type="submit"  name="chgp" value="Change Password"></td>
    </tr>
    </table>
    </table>
    </table>
    </table>
    </form>
    </body>
    </html> Kindly tell me wht is the problem with my code ? ?

    http://forum.java.sun.com/thread.jspa?threadID=599315&tstart=0
    Cross-post

  • Login form using Access(JSP)....

    I have written the following code in JSP and connected to Access Database.
    Aftre i run the JSP from browser the Login form is displayed. but aftre i enter the "userid" and "password" nothing hapens. the application is STUCK !!
    <HTML>
    <HEAD>
    <TITLE> Login </TITLE>
    <script language="Javascript">
    function giveFocus()
         document.login.user.focus()
    function submitForm()
         document.login.submit()
    function resetForm()
         document.login.reset()
         document.passwd.reset()
         document.login.user.focus()
    </script>
    </HEAD>
    <BODY onload="giveFocus()">
    <form name="login" method="post" action="http://localhost//dcs/forward.jsp">
    <table border="0" cellpadding="2" cellspacing="0" width="80%"> <tr><td bgcolor="#ffffff" align="center">
    <table border="0" cellspacing="6" cellpadding="6" bgcolor="ffffff" width="80%" height="280">
    <tr bgcolor="#ADADAD">
    <td align="center"><font face="Verdana" SIZE="5">LOGIN FOR DDM</font><br>
    <table border=0 cellpadding=4 cellspacing=0>
    <tr> <td align="right">
    <P ALIGN="LEFT"><font face="Verdana" size="3"><BR>Please enter your ID and password
    <table border=0 cellpadding=10 cellspacing=10>
    <tr>
         <td align="right" ><font face="Verdana" size="4">User Id   :</font></td>
         <td><font face="arial" size="-1"><b></b></font><input name="user" type="text" length="9" maxlength="9"></td>
    </tr>
    <tr>
         <td align="right" ><font face="Verdana" size="4">Password  :</font></td>
         <td><input name="passwd" type="password" length="8" maxlength="8"></td>
    </tr>
    <tr>
         <td align=center valign=bottom>
         <input type="submit" name="login" value="     LOGIN     "  ></td>
    <td align=center valign=bottom><input type="button" name="cancel" value="   Cancel    " ></td>
    <td align=center valign=bottom><input type="submit"  name="chgp" value="Change Password"></td>
    </tr>
    </table>
    </table>
    </table>
    </table>
    </form>
    </body>
    </html> Kindly tell me wht is the problem with the code ? ? ?

    the code for doing the connection between JSP and Access is as follows :
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn = DriverManager.getConnection("jdbc:odbc:rupa","system","manager");rupa is DSN which i created for MS ACCESS
    is this ok?

  • Login form in adf

    Hi All,
    I am new in ADF. I want to create a login form with three fields, username, password and database as we create in forms builder. username and password will be oracle username and password. Please guide me how i can achieve this task.
    Thanks
    Shahzad

    Again they are using database tables. My requirements are i need user to be authenticated from oracle database not from custom tables. E.g i need three fields username pass word and database name.
    Username and password will be authenticate from oracle database like if user enter scott/lion@orcl an error page will be display and if enters scott/tiger@orcl and success page will be display. somthing like to change connection properties of my applications.
    Thanks for your reply

  • Login Form

    Dear Guyz,
    I'm new in Oracle forms.
    i would like to use my own customized login form. anyone give me an idea, i dont want to use oracle default login i have the below table based on the below table I i wanna to call or open other forms.
    DESC  MN_LOGIN
    USERNAME VARCHAR2(20)
    PASSWORD VARCHAR2(20)
    LOGIN_DATE DATEalready i create the form i need the login code how can i check the username and password from the above table? if username and password met with the inserted data in MN_LOGIN table then it will open the new form. how can i do this any one guide me step by step plz. if login sucessfull then insert the current date into the login date.
    im using oracle 10g database 9i.
    appreciate if anyone help me in this.
    Regards
    Khaled
    Edited by: MShareef on May 4, 2010 3:18 AM

    So, what is the difficulty in this. If you are not aware of the sql/plsql then i would suggest you to read about sql/plsql. Anyway here is one method you can try...
    Trigger = Any you want to use...
    DECLARE
      vVar1 NUMBER;
    BEGIN
      SELECT 1
      INTO vVar1
      FROM MN_LOGIN
      WHERE username = :FORM_USER_FIELD   -- Check the case sensitivity use UPPER function on requirement
      AND password = :FORM_PWD_FIELD;  -- Check the case sensitivity use UPPER function on requirement
      -- Here use the call form code see oracle form builder help for CALL_FORM.
    EXCEPTION
      WHEN OTHERS THEN
        MESSAGE('Message goes here in case of wrong authentication.');
        RAISE FORM_TRIGGER_FAILURE;
    END;Also have a look on the following links about startup learnings...
    http://download.oracle.com/otn_hosted_doc/forms/forms/A73074_01.pdf
    http://www.oracle.com/webapps/online-help/forms/10g/state?navSetId=_&navId=0
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions001.htm#i81407
    -Ammad

Maybe you are looking for

  • NOTIFICATIONS SHOWING ON DISPLAY

    Hello, i am using the Z3 compact and get sounds on notifications e.g Texts, email, whats app , facebook etc. However when i go to open screen from sleep unless i know which sound is which i don't know what notification has come through?? I am used to

  • How to build jms files using netbeans ide

    hi, i am using the latest netbeans ide to build a simple jms java file, but i am getting this: init: deps-jar: Compiling 10 source files to C:\wrox\pro_jms\Chapter04\Test\build\classes C:\wrox\pro_jms\Chapter04\AccountsDepartment.java:4: package java

  • Reports web layout HTML

    Dear Friends I am Relatively new to reports. Can you please help me with the following Q's(using report 9i) 1. I created a report in tabular form and in the web layout I cannot see the table cell lines? 2. So I edited the HTML code and gave bordercol

  • I am getting runtime error "OBJECTS_OBJREF_NOT_ASSIGNED_NO".

    I am getting runtime error "OBJECTS_OBJREF_NOT_ASSIGNED_NO" in transaction RSPC in BW system.

  • Button Refer to Main Timeline

    Okay so I am unfortunatly new to AS3, so I apologize if there is a very obvious answer to this question. Okay Say I have a movie Clip on my main timeline and with in that movie clip is a button. That button has a CLICK event that I want o go back and