Connecting to Oracle db with correct user and pass

OK, Hi, I'm New with java script and here's what I have:
1- A user login.
- Once he's authentified he can travel trought the pages.
2- Each user has special responsabilities
- So when we execte as request ton the oracle db we connect using a certain db user (and password)
Now what I need to know is:
How do poeple usually take that user (and password)
without hard-coding it in the connection string...
I know this question may seem weird.. and incomplete, but the only reason is because i'm new with this language and I'm missing some information I have read many tutorials and PDF's but I hope some body can just give me an idea about this.
Powel [;)]

Hi,
I think the easiest way is like this:
in firstJsp.jsp
<form action="secondJsp.jsp">
<input
type="text"
name="userName"
/>
<input
type="password"
name="userPassword"
/>
</form>
in secondJsp.jsp:
User name <%=request.getParameter("userName")%>
User password <%=request.getParameter("userPassword")%>
I mean, in secondJsp.jsp you will allready have name and password as request parameters.
But it's not the good and smart way of doing it. If you have to create just few pages then OK, but it doesn't seems so (i think nobody uses ORACLE for small applications).
You should look at Struts framework. That brilliant thing to create such applications.
Hope it helps.
good luck

Similar Messages

  • IPod updates 2 touch with the new software, and from the update they are not connected with Time phase. They appear calling but never they enter the calls. I make calls with other users and if one connects but in these two not from the update

    iPod updates 2 touch with the new software, and from the update they are not connected with Time phase. They appear calling but never they enter the calls. I make calls with other users and if one connects but in these two not from the update

    I use Firefox 95% of the time, and there's no problem with flash content (and I'm still at .55 - downloaded .64 last week but I haven't got round to making the change yet). At the rate they've been changing it recently it may well be out of date already .
    I've been trying it in Safari, too with no problems apart from You Tube, but that's because I'm blocking Google cookies.
    One thought does occur - if your Flash preferences are set to block all Local Storage, it may be that the problem site is trying to use Flash cookies (LSOs). I had this problem recently with the BBC iPlayer streaming content. Little Snitch notified an attempt to connect to a new URL - emp.bbci.co.uk.
    If I disallowed it, no streaming; when I allowed the connection, it still wouldn't stream, so I did a bit of digging and came to the conclusion that it was trying to set a Flash cookie. When I unblocked, lo and behold - streaming resumed as normal.
    I now have LSOs blocked in a more subtle way that lets the site think it's being set (but it ain't) and the streaming still works.
    As for permissions repair - always repair from local; the permissions on the original disc will have been superceded by updates and new installations of Apple software.
    DU needs to be reading the packages on the HD, not the (now out of date) install disc.
    The recurring repair messages are normal and don't mean anything's wrong. As long as the final message is 'repair complete' there's no need to dwell on it.
    http://support.apple.com/kb/TS1448 (for Leopard and Snow Leopard - Lion no doubt has it's own set).

  • Connect to oracle database with visual studio 2005

    Hi, i have a oracle database called orcl (10.2). I am trying to connect with this database with visual studio 2005. I do this:
    In Server Explorer, right click in Data Connection and click in add connection.
    I choose oracle database and oracle provider.
    In server name I write the name of my computer, and i write the user and pass of the data base (sys or system) but it gives me this error: "ora-12514 listener doesnt know the asket for service in the description one of connection" (translated of Spanish)
    what i have to write in server name? host, host:port, LISTENER,.... what?
    Thanks

    Sometimes, you can check names using from the command line:
    $> tnsping <orcl>
    TNS Ping Utility for 32-bit Windows: Version 8.1.7.0.0 - Production on 10-ENE-20
    06 09:01:04
    (c) Copyright 1997 Oracle Corporation. All rights reserved.
    Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=server1)(PORT=1521))
    Realizado correctamente (0 mseg)
    $>

  • Working with multiple users and computers, but shared data

    Sorry if this is posted in a poor place, I'm not sure where the best place is. This is sort of a general questions.
    For a long time, my wife and I have had either one computer, or two machines but one has definitely been just a terminal. We've basically set up all of our data to be one one primary machine, and if we want to view/edit that data we have to use that machine.
    We just got a new MacBook Pro and I would like to be able to use two machines as equals. Sadly, this idea of multiple computers, with two users and some shared data is really giving me difficulty. I was wondering if anyone has any suggestions on how to best manage things like:
    Synchronizing portions of our contact list (We share about 50% of the combined library -- we don't have to share all though).
    How to manage iPhoto so that we can each have access to the photos. As an added difficulty (or maybe this is easier?) my Wife just wants to have access to the pictures for viewing and sharing on Facebook/Picassa/etc. I am the only one who wants to edit, correct and cull our library. That said, I always edit when I first put the data on the machine, and almost never again; so it would be fine to have one (or both accounts) set up as view only for the iPhoto data.
    How to manage iTunes so that we can each have access to the music. As a super awesome bonus, it would be great if we could have three libraries: His, Hers and Shared. Maybe as much as 30% of our music library is similar, the rest just gets in the way.
    What is the best solution people have found for calendars? (I'm thinking two separate calendars, and we each subscribe to each others iCal feed)
    Mail.app and bookmark synching is not really a problem for us.
    Two extra points:
    * One machine is portable, and the other isn't. Ideally, when the laptop is out of the house, both machines should still have reasonable access to the shared data. That is: Just dumping things in the shared folder won't work because when the laptop is out of the house we will be disconnected from the source data.
    * We just got a second iPhone. This means that both of us will be taking photos/video separately and trying to synch back to the master data store.
    * Basically, I'm trying to minimize data duplication as much as possible, and just synchronize the systems to each other.
    Thanks a ton in advance. If anyone has any suggestions at all, I would love to hear them. Including "This is in the wrong forum, go ask here instead..."

    So you have a desktop Mac and a laptop Mac, right? Two user accounts (and a third admin account) on each computer, right?
    I profess that I haven't tried this, but here is how I would approach your problem:
    Sharing Music and Photos between multiple user accounts on the same computer: 
    See if http://forums.macrumors.com/showthread.php?t=194992 and http://forums.macrumors.com/showthread.php?t=510993 provide any useful information to assist you in this endeavor.
    Sharing across multiple computers:
    Turn on file sharing on the Desktop (System Preferences > Sharing). Now you can mount the Desktop as an external drive on the laptop's Desktop. Copy the music and photo folders across. Will take awhile to do the first time. Then, for future use, get a copy of the donationware CarbonCopyCloner or equivalent. You can use CCC to selectively sync specific folders from one computer to the other. There may be a hassle with digital copyright issues on music and movies, though.
    Calendars:
    As you have suggested yourself, publishing yours and subscribing to hers is probably the best way to do it, on the same computer. Across computers, syncing with CCC or equivalent would probably be the way to go.

  • Error when connecting an oracle DB with Integration gateway

    I followed the steps from the blog How to connect an Oracle DB with Integration Gateway in SMP3 and the ojdbc was deployed successfully to SMP. Still, i'm getting "Driver class oracle.jdbc.driver.OracleDriver not found" error message when i try to test my connection. The first difference i saw when completing these steps was that I'm using SMP3 SP05, could this be the issue?

    Joao D Franco Net
    Could you share below information:
    Can you cross check if deployed driver are OSGi enabled? Refer this.
    Can you share screenshot of the destination settings and error ?
    note: The blog you followed is referring to SP03 (1st GA of SMP3)..You should not have any problem in connecting to Oracle DB being on any SP.
    Regards,
    JK

  • Cannot connect to Oracle 8i with IIOP from JDev3.1

    Hi,
    I have the problem of connect to Oracle 8i with IIOP from JDeveloper 3.1 when I build application with BC4J. I can connect to my Oracle 8i database with ODBC easily but failed with IIOP. Does anyone here has the same experience?
    Any help will be appreciated. Thank you.
    null

    Hi Daniel:
    I've solved the problem mentioned above. It requires two settings:
    I) Enabling Multithreaded Server Support for IIOP Clients;
    II) Listener's listening to port 2481
    Of course you should have installed JServer into your Oracle 8i database.
    In your init.ora file, you should have the following two lines:
    mts_dispatchers = "(PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)"
    mts_dispatchers = "(protocol=TCP)"
    To confirm this you may use SQLPLUS to list the parameters of the database setting:
    mts_dispatchers string (PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer), (protocol=TCP)
    mts_servers integer 1
    And in TNSnames.ora file the setting should like this:
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = wangsvr)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = wangsvr)(PORT = 2481))
    All these two settings ( init.ora and tnsnames.ora ) can be done with "Database Configuration Assistant" and "Net8 Assistant"
    I solved my problem this way, your problem may not the same but anyway you may try it.
    null

  • Same machine diferent oracle products with diferent users

    Hi,
    It is possible to install database (oracle) with one user and client with another one (oraclnt) on the same machine ?
    I did with the same user (oracle) on diferent homes without problems.
    Thanks

    It is possible to install database (oracle) with one
    user and client with another one (oraclnt) on the
    same machine ?On Unix/Linux I often do that. You may have to work around with some permissions. For example, on my Linux test machine I installed DB 10g and Forms/Reports services under two different OS users, both members of dba group, and I had to change permissions on oraInventory directory to give write permissions to dba group.
    Using one OS user and different Oracle Homes is the "standard" procedure.

  • Can I sync two iPads with different users and email addresses on the same computer

    Can I sync two IPads with different users and email addresses on the same computer.

    yes, just make sure you turn off auto-sync to keep everything organized before you try syncing
    on a pc
    edit > preferences > devices - 'prevent ipads, iphones, and ipods from syncing automatically' needs to be checked

  • Installing ITunes on XP with 2 Users and one library.

    Is this possible ? My friend has an XP machine with 2 users, and they would like to be able to share there iTunes library with each other !
    Thanks.

    My wife and I who both have Macs can share iTunes accounts over 2 different computers (think you can go upto 5). I was just wondering if it's possible to share iTunes over 2 user accounts on the same computer, using the same iTunes account.

  • I am connected to the computer with my phone and it says there are 0 photos to import, however I have over 200 on my phone to import. I am trying to figure out why they aren't showing up.

    I am connected to the computer with my phone and it says there are 0 photos to import, however I have over 200 on my phone to import. I am trying to figure out how to get itunes to recognize the photos on my phone. This has never happened before.

    Have you tried to reset the iPhone and tried again to import?
    To reset iPhone, press and hold the Sleep/Wake button and the Home button at the same time for at least 10 seconds, until the Apple logo appears.

  • Using windows vista with two users and I can only open books with adobe digital editions on one account?

    using windows vista with two users and I can only open books with adobe digital edition

    You must authorize the second computer with the same Adobe ID.
    There are sometimes issues with this registration: if you have them ....
    Sometimes ADE gets its registration/activation confused and in a semi-authorized state.
    Uninstalling and reinstalling does not help.
    Unfortunately, it often then gives misleading error messages about what is wrong.
    A common incorrect message informs you that the ID is already in use on another computer and cannot be reused.
    This can often be resolved by completely removing any authorization using ctrl-shift-D to the Library screen on ADE (cmd-shift-D if on Mac).
    Restart ADE, and then reauthorize with your (old) Adobe ID.

  • Sharing Folders with single users and Teams?

    Will there be an option to share folders with single users and teams.  Something like DropBox in the near future?

    Yes - the ability to share folders will be coming in a future release.  Stay tuned!
    thanks,
    Todd

  • I cant connect to my computer with my ipod and itunes wont connect to it either. also i have forgotten my ipod passcode

    i cant connect to my computer with my ipod and itunes wont connect to it either. also i have forgotten my ipod passcode

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.
    And if necessary
    iOS: Device not recognized in iTunes for Mac OS X
    Or
    See
    iOS: Device not recognized in iTunes for Windows
    - I would start with
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or              
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Also see:
    iPod not recognised by windows iTunes
    Troubleshooting issues with iTunes for Windows updates
    - Try on another computer to help determine if computer or iPod problem

  • I connected the TC T2 with the iMac and used Air Port Utility to have it join my existing network. Now I have green lights on Apple Base Station and TC with the cable connected to the Base Station because hen connected to TC -- I get only yellow lights fl

    I connected the TC T2 with the iMac and used Air Port Utility to have it join my existing network. Now I have green lights on Apple Base Station and TC with the cable connected to the Base Station because hen connected to TC -- I get only yellow lights flashing on both devices> 
    When Connected through the Apple Base station I have perfect internet wireless capability thru-out house.
    Lamont

    I connected the TC T2 with the iMac and used Air Port Utility to have it join my existing network. Now I have green lights on Apple Base Station and TC with the cable connected to the Base Station because hen connected to TC -- I get only yellow lights flashing on both devices> 
    When Connected through the Apple Base station I have perfect internet wireless capability thru-out house.
    Lamont

  • Problem with both user and cmos password

    I have problem with my user and cmos password, can formating clear the passward with remove the cmos battary.

    It depends on the model. Formatting will not touch the BIOS or power on passwords but will take away the Windows user password and allow you to have a different one, but will kill all the data on the machine. Removing the CMOS battery might clear the BIOS password and power on password, but on most current laptops even that will not help. The BIOS data is on a chip that holds its contents even when all power is removed.

