Validating id and password against rdbms using struts1.1
hi
in our current project we r using struts1.1. in my action class i have to validate the login id and password against database, iam also using DAO pattern my DAO is a java bean.
so pls help me to validate loginid and password against database using DAO pattern.
thanks
Hi,
You can use OJB (http://db.apache.org/ojb/). We are using OJB with Structs and work perfectly, you can check it or look for other equivalents.
Of course, you can program your own DAO pattern, but I recommend you try this software.
Good luck,
Gerardo
Similar Messages
-
Entering into site using valid id and password through URL class
hi......
i need to access the google adwords editor site. I have account on that but i want to access that by using URL class and then i need to use some data on getting response. It is very urgent for me. Whats the drawback is i am unable to handle the cookies send by the server. Can any one help how to get the response from that by handlin cookies or sessions through program. I have valid id and password.
Thanks in advance.
Regards...............
v.sureshThanks for the response.
I attempted to remove cookies, but I can not identify any of the cookies on the list with the PrimeVest web site. No PrimeVest, no PVs, nothing that looks like it came from them.
I have also reported the problem to PrimeVest and their tech did answer. He suggested erasing the browsing history (temporary internet files), which I did with no effect. He also had me check for the correct starting page address, which was OK. He stated that they are aware of a problem and it is on their list. No indication of how far down that list though. His only cure was to use IE for now, which I was already doing. Perhaps he can tell me which cookies to remove. -
getting the same answer everytime I try to log into i cloud. I get a message that I have a valid ID and password but it is not an icloud account. I have tried for almost a entire year to go there. i have re-downloaded the icloud contorl panel. before I got this notebook HP windows 8 it was easier . I do not like Internet explorer so I downlloaded.Google chrome. What must I do to go to icloud? I tried Internet Explorer and chrome. I buy music on itunes and I am not sure I get all the content I purchase. I have had to reset my password often and my email address to. I once spoke to a live tech a long while ago and he helped me combine all my purchased and downloaded music. Now its impossble to talk to anyone on the phone or even online and i am frustrated.
You must create the account using an Apple device, a Mac (Lion or greater) or an IOS device (IOS5 or greater). Having done that you will be able to sign in from your Windows machine.
FYI, iCal is an application that can display calendars from iCloud (and others) it is not a calendar itself, merely a calendar client. In Windows Outlook is the calendar client. -
You must supply a valid username and password to log onto the system.
hi,
i installed hyperion performance suite8.3 on linux by root account,during installation, i select "native" authentication, after installation, when i login the web interface by root account, it tell me:
You must supply a valid username and password to log onto the system.
who can help me?
thanksDo you have any projects listed in Shared Services ?
... you are also using
Did you put in the right url when you did the HFM config ?
check the httpd.conf file for server name and listening port number ....
what port are you using to login to workspace ? -
Verifying a username and password against SQLServer 2000 dbase via servlets
Hello everyone,
I sent a message earlier on. I'm really sorry if I sounded rude. Actually Im working on a school project an it involves a bank application. I have created a registration page that saves information in a database table already created on my computer. I have also created an HTML page in wihich registered users can log in. I am trying to verify the username and password against the database table tagged "Register Customer Information" but when I click on the login button, I get an SQL exception that says "invalid column count or syntax error". Please can anyone help me out? I would really be grateful. Thank you so much. The code for my servlet is this:
* LoginConfirmationServlet.java
* Created on January 24, 2007, 11:32 PM
package org.me.RegisterCustomerInformation;
import java.io.*;
import java.net.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
* @author HP COMPAQ
* @version
public class LoginConfirmationServlet extends HttpServlet {
/** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
* @param request servlet request
* @param response servlet response
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
String use=request.getParameter("usernname");
String pas=request.getParameter("passwword");
if((use!=null)&&(pas!=null))
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:MyDSN","sa","");
ps=con.prepareStatement("select UserName,Password from RegisterCustomerInformation where UserName= ? and Password=?");
rt=ps.executeQuery();
while (rt.next())
String u=rt.getString("UserName");
String p=rt.getString("Password");
if (use.equals(u)&&pas.equals(p))
out.println("Welcome:"+use);
else
out.println("Your login information is incorrect.");
out.println("Please check to ensure your username and password is entered correctly.");
out.println("Thank you!");
con.close();
catch(Exception ex)
out.println("Error:"+ ex.toString());
/*out.println("<html>");
out.println("<head>");
out.println("<title>Servlet LoginConfirmationServlet</title>");
out.println("</head>");
out.println("<body>");
out.println("<h1>Servlet LoginConfirmationServlet at " + request.getContextPath () + "</h1>");
out.println("</body>");
out.println("</html>");*/
out.close();
The html fields names are:"usernname" and "passwword" respectively. I'm making use of the POST method and the servlet name is LoginConfirmationServlet. Please I would really be grateful if any one can help me out. Ive not been able to run this for the past few days. Thanks.
}You did not supply values to UserName and Password. You have created preparedStatement object with sql query with ? marks for UserName andPasssword. Assign the values what u got from the form using setProperty(int index) method of preparedStatement and try.
-
Admin Console - Admin user requires valid username and password
I am running FMIS4.5 on CentOS5.5
FMIS is running and I can connect via Flash Media Encoder.
Web displays and admin console :1111 gives xml output, however
When using the user & password in my xml files to login (testing with ping), I get the "Admin user requires valid username and password" error.
conf/fms.ini:
# fms.ini contains substitution variables for Flash Media Server #
# configuration files. Lines beginning with '#' are considered comments. #
# A substitution variable is in the form <name>=<value>. Everything up to #
# the first '=' is considered the name of the substitution variable, and #
# everything after the first '=' is considered the substitution value. If #
# you want a substitution variable to have leading or trailing spaces, #
# enclose the value around double quotes. For example, foo=" bar " #
# This section contains configurable parameters in Server.xml #
# Username for server admin
# For example:
# SERVER.ADMIN_USERNAME = foo
SERVER.ADMIN_USERNAME = Admin
SERVER.ADMIN_PASSWORD = str34m1ng
# IP address and port Flash Media Admin Server should listen on
# For example:
# SERVER.ADMINSERVER_HOSTPORT = :1111
SERVER.ADMINSERVER_HOSTPORT = :1111
# User id in which to run the process (Linux Only)
# For example:
# SERVER.PROCESS_UID = 500
SERVER.PROCESS_UID = 500
# Group id in which to run the process (Linux Only)
# For example:
# SERVER.PROCESS_GID = 500
SERVER.PROCESS_GID = 500
# License key for Flash Media Server
# For example:
# SERVER.LICENSEINFO = XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
SERVER.LICENSEINFO = #SORRY YOU DON'T GET TO SEE THIS#
# LIVE_DIR denotes the full path of sample "Live" application's
# folder for storing any live stream recorded by server.
# For example:
# LIVE_DIR = <FMS_Installation_Dir>\applications\live
LIVE_DIR = /opt/adobe/fms/applications/live
# VOD_COMMON_DIR denotes the full path of sample "VOD" application's
# folder for storing onDemand and Progressive Download .flv/.mp3 files.
# File stored in this folder can be streamed and are also PD-able.
# Note : If you are using the default installation of Apache as a webserver,
# and if you modify VOD_COMMON_DIR, please change the document root
# accordingly in httpd.conf.
# For example:
# VOD_COMMON_DIR = <FMS_Installation_Dir>\webroot\vod
VOD_COMMON_DIR = /opt/adobe/fms/webroot/vod
# VOD_DIR denotes the full path of sample "VOD" application's
# folder for storing onDemand only .flv/.mp3 files. Files stored in
# this folder are not PD-able
# For example:
# VOD_DIR = <FMS_Installation_Dir>\applications\vod\media
VOD_DIR = /opt/adobe/fms/applications/vod/media
# The maximum size of the FLV cache, in megabytes.
# The default is 500MB.
SERVER.FLVCACHE_MAXSIZE=500
# Whether to start and stop the included HTTP server along
# with FMS.
SERVER.HTTPD_ENABLED = true
# This section contains configurable parameters in Adaptor.xml #
# Application directory for the virtual host
# For example:
# VHOST.APPSDIR = C:\myapps
VHOST.APPSDIR = /opt/adobe/fms/applications
VHOST.ALLOW = all
# This section contains configurable parameters in Application.xml #
# List of semi-colon delimited paths in which to search for script to load
# For example:
# APP.JS_SCRIPTLIBPATH = C:\scripts;C:\Program Files\Foo\scripts
APP.JS_SCRIPTLIBPATH = /opt/adobe/fms/scriptlib
# This section contains configurable parameters in Logger.xml #
LOGGER.LOGDIR =
# This section contains configurable parameters in Users.xml #
# Enable or disable using HTTP requests to execute admin commands.
# Set to "true" to enable, otherwise it will be disabled. The
# actual commands permitted for server admin and virtual host admin
# users can be set in Users.xml.
USERS.HTTPCOMMAND_ALLOW = true
Users.xml:
<Root>
<UserList>
<!-- This tag defines an administrator for the server. -->
<User name="${SERVER.ADMIN_USERNAME}">
<!-- Salted Password Hash for this vhost administrator. -->
<Password encrypt="false">${SERVER.ADMIN_PASSWORD}</Password>
<!-- This admin can only connect to the server from the specified -->
<!-- hosts. This is specified as a comma delimited list of -->
<!-- hostnames or domain names, and/or (full or partial) IP -->
<!-- addresses. For example, -->
<!-- "foo.yourcompany.com, macromedia.com, 10.60.1.133, 10.60" -->
<Allow>All</Allow>
<!-- This admin cannot connect to the server from any of the -->
<!-- specified hosts. This is specified as a comma delimited list -->
<!-- of hostnames or domain names, and/or (full or partial) IP -->
<!-- addresses. For example, -->
<!-- "foo.yourcompany.com, macromedia.com, 10.60.1.133, 10.60" -->
<Deny></Deny>
<!-- Specifies the order in which to evaluate the <Allow> and -->
<!-- <Deny> tags. This can be "Allow,Deny" or "Deny,Allow". The -->
<!-- default is "Deny,Allow" which means that access is allowed -->
<!-- unless specified in <Deny> and not specified in <Allow>. -->
<Order>Allow,Deny</Order>
</User>
<User name="janedoe">
<Password encrypt="false">S4mpl3P4ss</Password>
<Allow></Allow>
<Deny></Deny>
<Order>Allow,Deny</Order>
</User>
</UserList>
<AdminServer>
<HTTPCommands>
<!-- Enable or disable using HTTP requests to execute admin commands. -->
<!-- Set to "true" to enable, otherwise it will be disabled. The -->
<!-- actual commands permitted for server admin and virtual host admin -->
<!-- users can be set in the Allow and Deny elements. $
<Enable>${USERS.HTTPCOMMAND_ALLOW}</Enable>
<!-- List of server admin commands that can be accessed via HTTP. -->
<!-- Add multiple commands separated by commas. "All" indicates -->
<!-- every command (it's not recommended to allow all commands). -->
<!-- Seperate multiple commands with commas. -->
<Allow>ping</Allow>
<!-- List of server admin commands denied access via HTTP. -->
<!-- Add multiple commands seperated by commas. "All" indicates -->
<!-- every command. -->
<Deny>All</Deny>
<!-- Processing order for deny and allow command lists. "Deny,Allow" -->
<!-- means the command will be allowed if the command is in the allow -->
<!-- list or not in the deny list. "Allow,Deny" means the command -->
<!-- will be allowed if it is in the allow list and not in the -->
<!-- deny list. -->
<Order>Deny,Allow</Order>
</HTTPCommands>
</AdminServer>
</Root>
Output on :1111/admin/ping?auser=Admin&apswd=str34m1ng :
<result>
<level>error</level>
<code>NetConnection.Connect.Rejected</code>
<description>Admin user requires valid username and password.</description>
<timestamp>Thu 17 May 2012 11:33:43 AM EDT</timestamp>
</result>
Connections do not work from both localhost and external connections and the fms_adminConsole.htm (.swf) fails as well.
Any assistance is appreciated!Hi,
FMIS 4.5 does not accept plain text password. Encrypt=false is no longer supported. See here for more information : http://help.adobe.com/en_US/flashmediaserver/configadmin/WS5b3ccc516d4fbf351e63e3d119f2926 bcf-7fed.html#WS5b3ccc516d4fbf351e63e3d119f2926bcf-7e91
The value for SERVER.ADMIN_PASSWORD needs to be the encrypted string for your password. That should solve your problem.
Hope this helps.
Thanks,
Apurva -
I have a iphone 5 and I can login with my apple id to purchase music. However, when I try to login into icloud using the very same username and password that I use in the apple store it does not work to enter icloud, so what what gives???
I could do that, however when I select the icloud button (or whatever the heck it is) I am asked to enter the apple id and password. So if you are suppose to create another one for icloud you'd think it would give you the option at this point which would be logical.
-
even do i use the same apple id and password that i use for itunes.
Hi peacegraffiti,
Thank you for using Apple Support Communities.
I understand you are having difficulties restoring your new iPhone from a previous iCloud backup. The following article provides information to help restore from an iCloud backup.
Get help restoring from an iCloud backup - Apple Support
Cheers,
Jeff D. -
i tried to install a new os x mountain lion, but the system asked me to provide the apple id and password that was used to buy the os from the apple store online. which i don't have. how do i go ahead to install my new os x on the mC
If you don't have the Apple ID and password, how did you get Mountain Liomn in the first place? Without the Apple ID and password, you'll need to buy it to download it.
Mountain Lion -
email send/receive suddenly doesn't work (as of September 24th); I can't change email settings (one suggestion from tech) as BB phone won't accept *valid* username and password -- what to do?
I understand from a support note that if I keep trying my password/username combination, my BB will eventually delete all data!
I can't understand this. I'm completely lost now. I can't remember what I've done or tried to do. A plethora of usernames and passwords is swimming in my head.
Thanks for any hints. I have always loved this BB Bold and have never had any trouble with it.But the real question is why for the past year did the passwords work and then all of the sudden after this anomaly the disk password doesn't work? I'm not 100% sure of what my configuration was, but I know that most of the time it required one password -- supervisor, and occasionally it asked for 2 -- disk password as well I believe. This may have been related to the Password on Restart setting I think -- asking for the disk password on cold vs. warm boot. But I know both were exactly the same. But after this incident only the Supervisor password worked.
-
Im trying to listen to a book we downloaded from amazon. When we click on it it says we need to enter out audible username and password. I used my apple id username and password and it says it is not correct. I reset this and used it again and it still does not work. Any ideas?
Launch iTunes. From the menu bar click Store / View My Account then click Edit Payment Information.
Make sure the Security Code for you credit card is available and the expiration date is correct, then click Done. -
You must supply a valid username and password in Hyp 11.1.1.3.0
HI,
We have successfully installed New version of Hyperion 11.1.1.3. Configuration is successfull. When running validation one error occurs.
We are unable to log in workspace as we are required to 'supply a valid username and password'. We log in as admin/password but this is not working.
When I change it is shared services console it does not solve this issue.
Can you please advice of what shall be done to get over this?
thank you
lubosThis is not the Hyperion/Essbase forum.
-
Pass username and password adfs without using query string
pass username and password ADFS without using query string, Please help.
I used query string , but it is unsecured to pass credentials over url, with simple tool like httpwatch , anyone can easily get the password and decrypt it.Hello MohitJainMJ,
You're not in the right forum. Here it's for FIM topics!
Regards,
Sylvain -
Pass username and password ADFS without using query string, Please help.
pass username and password ADFS without using query string, Please help.
I used query string , but it is unsecured to pass credentials over url, with simple tool like httpwatch , anyone can easily get the password and decrypt it.Hi,
According to your post, my understanding is that you had an issue about the ADFS.
As this issue is related to ADFS, I recommend you post your issue to the forum for ADFS.
http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=Geneva
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
Thank you for your understanding and support.
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support -
Help with "Admin user requires valid username and password" on fms2_console.swf page
Just installed FMS2 on Debian (etch, 2.16.5-1 kernel). When I
connect to localhost:1111/fms2_console.swf and get the infamous XML
output which includes the text, "Admin user requires valid username
and password." The *.xml and *.ini files haven't been touched after
installation. All four daemons (fmsedge, fmsmaster, fmscore,
fmsadmin) are running and listening on the correct ports.
Any tips? (I'm sure this is easy to solve...)
Thanks.Hi,
FMIS 4.5 does not accept plain text password. Encrypt=false is no longer supported. See here for more information : http://help.adobe.com/en_US/flashmediaserver/configadmin/WS5b3ccc516d4fbf351e63e3d119f2926 bcf-7fed.html#WS5b3ccc516d4fbf351e63e3d119f2926bcf-7e91
The value for SERVER.ADMIN_PASSWORD needs to be the encrypted string for your password. That should solve your problem.
Hope this helps.
Thanks,
Apurva
Maybe you are looking for
-
How to block the Statistical delivery date in purchase order from updation
Hello All, We have the following requirement from our client. The client wants to track the delay in delivery of purchase orders raised to vendors. Currently the users, change the delivery date and then process the PO if there are any delays. The
-
Sony XAVC files from F55 no longer play back at all and cause glitches since update today - 13th Dec
Hi, Since updating Premiere today any Sony XAVC files I have in my projects no longer play back and cause fairly big glitches. All was completely fine yesterday before I updated. Does anyone have any info on this? Hoping for a fairly quick patch as i
-
Event Alert on Custom Table not working
Hi Custom table is registered in Custom schema, created synonym in apps and granted all priviliges to apps. Creates event alert based on insert on custom table, though custom table is getting populated from concurrent program event alert seems to be
-
Cannot get Acrobat 9 back after trying Acroibat XI
Purchased CS5 and Acrobat 9 in 2010. Downloaded Acrobat XI to try but found I o not need newer features, so I want to go back to Acrobat 9. Acrobat XI wiped out Acrobat 9. Tried to relead from original ZIP file but WinZip reports an error in Data1.ca
-
Transfer build directory to a different machine : linux
Hi, Can we make a build directory of Berkeley DB which is portable to a different system which does not have root access? Thanks