Creating a user page

how do i create a page that user can use to create their own
personal profile once they registered ?
Is it possible to have a page designed just for that and
everytime i get a new visitors that registers, that page will be
their profile page ?
I dont know if i am explaining myself enough, hope someone
knows what i am talking about and can help me out.
Thank you so much

If I may, LuisDesigns, to add something to this information
here.
I think the books I have are going to be of a big help and
very useful, reliable tool *and* resource for you to use.
I recommend that you purchase two books, whose wrote by David
Powers, and the title and publishers are as follows below:
a) Foundation PHP for Dreamweaver 8, by David Powers,
published by An Apress Company (also friends of ed), and
b) PHP Solutions: Dynamic Web Design Made Easy, by David
Powers. Same publisher.
Additionally, I also find two other books very helpful for
me. I don't know if those other two are be of an interest for you.
But it is worth to mention it for you, and you can be the judge by
looking at those books perhaps at Barnes Noble or Border bookstores
in your hometown.
Additionally, I wanted to make a quick note, I really like
the first two books that I have mentioned as above as opposed to
the last two below. Because these two books (Foundation PHP for
Dreamweaver 8 and PHP Solutions by David Powers) are very clearly,
conise and well-through and well referenced, as well as thoroughly
documentated by the author. I commend him for that wonderful books
he wrote. I think you'd be immensely impressed with the quality of
information with Powers' books, you'll agree with me eventually.
I also think that you are experencing some kind of brain
frozen or stuck, and don't know where to get started. Let me assure
you that David Powers' books are going to be of a big help and a
wonderful guideline and steps as in 1, 2 and 3. If you decide to
purchase his books, be sure to visit the websites as directed by
the author, because there is some updated additional information
along with the books after the books released.
c) Learning PHP & MySQL by Michele E. Davis & Jon A.
Phillips, published by O'Reilly Media Inc, first edition (June
2006),
d) PHP and MySQL for Dynamic Web Sites, by Larry Ullman
published by Peachpit Press. (This covers PHP3/PHP4 and MySQL3/4).
One other thing, it is important to make a note that you need
to make sure that you have exact same versions of PHP and MySQL
versions on your local machine AND remote servers. If differs, you
could run into problems per se.
Hope that helps, no?
quote:
Originally posted by:
Newsgroup User
Since you are using dw you need to do more reading about the
things
that dw offers. Dreamweaver, the Missing Manual and
Dreamweaver 8
Unleashed both have good intro sections on databases. There
are also
some web site that have tutorials.
DW offers many helping hands. Behaviors for records,
deleting, editing
records. Until you do more research/study there is not much
to help
y0u with.