Maybe you are looking for

  • Java ME SDK 3.0 - Authentication failed error

    I'm running the Java Platform SDK 3.0 on Windows XP SP 2. I have built a MIDlet which I built and run on the emulator just fine, but when I transfer the .jar, .jad files to my cell phone and select 'Install' it fails and says: 'Java error. Authentica

  • Problem in storing korean Characters in Oracle 10g

    Hi All, Below are the current setup. OS : Windows Oracle Version : 10G Database Character Set : AL32UTF8 NLS_LANG = KOREAN_KOREA.KO16MSWIN949 (in windows) I can able to see Korean characters in MS Word & MS Excel. I copied some of the korean characte

  • How to adjust a "control array" size

    I have a program that creates a digital PWM signal with variable duty cycle. The duty cycle changes every 50 ms, but the overall wave frequency stays at a frequency determined by the user. I have the VI attatched. My problem is this...I need to be ab

  • Web Query issues

    Hi All, I have created a web query and assigned it to a role. I have moved the role, web templete and the query from dev to QA was able run the query fine without issues. The problem I am having is when I make changes to the query and transport it to

  • Error:configuration with name 'default' not found.

    Hi all. I am fairly new to android programming. I am trying to use the CreativeSDK, specifically the image editing portion. I have been trying to follow the steps at the following link: Adobe Creative SDK I first edit my settings.gradle file and then