Problem in Login Page which is in Jsp
I have a Page in which already registered users can sign in backend is in sql server and email and password fetching from database and matched what user entered but problem is results after comparison not coming. i have used equals function.
suggest me some solution. i have checked all values are there by printing that values but i can't figure it out that where all this stuff gets soup.
Sir,
actually i can't show you my code that my assuredly i checked that variable get values from current page as well as from database but problem occurs in matching. and i am also not able to figure that out this time.
I have checked with equals method and also with compareTo method but not able to get positive results.
Similar Messages
-
There are two iMacs connected through same router in my house but one refuses to login to facebook and other logged in sites. Local techies are bemused, I have just reinstalled OSX and still have the problem. Login page recycles, I get no further and no errors reported. Safari, Opera and Firefox. Deleted cookies and chain but still no action.
If you have not already done so, read the router's user manual troubleshooting section and/or contact its customer service department/forums.
If still having problems, post back w/details of all you have tried to resolve the problems along w/the troubleshooting solutions that the "local techies" had you try.
-
Problem creating login page in portal webapplication
Hi all,
I have been working with ADF for quite some years. Now, I have found webcenter portal on my path.
I'm telling you this is square one all over again.......trying to figure out why the most simple things do not work like they should. like this one
I'm on a project that has to build a new portal application. when you start it, you should be taken to a page where you have to log in.
This is the only public page in the portal app. after logging in, you will see the start page of the portal app. From here you can go to other pages through a menu tree on the left side of the page (=within the page template).
Anyway, I seem to no even get this to work........
I have made two pages. a loginPage and a landingPage. I know you get a login.jspx and a home.jspx for free, but I want to make my own since I had problems attaching my custom pagetemplate. Some other thing that doesn't work........
Anyway, I have made these two pages within the faces-config.xml I have tied the login_success action to my landingPage and the logout_success to the loginPage. I have also altered the login.html to redirect to my loginPage.jspx instead of the login.jspx On the loginPage Ideally, I would like to drag a login taskflow with a page-fragment where I have two inputfields and a button, which are connected to the o_w_s_l_LoginBackingBean. But that is for later, since it doesn't even work when I have put those two inputfields and button directly on my loginPage.jspx
I have tried several different configurations using both the pages.xml file and the jazn-data.xml, but to no avail.
What am I doing wrong? in the pages.xml, what should be the one with home as it's id? should both the loginPage and the landingPage be in there?
Even when I manage to get the loginPage first at startup, the button (who's action is pointing to the doLogin of the o_w_s_l_LoginBackingBean) does nothing. Also nothing in the logs.
Can anyone please tell me how I can get this to work?
thanks a lot in advance.....Hi fisherman,
custom login page can be created and it can be used in your custom template by simply creating your own login class :o_w_s_l_LoginBackingBean instead of using the default one.
otherwise the second type of solution is :
create a subform and write the following type of code in your jspx/jsff page.
<af:subform id="sub_id">
<af:panelFormLayout id="pt_pfl1" >
<af:panelGroupLayout id="pgl1" layout="vertical" >
<table>
<tr>
<td width="50%">
<af:activeOutputText value="username"
id="aot199"/>
</td>
</tr>
<tr>
<td width="50%">
<af:inputText id="pt_it1" simple="true"
value="#{o_w_s_l_LoginBackingBean.userName}"
/>
</td>
</tr><tr>
<td width="50%">
<af:activeOutputText value="password"
id="aot198"/>
</td>
</tr>
<tr>
<td width="50%">
<af:inputText id="pt_it2" simple="true"
value="#{o_w_s_l_LoginBackingBean.password}"
columns="30" secret="true"
/>
</td>
</tr>
</table>
</af:panelGroupLayout>
</af:panelFormLayout>
<af:spacer width="3" height="3" id="pt_s2"/>
<af:panelGroupLayout id="pt_pgl14" layout="horizontal" halign="end" >
<af:commandButton id="pt_logincb"
action="#{o_w_s_l_LoginBackingBean.doLogin}"
>
</af:commandButton>
this is a sample code,may be some errors are present.but it should work definity if you mention the login success page in faces-config.xml.
Hope ,it will help you.
Regards,
Hoque -
Hi all,
I have installed Oracle9iAS on WinNt(Enterprise Edition).
when i typing http://oracle8:80/pls/portal30
i am getting the portal30 home page(Welcome to Portal)but when i am clicking on Login link i am getting following error
You Cannot login because there is no configuration information stored in enabler configuration table
(WWC-41439)
Can anyone help mw on this.
Mail me at [email protected]
Thanking all in advanceYou have to see the "Troubleshooting" in tech docs.
It can be because of some reasons :
1. check the name in httpd.conf - it has to be written in lower case.
2. check if SSOHash class is loaded into the database :
select * from all_objects where object_type like 'JAVA CLASS';
3.check the java_pool_size in init file
(should be at least 20971520)
4. don't specify port# 80 in URLs.
Hope, it helps. -
When I start flash app on www.wsistudens.com then text is undreadable, cannot read the article.
Can I send attachement? I cannot find the email contact to firefox.Attachement
-
New to jsp, login page errors
Hi
I'm totally new to using jsp and as part of a project I need to create a login page which compares the
entered email and password with those contained in a database.
I've created the java code and jsp pages, there's no obvious errors (to me anyway) but everytime I try to run it I get the same error.
The code for the login page is:
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<body>
<form action="validate.jsp" method="POST">
email address - <input type="text" name="emailAddress">
<br>
password - <input type="password" name="passWord">
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</form>
<br>
new customer? To sign up <a href="new%20customer.jsp">Click here</a>
</body>
</html>The validation page code is:
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@page import="java.util.*" %>
<jsp:useBean id="idHandler" class="org.login" scope="request">
<jsp:setProperty name="idHandler" property="*"/>
</jsp:useBean>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<body>
<%
String username=(String) session.getAttribute("username");
String password = (String) session.getAttribute("password");
String emailAddress = request.getParameter("emailAddress");
String passWord = request.getParameter("passWord");
if (idHandler.authenticate(emailAddress, passWord)) {
response.sendRedirect("index.jsp");
} else {
response.sendRedirect("login.jsp");
%>
</body>
</head>
</html>and the java code is:
package org;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;
public class login {
private DataSource getJdbcConnectionPool() throws NamingException {
Context c = new InitialContext();
return (DataSource) c.lookup("java:comp/env/jdbc/connectionPool");
//method that is called from validateuser.jsp and this checks for the authentic user and
public boolean authenticate(String emailAdd, String pass)
throws SQLException, IOException, IOException, NamingException {
String emailAddress = null, Password = null;
// connection instance
Connection connection = null;
try {
DataSource dataSource = getJdbcConnectionPool();
connection = dataSource.getConnection();
String sql = "SELECT emailAdd, pword FROM customer WHERE emailAdd='" + emailAdd + "'" + "AND pword='" + pass + "'";
PreparedStatement ps = connection.prepareStatement(sql);
ResultSet rs = ps.executeQuery();
if (rs.next()) {
emailAddress = rs.getString("emailAdd");
Password = rs.getString("pword");
if (emailAddress != null && Password != null && emailAddress.equals(emailAddress) && pass.equals(Password)) {
return true;
} else {
return false;
}finally {
// close the connection so it can be returned to
// the connection pool then return the list
connection.close();
}finally the error message I get is:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.NullPointerException
org.login.authenticate(login.java:56)
org.apache.jsp.validate_jsp._jspService(validate_jsp.java:76)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
help?login.java:56 is:
connection.close();right? So, it looks like the call to getJdbcConnectionPool within authenticate throws an exception and control is passed to the finally block where connection is still null, resulting in the NPE. You should probably catch any exceptions thrown by the lookup for your datasource so you can see what the "real' error is. -
SharePoint Foundation 2013 - FBA Custom Login Page
Hi,
i am trying to enable FBA in SharePoint Foundation 2013 and it works fine for default login page
but when i try to create custom login page ( which is already working without any problems in SharePoint 2010 ) i receive an error when i try to authenticate user using the following code :
SPClaimsUtility.AuthenticateFormsUser(Context.Request.UrlReferrer, txtUserName.Text, txtPassword.Text);
i checked the Log file and found the following entries :
- Application error when access /_layouts/CM Custom Login Page/Login.aspx, Error=Exception of type 'System.ArgumentException' was thrown. Parameter name: httpApplication at Microsoft.SharePoint.IdentityModel.SPClaimsUtility.AuthenticateFormsUser(Uri
context, String userName, String password) at CM_Custom_Login_Page.Layouts.CmCustomLoginPage.Login.btnLogin_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
- System.ArgumentException: Exception of type 'System.ArgumentException' was thrown. Parameter name: httpApplication at Microsoft.SharePoint.IdentityModel.SPClaimsUtility.AuthenticateFormsUser(Uri
context, String userName, String password) at CM_Custom_Login_Page.Layouts.CmCustomLoginPage.Login.btnLogin_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
- Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentException: Exception of type 'System.ArgumentException'
was thrown. Parameter name: httpApplication at Microsoft.SharePoint.IdentityModel.SPClaimsUtility.AuthenticateFormsUser(Uri context, String userName, String password) at CM_Custom_Login_Page.Layouts.CmCustomLoginPage.Login.btnLogin_Click(Object
sender, EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(...
- ...Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)check first whether you are getting context or not, to me it looks like issue with Contrext.Request.UrlReferrer
try with this code
Uri url = new Uri(SPContext.Current.Web.Url);SPClaimsUtility.AuthenticateFormsUser(url, txtUserName.Text, txtPassword.Text); -
Not able to pass portal login page with valid credentials using WebDispatch
Hi,
We are implementing SAP BillerDirect Portal. To make BillerDirect Portal available over the internet, we Configured SAP WebDispatcher with SSL termination. We followed the steps mentioned in SAP Help Documentaion for SAP WebDispatcher with SSL termination.
http://help.sap.com/saphelp_nw2004s/helpdata/en/76/6d4fa247d0d647b5bd40745400d873/frameset.htm
We created certificate and send it to CA (TrustCenter CA). We received the CA response and we imported the certificate.
AS mentioned in the help document, we configured the SAP Web Dispatcher profile to support SSL termination
We tried to access our BillerDirect Portal over the internet using below link
https://company.com/bd
We are getting login page, once we enter correct user ID and Password, portal is not loading (not going to next page) portal remains on same login page.
If we enter invalid credentials portal login page is giving u201CUser Authentication Failedu201D error.
If we try to access any portal login pages which brings a pop-up for login, login gets succeeded and we are able to see next pages
Examples
1) https://company.com/bd/admin/xcm/init.do
2) https://company.com/monitoring/SystemInfo
All pages which bring up portal login page without pop-up, not able to pass through portal login screen.
We Tried the ProxyMapping option on Dispatcher using Visual admin. This option also didnu2019t work for us.
Here is the WebDispatcher Profile
SAPSYSTEMNAME = xxx
SAPGLOBALHOST = xxxxx
SAPSYSTEM = 00
INSTANCE_NAME = W00
DIR_CT_RUN = $(DIR_EXE_ROOT)\$(OS_UNICODE)\NTI386
DIR_EXECUTABLE = $(DIR_CT_RUN)
Accesssability of Message Server
rdisp/mshost = hostnameofportalserver with FQDN
ms/http_port = 8101
Configuration for medium scenario
icm/max_conn = 500
icm/max_sockets = 1024
icm/req_queue_len = 500
icm/min_threads = 10
icm/max_threads = 50
mpi/total_size_MB = 80
SAP Web Dispatcher Ports
icm/server_port_0 = PROT=HTTPS,PORT=443
icm/server_port_1 = PROT=HTTP,PORT=80
icm/HTTPS/verify_client = 0
SAP Web Dispatcher Web Administration
icm/HTTP/admin_0 = PREFIX=/sap/wdisp/admin,DOCROOT=D:\usr\sap\xxx\W00\data\icmanroot\admin,AUTHFILE= D:\usr\sap\xxx\SYS\global\security\data\icmauth.txt
Parameters for the SAP Cryptographic Library
ssl/ssl_lib = D:\usr\sap\xxxW00\sapcrypto.dll
ssl/server_pse = D:\usr\sap\xxx\W00\sec\SAPSSLS.pse
ssf/name = D:\usr\sap\xxx\W00\sec\SAPSSLS.pse
ssf/ssfapi_lib = D:\usr\sap\xxx\W00\sapcrypto.dll
sec/libsapsecu = D:\usr\sap\xxx\W00\sapcrypto.dll
wdisp/ssl_cred = D:\usr\sap\xxx\W00\sec\SAPSSLC.pse
Parameters for Using SSL to the backend server
wdisp/ssl_encrypt = 1
wdisp/ssl_auth = 1
wdisp/ssl_cred = D:\usr\sap\xxxW00\sec\SAPSSLC.pse
wdisp/ssl_certhost = hostnameofportalserver with FQDN
wdisp/ssl_ignore_host_mismatch = true
#ICM Parameters
icm/HTTP/j2ee_0 = PREFIX=/, HOST =hostnameofportalserver with FQDN PORT=50000,SPORT=50001, SSLENC=1,TYPE=1, CRED =D:\usr\sap\xxx\W00\sec\SAPSSLC.pse
We also tried below options in WebDispatcher profile but we are getting same problem.
wdisp/add_client_protocol_header = true
wdisp/add_clientprotocol_header = 1
wdisp/ssl_ignore_host_mismatch = true
#ICM Parameters
icm/HTTPS/forward_ccert_as_header = true
icm/HTTPS/trust_client_with_issuer = *
icm/HTTPS/trust_client_with_subject = *
we also tried
wdisp/ssl_encrypt = 0
wdisp/ssl_auth = 0
we also tried
wdisp/ssl_encrypt = 2
wdisp/ssl_auth = 2
We are not able to resolve issue. Please help us on resolving this issue.
Thanks
Praveen' in Host Names is not allowed. Our hosname has '_'.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/67/be9442572e1231e10000000a1550b0/frameset.htm -
I need to do a login page by using the JSP...which as normal->capture the username and password in text box on webpage....then compare them in the record in a table called Users in a SQL Server Database...How can I connect to the database?is it like ASP which using the DSN as database connection?Or other thing. Then how do i write the jsp code?
Hi..lots and lots of such questions have been asked in this forum...be patient and carryout a search in this forum and u'll be suprised at the results u'll get.
use a simple phrase like "login page"
Thanks. -
SAP brand Image change in Login Page of portal
Hi All,
Currently we are using Portal 7.0 SP6 version.
we have a requirement to change the SAP standard brand image in the login page of portal with the our customer logo,
We have the only requirement to change the sap brand image ( which is -the person is writing something on standing- this is sap brand image-at left side of login page) in the login page, which we need to change to our customer image
Please provide supported documents and links for the same then it would be great help to me.
Thanks in advance
Regards,
PortalUser100
Edited by: PortalUser100 on Apr 19, 2011 5:46 PMHi Shanti,
Thanks for your reply.
Can we able to change brandimage of sap portal 7.0 login screen as mentioned below?
Is it possible to change in the same manner?
Go to the file path
\usr\sap\J2E\JC00\j2ee\cluster\server0\apps\sap.com
2. Open the folder
a. com.sap.security.core.admin
b. Navigate Till root folder through servlet-jsp/logon
c. Inside the root go to Layout folder
d. In the Layout folder there exists those branding images
e. Replace the branding Image (Keeping the same name of ur image as that of the existing one ).
3. Restart the J2ee engine and the Portal .
are the above steps will work out to change just the brand image in the logon screen
Thanks,
PortalUser100 -
How and where to add code to login page
I have a login page which uses the Dreamweaver Login Behavior. I want to add code to:
Check the status of the person loging in (status is the last field in the mySQL authentication table).
a. If the person is already logged in, display an error message, and reject the attempt.
b. If the person is NOT currently logged in, set his status accordingly, and log him in.
Since the behavior is generated code, and well above my head, I don't know what code to enter, and where to enter it. Here's the code for the form:
<?php require_once('Connections/login.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
?>
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
if (isset($_POST['username'])) {
$loginUsername=$_POST['username'];
$password=$_POST['password'];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "WOTCPg1.php";
$MM_redirectLoginFailed = "loginerror.php";
$MM_redirecttoReferrer = false;
mysql_select_db($database_login, $login);
$LoginRS__query=sprintf("SELECT UserID, Password FROM authentication WHERE UserID=%s AND Password=%s",
GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
$LoginRS = mysql_query($LoginRS__query, $login) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
header("Location: " . $MM_redirectLoginSuccess );
else {
header("Location: ". $MM_redirectLoginFailed );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
function setFocus()
document.getElementById("username").focus();
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Log-in to IOD</title>
<style type="text/css">
<!--
#apDiv3 {
position:absolute;
left:5px;
top:101px;
width:760px;
height:612px;
z-index:2;
font-family: Arial, Helvetica, sans-serif;
font-size: 14pt;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
color: #009;
text-align: center;
background-image: url(images/grid_gray.gif);
border: medium ridge #009;
#apDiv1 {
position:absolute;
left:94px;
top:227px;
width:629px;
height:282px;
z-index:3;
font-family: Arial, Helvetica, sans-serif;
font-size: 14pt;
font-style: normal;
line-height: normal;
font-weight: bold;
font-variant: normal;
text-transform: none;
color: #009;
text-align: center;
#apDiv2 {
position:absolute;
left:178px;
top:248px;
width:564px;
height:254px;
z-index:3;
font-family: Arial, Helvetica, sans-serif;
font-size: 14pt;
font-style: normal;
line-height: normal;
font-weight: bold;
font-variant: normal;
text-transform: none;
color: #009;
text-align: left;
border: medium groove #036;
#apDiv4 {
position:absolute;
left:178px;
top:245px;
width:566px;
height:242px;
z-index:3;
border: medium groove #009;
text-align: center;
font-family: Arial, Helvetica, sans-serif;
font-size: 14pt;
font-style: normal;
line-height: normal;
font-weight: bold;
font-variant: normal;
text-transform: capitalize;
color: #009;
.SubmitButton {
color: #009;
-->
</style>
</head>
<body onLoad="setFocus()" >
<span style="position:absolute; left:3px; top:2px; width:758; height:89;"><img src="sitebuilder/preview/sitebuilder/clipart/bars/regular/horizontal/sleekLines_blue.gif" width="760" height="90" alt="" /></span>
<div id="e2" style="position:absolute; left:13px; top:14px; width:670px; height:32;"><span class="text"><b><span style="font-size: 22px"><font color="#FFFFFF">Sign-in to Information On Demand</font></span><font color="#FFFFFF" size="4"><span style="font-size:22px;line-height:26px;"><br soft="soft" />
</span></font></b></span></div>
<div id="apDiv3">
<p><span style="text-align: center; text-decoration: underline; color: #009; text-transform: capitalize; font-variant: normal; font-weight: bold; line-height: normal; font-style: normal; font-size: 18pt; font-family: Arial, Helvetica, sans-serif;">Customer Sign-In</span><span style="position:absolute; left:12px; top:23px; width:151px; height:65;"><img src="sitebuilder/images/redInfoOnDemandLogo-150x65.jpg" width="149" height="65" alt="" /></span></p>
</div>
<div id="apDiv4">
<form ACTION="<?php echo $loginFormAction; ?>" id="login" name="login" method="POST">
<p> </p>
<p>User Name:<br /><input name="username" type="text" id="username" tabindex="1" size="30" maxlength="30" />
</p>
<p>User's Password:<br />
<input type="password" name="password" id="password" tabindex="2" />
</p>
<p>
<input name="submit" type="submit" class="SubmitButton" id="submit" tabindex="3" style="color:#009; font-weight:bold" value="Sign-in" />
<input type="reset" name="reset" id="reset" value="Reset" tabindex="4" style="color:#009; font-weight:bold">
</p>
</form>
</div>
<br />
</div>
</body>
</html>
Here's the code for the script "included" in the first line of the page:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_login = "localhost"; // Change to "mysql" when uploaded to Yahoo
$database_login = "infoondemand";
$username_login = "root"; // Change to "creacontech" when uploaded to Yahoo
$password_login = "raisin4312";
$login = mysql_pconnect($hostname_login, $username_login, $password_login) or trigger_error(mysql_error(),E_USER_ERROR);
?>
Could someone help me with this? I'd very much appreciate any assistance.I should have warned you ealier that I don't know PHP very well, but if I can help nail down the process then hopefully one of the PHP experts can jump in.
I'm still a little fuzzy on what is going on. If Susie and Rodunda both have their own UserIDs and Passwords, then they can both be logged in at the same time, insert records til their hearts content and there will be abolutely no confict at all. The only issue here that may present a problem is if one of them attameps to update a record while the other one is looking at it, or getting ready to make their own modifications.
Also, if Susie and Rodunda have their own user accounts with their own credentials, how is it that one would try to log in using the others' credentials?
At any rate, and hopefully to get closer to a solutions for you, When a user is successfully authenticated, the session variable MM_Username is created. So, simpy by checking for the existence of this session variable can tell you if that use is logged in or not. This check can be placed before any of the login script so that it doesn't interfere with the behavior generated code. And you can choose what to do depending on the condition that exists - such as redirecting immediately to another page, or displaying or hiding a certain region on the page.
Keep in mind that when the page first loads, thel login code is placed in an IF statement that checks the form action, so at first it's ignored and loads the form. When the form is submitted, the IF conditino is met and the code executes. To update the database with a "Logged in or out" value, you first have to place a recordset just after the IF statement that checks the form action, wirte another IF statement to check the value of the field, and then redirect to a logout page or continue with the login.
If you continue with the login, you'll need an Update statement to change the field in the database just before the successful redirect. If you've redirected to a log out page, you'll also need s similar update statement there.
To write the recordset code, you can use DW's wizard and just move the code to where it needs to go. But the DW's update code depend on predeifned recordsets and form actions, so you'll need to find a script or hand code it, I wouldn't recommend trying to use DW's code and then modify it.
So, what do you think, are we getting closer? -
Need help in design login page in struts
Friends. I am new to struts. I am designing one Login page which works fine. Now i want to add Remember Me option to login page. Help me to do this. Thanks in Advance.
Try this,
Action class
if(event check blah blah) {
Cookie usernameCookie = new Cookie("Username", strUserId);
usernameCookie.setMaxAge(60 * 60 * 24 * 30);
response.addCookie(usernameCookie);
Cookie passwordCookie = new Cookie("Password", strPassword);
passwordCookie.setMaxAge(60 * 60 * 24 * 30);
response.addCookie(passwordCookie);
Cookie checkCookie = new Cookie("Check", strCheck);
checkCookie.setMaxAge(60 * 60 * 24 * 30);
response.addCookie(checkCookie);
}else {
Cookie usernameCookie = new Cookie("Username", "");
response.addCookie(usernameCookie);
Cookie passwordCookie = new Cookie("Password", "");
response.addCookie(passwordCookie);
Cookie checkCookie = new Cookie("Check", eventname);
response.addCookie(checkCookie);
}in jsp
<bean:cookie id="uname" name="Username" value=""/>
<bean:cookie id="pword" name="Password" value=""/>
<html:text property="UserId" value="<%=uname.getValue() %>"/>
<html:password property="Password" value="<%=pword.getValue() %>"/>
<logic:equal value="on" cookie="Check">
<input type="checkbox" name="CheckBox" checked="checked" >
</logic:equal>
<logic:notEqual value="on" cookie="Check">
<input type="checkbox" name="CheckBox">
</logic:notEqual>
<html:submit property="" styleClass="button" ><bean:message key="button.login" /></html:submit>- vignesh -
Username and password with new login page
i have created an application where in which in login page i have created
3 items username and password confirm password . where does the
data entered in the items fall . how can i retrieve the data .Just some information :
- The problem with LOGIN page exists. I don't have that problem with for example GMAIL when defined as external application, but with my applications in Oracle Application Server.
- There is also another thing I don't understand. The link to external application is something like:
javascript:open_jwindow('../ealogin?ID=76D4766','76');
and couldn't be executed outside pls/orasso
in other words we can't give that to our users, can we? They should login to orassso and see that?
We don't want to involve them in Identity Management...
Any help is appreciated....
Regards -
How to add "reset password" to login page
Hi,
I am new to HTMLDB. I created a login page which ask for username/password. How can I add "reset password" to the login page so that the user can change the password when login to the application. Thanks for your help.hi Bunty,
For that pasword input feild first select in the webdynpro screen, goto properties tab , in that you find one option called passwordField , set it true.
this will solve your problem
Regards
Govardan Raj -
Choosing between external and partner application and problem with login
We have an application on Oracle App Server 10.1.3.3 and we have an OID server.
I had taken this for granted that I should define the application as 'Partner Application' and not external application for single sign on.
Now that we need the 'PASSWORD' retrieved by application, we are considering defining it as an external application.
There are at least two problems I have encountered defining the application as external:
1. 'pageConfig:serverDate' is among the login form's inputs in the login page, but I can't set it in orasso 'Edit External Applications' page
2. After login using SSO as external application and when I click on the application's new link, the login page is shown with the username and password field filled, but I have to click on login button anyway (no automatic and invisible login).
I will be very grateful if someone gives a general view on the differences between external and partner, whether in this case external has to be used or partner and finally give some comment on my specific problem with login button and manual login.
Thank youJust some information :
- The problem with LOGIN page exists. I don't have that problem with for example GMAIL when defined as external application, but with my applications in Oracle Application Server.
- There is also another thing I don't understand. The link to external application is something like:
javascript:open_jwindow('../ealogin?ID=76D4766','76');
and couldn't be executed outside pls/orasso
in other words we can't give that to our users, can we? They should login to orassso and see that?
We don't want to involve them in Identity Management...
Any help is appreciated....
Regards
Maybe you are looking for
-
3rd Gen Ipod won't sync with Itunes since upgrade to Snow Leopard
Hi, I upgraded from Tiger to Snow Leopard and since then my trusty 3rd Gen Ipod will not sync with iTunes (9.0.3). It mounts in Finder, but does not appear in iTunes. The iPod will still charge, but it constantly displays the "Do Not Disconnect" mess
-
My Macbook started the dreaded random shut downs this week after 5 trouble free months. Having read the experiences of others I was not hopeful of a fast resolution but I took it into the Apple Store in the Bullring this morning at 10am. It was repai
-
My backup files were held in I tunes. when I got the i5 it asked if it was a new phone I said yes. not I cannot get the backup info for the new phone from I tunes. What to do?
-
Need to alter a property PAGE_TITLE in report.jsp
Hi, I have a requirement where i need to change the value rendered in the Page Title of report.jsp. Any help appreciated. We are using BIP 11.1.17. thanks Vijay
-
Hi gurus In the project builder component overview we can see a Catalog Icon. Is this function to open a OCI Catalog just like in ME21N (Create Purchase Order)? We have maintained the catalog parameters in customizing, but when I press the Catalog b