Similar Messages

  • Creating end user pages

    Hi,
    I am new to IDM. I want to create end user self service password reset pages. Can anyone please tell me the steps "how to and where to create and code these pages".
    one more thing, I dont want the subtabs in the IDM console. where i can modify these tabs.
    thanks for the help

    create a new role and use capabilities to hide tabs

  • How To create custom login and create user pages

    Where can I find documentation that discusses how I can create a custom login page and create new user page?
    Also, I cannot find how to get away from the default login page.
    I am using 9iAS/Portal R2.
    Bill G...

    Well - I did find some docs;
    Chapter 8 of the Oracle9 iAS Single Sign-On.pdf file titled "Customizing the Single Sign-On Interface" has some good info but I'm wondering about the "create new user part".
    Bill G...

  • Server Error on Create user page in 9iAS Portal 9.0.2.0

    Hi,
    I have installed Oracle 9iAS Portal 9.0.2.0 on WinNT
    I got the SSO page loging thru admin login and everything is fine .....i can get into build page groups etc.....
    Problem
    creation of users
    When i click Build --> Administer --> Create User
    Page error:
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.
    Oracle HTTP Server/1.3.22 Server at accentur-jpdq.accenture.com Port 7777
    Kindly let me know how to solve this and get the Create User page --> To Create users ....
    Thanks & Regards,
    Gopinath.G
    Accenture Technology services.
    Bangalore,INDIA

    Can you pls confirm if OC4J_DAS instance is up?
    Refer Oracle9i Application Server Administrator's Guide
    Release 2 (9.0.2) -> Starting and Stopping the Application Server for 'Starting an Infrastructure'
    link: http://download-west.oracle.com/docs/cd/A97329_01/core.902/a92171/start.htm#1011347

  • How can you create a customized page to change user password?

    Hello to all,
    I would like to create a customized page for a user to change their password. We are using Portal version 3.0.9 on Windows NT/2000. Currently there is a page in portal where a user can change their password.
    I tried linking to that page by copying the shortcut url and adding it as an html portlet. The problem is that we want to direct the users to a
    page of our choosing when they click on the "cancel" and "ok" buttons. I read in the forums that there is a selfreg.cmd script.
    I also read that there is some code that has been available.
    Has anyone implemented a customized user password change page? Do you know of any links that might have steps to follow or
    more informatioin?
    Thanks in advance,
    Lindsay

    Hi,
    I was able to customize the change password screen through a procedure. This is what I did:
    * Created a procedure under the Portal30_sso schema:
    CREATE OR REPLACE procedure reports_chage_password
    site2pstoretoken in varchar2 default null
    ,p_username in varchar2 default null
    ,p_error_code in varchar2 default null
    ,p_submit_url in varchar2 default null
    ,p_done_url in varchar2 default null
    ,p_pwd_is_exp in varchar2 default null
    ,p_password in varchar2 default null
    is
    begin
    htp.htmlopen;
    htp.headopen;
    htp.title ('<TITLE of Page>');
    htp.headclose;
    htp.bodyopen;
    htp.p('<table width="100%"><tr><td colspan=2 align=center><IMG SRC=<directory of image if you want>"><br><hr><br></td></tr>');
    htp.p('<tr><td colspan=2 align=center>');
    htp.p('<font COLOR="#000080" face="Times New Roman" size=+2><b>');
    htp.header(nsize => 1 ,cheader => 'Change Password');
    htp.p('</b></font>');
    htp.p('</td></tr><tr><td align=right>');
    htp.formopen(curl => p_submit_url );
    htp.p('<font color="#000080" face="Times New Roman" size=+1>');
    htp.p ('Username:');
    htp.p('</td><td alight=left><font color="#000080" face="Times New Roman" size=+1>');
    htp.p(p_username);
    htp.p('</font>');
    htp.p('</td></tr>');
    htp.formHidden(cname => 'p_username',cvalue => p_username);
    htp.br;
    htp.p('<tr><td align=right>');
    htp.p('<font color="#000080" face="Times New Roman" size=+1>');
    htp.p ('Old Password: ');
    htp.p('</font>');
    htp.p('</td><td align=left>');
    htp.p ( htf.formPassword(cname => 'p_old_password',csize => 30,cmaxlength => 30) );
    htp.p('</td></tr>');
    htp.br;
    htp.p('<tr><td align=right>');
    htp.p('<font color="#000080" face="Times New Roman" size=+1>');
    htp.p ('New Password: ');
    htp.p('</font>');
    htp.p('</td><td align=left>');
    htp.p ( htf.formPassword(cname => 'p_new_password',csize => 30,cmaxlength => 30) );
    htp.p('</td></tr>');
    htp.br;
    htp.p('<tr><td align=right>');
    htp.p('<font color="#000080" face="Times New Roman" size=+1>');
    htp.p ('Confirm New Password: ');
    htp.p('</font>');
    htp.p('</td><td align=left>');
    htp.p ( htf.formPassword(cname => 'p_new_password_confirm',csize => 30,cmaxlength => 30) );
    htp.p('</td></tr>');
    htp.p('<tr><td rowsapn=2>');
    htp.formHidden(cname => 'p_done_url',cvalue => '<the url that you want users to go to when they are done>');
    htp.formHidden(cname => 'p_pwd_is_exp',cvalue => p_pwd_is_exp);
    htp.formHidden(cname => 'p_password',cvalue => p_password);
    htp.formHidden(cname => 'site2pstoretoken',cvalue => site2pstoretoken);
    htp.p('</td></tr>');
    htp.p('<tr><td align=right>');
    htp.formSubmit(cname => 'p_action',cvalue => 'OK');
    htp.p('</td><td align=left>');
    htp.formSubmit(cname => 'p_action',cvalue => 'CANCEL');
    htp.p('</td></tr></table>');
    if p_error_code is not null then
    htp.br;
    htp.fontOpen(ccolor=> 'red', csize=> 4);
    if p_error_code = 'auth_fail_err' then
    htp.p('Old password is incorrect');
    elsif p_error_code = 'pwd_rule_err' then
    htp.p('The new password does not follow '||
    'the password policies.');
    htp.br;
    htp.p('Verify with your System Administrator '||
    'about the Password Policies');
    elsif p_error_code = 'confirm_pwd_fail_txt' then
    htp.p('Confirmation for new passord is not '||
    'the same as the New Passowrd');
    elsif p_error_code = 'null_new_pwd_err' then
    htp.p('New password cannot be null');
    elsif p_error_code = 'null_old_pwd_err' then
    htp.p('Old password cannot be null');
    else
    htp.p ('Error: ' || p_error_code );
    end if;
    htp.fontClose;
    end if;
    end;
    * Grant this procedure to PUBLIC
    * Update the portal30_sso.wwsso_ls_configuration_info_$:
    UPDATE portal30_sso.wwsso_ls_configuration_info_$
    SET LOGIN URL = '<YOUR CUSTOM LOGIN URL OR THE WORD UNUSED IF YOU DON'T HAVE ONE> http://<MACHINE_NAME>.<DOMAIN>/pls/portal30_sso/portal30_sso.<NAME OF PROCEDURE>';
    * After you update the table, go to your account information link, and click on the change password link.
    * Then copy the url that you see in your address line
    * And if you want a change password link at the top of your portal page, just go to EDIT on your page, then edit the banner defaults. Then in the links add the Lable and the URL. The URL would be the URL you copied from the previous step.
    Hope this helps.
    I've customized the login page too if you would like some sample code for that. Let me know.
    Martin

  • Workspace user can't open a published Private Page or create his own Page

    The end user is using version 11.1.2 of Hyperion Workspace.
    My question is: Why can't this user create a Private Page or open a published Private Page from another user. When trying to open a published Priavte page from another user, the user gets this error message:
    +"Unable to perform request+
    +An error has occurred accessing a protected resource. You do not have the necessary permission.+
    +Detailed Message: WSCommandProcessError+
    +Recommended Action: Contact your local security administrator or resource owner."+
    I have checked the security on this user in HSS, and made him Adm user for Work space, without solving this problem.
    Can someone give me a hint on where to look or how to solve this issue?
    Mo
    Edited by: 875661 on Aug 20, 2012 1:48 AM

    Hi,
    Did you check if your app is set to maintenance mode in planning web console?
    -Go for Administration-->application settings--->Application maintenance mode-->make sure the application is enabled for "all users".
    If this happens for the first time after you create users, the security might not have refreshed to planning from shared services.
    -Go for Administration-->Dimensions-->select a member-->assign access-->choose" Migrate Identites" ( this should refresh the security from shared services to planning).
    Hope this helps,
    -Nra

  • HT1310 Mac os x is stuck on creating a user account start up page.  How do I make it actually go through and successfully creating a new user

    Mac is stuck or creating a new administrator account and does not completely do it.  It just goes in circles.  It does not confirm the account was created and does not display the last thank for creating the user message.  Can I fix it from the boot start up page because I don't have a disk

    Well if your on 10.5.8 like your signature says, then you have bigger problems to worry about.
    10.5 isn't supported anymore, so you might as well attempt data recovery (if you dont' have a backup) and call Apple via phone for the 10.6.3 white retail disk.
    Step by Step to fix your Mac
    Most commonly used backup methods
    Then follow this proceedure to erase the ENTIRE disk with Zero's and install 10.6.3, then Software Update to 10.6.8
    How to erase and install Snow Leopard 10.6
    10.6 will run your older 10.5 software and hardware drivers using Rosetta, but 10.7 and 10.8 will not (also requires more RAM and will slow down your machine)
    Over 50% of OS X users are on 10.6 and Apple is supporting it with security updates etc. so you should be good with your present software etc., until you need a new 10.8, 10.9 etc., machine.

  • Automatically create a profile page when user registers?

    Hi everyone,
    I am building a site along with other people and I am the main web designer. I need to know how to have my site automatically create a users profile page when the said user registers on the site. Something very similar to YouTube or MySpace. Example: If a user where to create an account with the username bob678 the site/code would automatically create and directory called examplesite.com/userid/bob678 (like I said before very similar to YouTube). I cant seem to find the answer to this anywhere but I know it is possible. Any and all help is very appreciated!
    PS. I already know how to allow people to register, I just need it to create a page for them.
    Thanks

    If you want to actually create a physical directory, then you would call your server side scripting's file system functions. FWIW, many of the site's you've seen probably do not use physical directories. In many cases, the data is saved in a database and the server uses the rewrite engine to make the location more human readable.

  • How to modify the OIDDAS Create User page

    I am using Portal 902 and want users to register themselves to my Portal. I've have enabled Self-Registration but the pages need much cosmetic re-work for my purposes.
    I've discovered how to replace the default db generated SSO Login page with a customized JSP * AND * I wondering if I can do the same to the OIDDAS Create User page.
    I've noticed that the URL for the create user page is http://thebofer.my.domain:7777/oiddas/ui/oracle/ldap/das/admin/AppCreateUserInfoAdmin.
    This file (AppCreateUserInfoAdmin) is a UIX file and the only place I've found it is within "oiddas.ear" located at F:\oracle\ora9ias_portwire\ldap\das\oiddas.ear directory on my Portal host.
    Can I simply unpack the EAR and get the "AppCreateUserInfoAdmin,uix" file into JDev, modify it, then re-package it into the ear and then overwrite the existing ear with this new one? Is this acceptable?
    Also, I'm wondering about the location of the oiddas.ear file. Normally when I deploy to 9iAS the file usually ends up in the F:\oracle\ora9ias_portwire\j2ee\home\applications or the F:\oracle\ora9ias_portwire\Apache\Apache\htdocs. What is the proper deployment process when modifying OIDDAS UIX?
    Are my assumptions correct? Can someone point me in the right direction?Long postings are being truncated to ~1 kB at this time.

    This text is not a translation managed in the DB.  you can modify the aspx page, directly.  web\webcommon\login.aspx

  • Login page keeps going to "Create new user account" on login

    For about 3 weeks, whenever I log in, the next page I get is nearly always the "Create new user account" page. This happens regardless of whether I wait to let AutoFill enter my user name and password or whether I fill in the correct info myself.
    When I click the back button on my browser and finally arrive at the page with the forums list, I'm always registered as logged in. But sometimes I just end up back on the login page with a blank entry box.
    How do I get to the forums page without having to get out of the "new user account" page first? (While this isn't a huge problem, it's time-wasting and kind of annoying, and it didn't used to happen.)

    Hi Turtlewiz!
    Have you tried deleting your browser cache & cookies?
    Good Luck!
    ali b

  • How do you create a new page when user checks a box?

    I guess it would be a check box.  I'm looking for a way to have the user select create a new page when the user runs out of space in the text box that is given.  So if its possible is there a way to create a new page with a continuing text box when the user has selected the create a new page check box.  Thanks.

    Hi,
    You can achieve this by just making some changes to the textfield (and the page layout).
    First, select the textfield and then in the Layout palette, tick 'expand' height to fit'. When you preview the form, you will see that as you type information into the field, a scroll bar will appear. When you exit the field, it will expand automatically to display the full contents.
    Now the problem will be that the textfield will expand over objects that are positioned below it - not good!
    So what you need to do is set up your form for a flowed layout. First select all of the objects that do not grow in size and wrap them inside a 'positioned subform'. When you select the subform you can see this setting in the Object > Subform palette. You should name the subforms in the hierarchy. So you will end up with a positioned subform above your textfield and a positioned subform beneath your textfield (if you have objects beneath it).
    Then select page1 in the hierarchy and in the Object > Subform palette, change the content to 'flowed'. Hopefully the layout won't change too much (because you will have most of your objects in their positioned subform).
    Last step is to select the textfield and in the Object > Field palette tick 'Allow page breaks within content'. This tells Acrobat/Reader to split the object if it overflows onto a new page.
    Now save the form as a Dynamic XML Form in the save as dialog and previewed it. Now when the textfield expands it will push objects beneath it down. Also when it gets to the bottom of the page, it will start a new page automatically and continue the content on the new page.
    Here is an example:
    https://acrobat.com/#d=kwa4t2vu6mXbgMCyqEF0aQ
    Paul Guerette is giving an online tech talk on dynamic forms on the 30 November, which I would recommend. Details here:
    http://acrobatusers.com/events/49326/tech-talk-developing-flowable-form-content
    Hope that helps,
    Niall

  • How can i modify lable of texfield on create user page

    Hi,
    How can i modify lable of texfield on create user page of oracle identity manager administrative console ?
    e.g. display Sponsor ID inplace of Manager ID
    Thanks

    Hi Nitesh,
    I changed in xlWebadmin.properties file and restarted the server but still it is reflecting the old lable e.g.
    In xlWebAdmin.properties file
    - global.lable.managerid= Manager ID
    I changed it to global.lable.managerid= Sponsor ID
    But still it is displaying Manager ID on User form. I am using OIM 9.1
    regards
    Edited by: YMI on Nov 26, 2009 2:45 AM

  • Create User from the end user pages

    I tried to create a user from a end user page and I get this error:
    com.waveset.util.WavesetException: WorkflowServices.provision: no view
    Anybody knows where the error is?
    Thanks!
    My workflow:
    <!-- MemberObjectGroups="#ID#Top" createDate="Wed May 30 10:36:29 CEST 2007" extensionClass="WFProcess" id="#ID#48FDDE54A046A13F:-14C2A04D:112DBE4AB3D:-7FDA" name="PRUEBA" visibility="runschedule"-->
    <TaskDefinition id='#ID#48FDDE54A046A13F:-14C2A04D:112DBE4AB3D:-7FDA' name='PRUEBA' lock='Configurator#1181667176671' creator='Configurator' createDate='1180514189312' lastModifier='Configurator' lastModDate='1181666876671' lastMod='129' taskType='Workflow' executor='com.waveset.workflow.WorkflowExecutor' suspendable='true' syncControlAllowed='true' execMode='sync' execLimit='0' resultLimit='0' resultOption='delete' visibility='runschedule' progressInterval='0'>
    <Extension>
    <WFProcess name='PRUEBA' maxSteps='0'>
    <Activity id='0' name='start'>
    <Transition to='activity1'/>
    <WorkflowEditor x='88' y='120'/>
    </Activity>
    <Activity id='1' name='end'>
    <WorkflowEditor x='457' y='89'/>
    </Activity>
    <Activity id='2' name='activity1'>
    <ManualAction id='0' name='prueba' syncExec='true' itemType='wizard'>
    <WorkItemName>
    <ref>probando voy</ref>
    </WorkItemName>
    <FormRef>
    <ObjectRef type='UserForm' id='#ID#48FDDE54A046A13F:-14C2A04D:112DBE4AB3D:-7FC5' name='PRUEBAForm'/>
    </FormRef>
    </ManualAction>
    <Transition to='Create View'/>
    <WorkflowEditor x='177' y='266'/>
    </Activity>
    <Activity id='3' name='Provision'>
    <Action id='0' process='Provision'>
    <Variable name='op' value='provision'/>
    </Action>
    <Transition to='end'/>
    <WorkflowEditor x='380' y='305'/>
    </Activity>
    <Activity id='4' name='Create View'>
    <Comments>Initialize a new view.</Comments>
    <Action id='0' application='com.waveset.session.WorkflowServices'>
    <Argument name='op' value='createView'/>
    <Argument name='type' value='User'/>
    <Argument name='viewId' value='User'/>
    </Action>
    <Transition to='Provision'/>
    <WorkflowEditor x='247' y='416'/>
    </Activity>
    </WFProcess>
    </Extension>
    <MemberObjectGroups>
    <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
    </MemberObjectGroups>
    <Properties>
    <Property name='editorOriginalName' value='PRUEBA'/>
    </Properties>
    </TaskDefinition>

    Hi gvivek99,
    I have put a link in the �Anonymous User Menu�
    <Field name='Test'>
      <Display class='Link'>
        <Property name='URL' value='user/anonProcessLaunch.jsp?newView=true'/>
        <Property name='id' value='PRUEBA'/>
      </Display>
    </Field>This link start "PRUEBA" Workflow (see my first post).
    This workflow call a ManualAction and open PRUEBAForm. In this form I request the accountID, firstname and lastname. But when I submit it, I get the next error:
    com.waveset.util.WavesetException: WorkflowServices.provision: no view
    <!--  MemberObjectGroups="#ID#Top" extensionClass="Form" id="#ID#48FDDE54A046A13F:-14C2A04D:112DBE4AB3D:-7FC5" lastMod="247" lastModifier="Configurator" name="PRUEBAForm"-->
    <Configuration id='#ID#48FDDE54A046A13F:-14C2A04D:112DBE4AB3D:-7FC5' name='PRUEBAForm' lock='Configurator#1182147751359' creator='Configurator' createDate='1180518677968' lastModifier='Configurator' lastModDate='1182147451343' lastMod='247' wstype='UserForm'>
      <Extension>
        <Form name='PRUEBAForm' noDefaultButtons='true' objectLocationID='objectName=PRUEBAForm&isBegin=true&objectPath=0&objectType=UserForm'>
          <Display class='EditForm'/>
          <Field name='waveset.accountId'>
            <Display class='Text'>
              <Property name='title' value='_FM_ACCOUNT_ID'/>
              <Property name='size' value='32'/>
              <Property name='maxLength' value='128'/>
              <Property name='required'>
                <Boolean>true</Boolean>
              </Property>
            </Display>
          </Field>
          <Field name='global.firstname'>
            <Display class='Text'>
              <Property name='title' value='_FM_FIRSTNAME'/>
              <Property name='size' value='32'/>
              <Property name='maxLength' value='128'/>
            </Display>
          </Field>
          <Field name='global.lastname'>
            <Display class='Text'>
              <Property name='title' value='_FM_LASTNAME'/>
              <Property name='size' value='32'/>
              <Property name='maxLength' value='128'/>
              <Property name='noNewRow' value='true'/>
            </Display>
          </Field>
          <Field name='global.fullname'>
            <Expansion>
              <cond>
                <and>
                  <ref>global.firstname</ref>
                  <ref>global.lastname</ref>
                </and>
                <concat>
                  <ref>global.firstname</ref>
                  <s> </s>
                  <ref>global.lastname</ref>
                </concat>
              </cond>
            </Expansion>
          </Field>
          <Field name='nextCancelButtons'>
            <Field name=':variables.formButton' button='true'>
              <Display class='Button'>
                <Property name='label' value='Next'/>
                <Property name='value' value='Submit'/>
                <Property name='command' value='Save'/>
              </Display>
            </Field>
            <Field name=':variables.formButton' button='true'>
              <Display class='Button'>
                <Property name='label' value='Cancel'/>
                <Property name='value' value='Cancel'/>
                <Property name='command' value='SaveNoValidate'/>
              </Display>
            </Field>
            <Field name=':complete'>
              <Default>
                <s>true</s>
              </Default>
            </Field>
          </Field>
        </Form>
      </Extension>
      <MemberObjectGroups>
        <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
      </MemberObjectGroups>
      <Properties>
        <Property name='editorOriginalName' value='PRUEBAForm'/>
      </Properties>
    </Configuration>Thanks

  • I m using ms access as database and i want to create a login page in java

    hye frnz... plz help me m new to java
    m using ms access as database and try to create a login page where user type username and pw
    i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
    now there is an error class not found exception sun:jdbc...... error
    plz help me i had stuck frm 4 days */
    import java.sql.DriverManager;
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Login extends JFrame
    //Component Declarations
    JLabel jlb1,jlb2;
         JTextField jtf1;
         JPasswordField jpf1;
         JButton jb1,jb2;
         //Constructor
         Login()
         //frame settings
              setTitle("Login Dialog");
              setLayout(new GridBagLayout());
              GridBagConstraints gbc = new GridBagConstraints();
              setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              Dimension d= Toolkit.getDefaultToolkit().getScreenSize();
              setBounds(d.width/2-175,d.height/2-100,350,200);
              gbc.insets=new Insets(7,7,7,7);
         //adding components
              jlb1=new JLabel("User ID");
              gbc.gridx=0;
              gbc.gridy=0;
              add(jlb1,gbc);
              jlb2=new JLabel("Password");
              gbc.gridx=0;
              gbc.gridy=1;
              add(jlb2,gbc);
              jtf1=new JTextField(10);
              gbc.gridx=1;
              gbc.gridy=0;
              add(jtf1,gbc);
              jpf1=new JPasswordField(10);
              gbc.gridx=1;
              gbc.gridy=1;
              add(jpf1,gbc);
              jb1=new JButton("Login");
              gbc.gridx=0;
              gbc.gridy=2;
              add(jb1,gbc);
              jb1.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                   Connection conn=null;
                        Statement stmt=null;
                        boolean found=false;
                   try
                             Class.forName("sun.jdbc.driver.JdbcOdbcDriver");
                             String dataSourceName = "Inventory";
                             String dbURL = "jdbc:odbc:" + dataSourceName;
                             conn=DriverManager.getConnection(dbURL, "","");
                             stmt=conn.createStatement();
                             ResultSet rst=stmt.executeQuery("Select * from User");
                             System.out.println(jtf1.getText()+"/t"+jpf1.getPassword());
                             while(rst.next())
                                  System.out.println( rst.getString(1) +"/t"+ rst.getString(2));
              if(jtf1.getText().equals(rst.getString(1).trim()) && new String(jpf1.getPassword()).equals(rst.getString(2).trim()))
                                       found=true;
                                       rst.close();
                                       dispose();
                                       MainWindow mw= new MainWindow();     /*created min window object created to be opend after login but not working*/     
                                       break;
                             rst.close();
                             stmt.close();
                             conn.close();                    
                        catch(ClassNotFoundException e){System.out.print(e);}
                        catch(Exception e){System.out.print(e);}
                        if(found==false) /*this portion is executing and dialog box appears invalid name and pw with class not found exception sun:jdbc.......on console */
                             JOptionPane.showMessageDialog(null,"Invalid username or password",
                                  "Error Message",JOptionPane.ERROR_MESSAGE);
              jb2=new JButton("Clear");
              gbc.gridx=1;
              gbc.gridy=2;
              add(jb2,gbc);
              jb2.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        jtf1.setText("");
                        jpf1.setText("");
                        jtf1.requestFocus();
              setSize(350,200);
              setVisible(true);
              jtf1.requestFocus();
         public static void main(String args[])
    Login l=new Login();
    }

    http://forums.oracle.com/forums/ann.jspa?annID=599
    Oh, and by the way, your keyboard seems to be broken as your words are not getting spelled correctly.

  • Plz help using ms access as database,i want to create a login page in java

    hye frnz... plz help me m new to java
    m using ms access as database and try to create a login page where user type username and pw
    i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
    now there is an error class not found exception sun:jdbc...... error
    plz help me i had stuck frm 4 days */
    import java.sql.DriverManager;
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Login extends JFrame
    //Component Declarations
    JLabel jlb1,jlb2;
         JTextField jtf1;
         JPasswordField jpf1;
         JButton jb1,jb2;
         //Constructor
         Login()
         //frame settings
              setTitle("Login Dialog");
              setLayout(new GridBagLayout());
              GridBagConstraints gbc = new GridBagConstraints();
              setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              Dimension d= Toolkit.getDefaultToolkit().getScreenSize();
              setBounds(d.width/2-175,d.height/2-100,350,200);
              gbc.insets=new Insets(7,7,7,7);
         //adding components
              jlb1=new JLabel("User ID");
              gbc.gridx=0;
              gbc.gridy=0;
              add(jlb1,gbc);
              jlb2=new JLabel("Password");
              gbc.gridx=0;
              gbc.gridy=1;
              add(jlb2,gbc);
              jtf1=new JTextField(10);
              gbc.gridx=1;
              gbc.gridy=0;
              add(jtf1,gbc);
              jpf1=new JPasswordField(10);
              gbc.gridx=1;
              gbc.gridy=1;
              add(jpf1,gbc);
              jb1=new JButton("Login");
              gbc.gridx=0;
              gbc.gridy=2;
              add(jb1,gbc);
              jb1.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                   Connection conn=null;
                        Statement stmt=null;
                        boolean found=false;
                   try
                             Class.forName("sun.jdbc.driver.JdbcOdbcDriver");
                             String dataSourceName = "Inventory";
                             String dbURL = "jdbc:odbc:" + dataSourceName;
                             conn=DriverManager.getConnection(dbURL, "","");
                             stmt=conn.createStatement();
                             ResultSet rst=stmt.executeQuery("Select * from User");
                             System.out.println(jtf1.getText()+"/t"+jpf1.getPassword());
                             while(rst.next())
                                  System.out.println( rst.getString(1) +"/t"+ rst.getString(2));
              if(jtf1.getText().equals(rst.getString(1).trim()) && new String(jpf1.getPassword()).equals(rst.getString(2).trim()))
                                       found=true;
                                       rst.close();
                                       dispose();
                                       MainWindow mw= new MainWindow();     /*created min window object created to be opend after login but not working*/     
                                       break;
                             rst.close();
                             stmt.close();
                             conn.close();                    
                        catch(ClassNotFoundException e){System.out.print(e);}
                        catch(Exception e){System.out.print(e);}
                        if(found==false) /*this portion is executing and dialog box appears invalid name and pw with class not found exception sun:jdbc.......on console */
                             JOptionPane.showMessageDialog(null,"Invalid username or password",
                                  "Error Message",JOptionPane.ERROR_MESSAGE);
              jb2=new JButton("Clear");
              gbc.gridx=1;
              gbc.gridy=2;
              add(jb2,gbc);
              jb2.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        jtf1.setText("");
                        jpf1.setText("");
                        jtf1.requestFocus();
              setSize(350,200);
              setVisible(true);
              jtf1.requestFocus();
         public static void main(String args[])
    Login l=new Login();
    Edited by: 795772 on Sep 19, 2010 4:44 AM

    795772 wrote:
    hye frnz... plz help me m new to java
    m using ms access as database and try to create a login page where user type username and pw
    i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
    now there is an error class not found exception sun:jdbc...... error
    plz help me i had stuck frm 4 days */
    <snip>The subject of this forum is Oracle databases. How does your problem relate to that subject?
    Two bits of advice:
    1) Make sure you ask questions in a forum related to your problem.
    2) If you want to be taken seriously as a professional, drop the MS IM Speak and use the language of the forum. In this forum it is English, which is successfully used by many people for whom English is far from their native language.

Maybe you are looking for