JSP Login Page is slow in 11.5.10.2

Hi,
JSP Login Page is slow in 11.5.10.2 . But If we login through form login (dev60cgi/f60cgi).
Forms are working fine, No issue from the DB Side.
We have bounce the Apache and clear the cache as well , but no luck.
Pls give us some pointer on this.
Regards,

Hi,
It is a clone Instance..Did you review the log files?
I have one doubt.. If we have lacs record in WF_NOTIFICATION..will the performace get impact bcz of this.It may have an impact on the performance, but I believe it should not affect the main login page.
Regards,
Hussein

Similar Messages

  • 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.

  • NEWBIE - creating a simple JSP login page

    Hi guys,
    I am really really stuck, and I would be so grateful if you guys could help me in any way. I am creating a simple application, but as part of the application i have to create a login / logout sub-application. It needs to verify the username and password by looking up a database in mySQL. I've had a look around on the internet to see if there is any simple way of doing it, but i can't understand most of it. I'm really new to JSP and only know how to do simple statement like <c:choose> and stuff like that. If anyone can help me in any way to create as simple a login / logout application that verifies the username and password from a database, I would be ever so grateful, thank you!
    Just to let you know, the security-roles and all that stuff together with the <tomcat-users> stuff has already been set up.
    I found this code by the author brain.compression, which seems to very useful, I've not tried it out yet, but was wondering, if somebody could help me split the code up into the separate JSP pages i will need, as I am not too sure which bits of the code need to go on what pages.
    Thank you to anyone that can help me out and thanks for brain.compression for providing this code. I'm sorry for posting this in a forum not related to JSP, its just that I am a complete newbie to JSP and nobody in that forum is helping me.
    brain.compression's code starts here...
    First for the page you are requesting you would need a verify if the user is logged in or not:
    <c:if test="${existingUser==null}">
    <jsp:forward page="login.jsp">
    <jsp:param name="origURL" value="${pageContext.request.requestURL}"/>
    <jsp:param name="errorMsg" value="Please log in first" />
    </jsp:forward>
    </c:if>
    This will redirect you to the login page:
    <font color="red">
    ${fn:escapeXml(param.errorMsg)}
    </p>
    </font>
    <form method="post" action="authenticate.jsp">
    <table>
    <tr>
    <td>Please Enter the following information to log in:</td>
    </tr>
    </table>
    <table>
    <tr>
    <td>User ID:</td>
    <td><input name="userid" value="${fn:escapeXml(cookie.userid.value)}"></td>
    </tr>
    <tr>
    <td>Password:</td>
    <td><input type="password" name="password" value="${fn:escapeXml(cookie.password.value)}"></td>
    </tr>
    </table>
    After that you have to verify with your DB if the login info provided is correct:
    %-- Removing any scoped variables --%>
    <c:remove var="existingUser" />
    <c:if test ="${empty param.userid || empty param.password}" >
    <c:redirect url="login.jsp">
    <c:param name="errorMsg" value="Please enter a User Id and Password." />
    </c:redirect>
    </c:if>
    <%-- Checking if User Id and Password are valid --%>
    <sql:query var="anyvariable" dataSource="${data}">
    SELECT * FROM table WHERE user_id = ? AND pass = ?
    <sql:param value="${param.userid}"/>
    <sql:param value="${param.password}"/>
    </sql:query>
    <c:if test="${anyvariable.rowCount == 0}">
    <c:redirect url="login.jsp">
    <c:param name="errorMsg" value="Invalid User Id or Password"/>
    </c:redirect>
    </c:if>
    Also can somebody tell me if i am right. Do I need to create a page called login.jsp to put the actual form on, and a page called authenticate.jsp to verify the username and password are correct? Finally i see that brain.compression has used a variable called existingUser but has he actually declared it anywhere. Thanks again for anybody that can help me out!

    i am still a jsp noobie but i have done some applications using html javascript php asp and other languages. What you want to do is take the data from the login form then compare that to the db see if it actually exist and has the correct info. From there you want to write a cookie to the users computer to hold the username and password, which will be checked for at the begining of every page verifying it in the database. This is how i have done password verification in the past and it works fairly well and unless your server gets hacked your pages should be secure.

  • How to: create a Login page with data tags

    hi, how could i create a jsp login page using the data tags.. and how to associate it with the other jsp pages that should be displayed in case of the correct insertion of the password .

    http://technet.oracle.com:89/ubb/Forum2/HTML/006025.html

  • My Mac Book Pro was really slow at everything and would kick me out of my photos every time i got on them. now it won't even allow me to log on. i put my password in and the screen will flash white and go back to the login page. HELP please...

    My Mac Book Pro was really slow at everything and would kick me out of my photos every time i got on them. now it won't even allow me to log on. i put my password in and the screen will flash white and go back to the login page. HELP please...

    There is nothing wrong with your Dell, it will work fine with any MacbookPro. I have been using Dell displays for over 12 years with many different Mac models. I have two 21" Ultra Sharp displays working side by side to design a Keynote presentation right now.
    The issue your having is with the way Keynote  takes control of the video output to both displays, it sends the presentation signal to one and the presenter display to the other, this is set up in;
    Keynote preferences > Presenter display.
    If you want to show a wesite or another app on  either display,  use application switcher:
    press the the  command key on the keyboard, then the tab key; a row of applications will show what applications are running, choose which one you want to show. Use command  > tab to return to Keynote.

  • JSP Error: While accessing the 11.5.10.2 Login Page

    Dear All,
    While trying to access the Login Page of 11.5.10.2 version for the first time, after a fresh installation, I am getting the following Error:
    JSP Error:
    Request URI:/OA_HTML/AppsLocalLogin.jsp
    Exception:
    java.lang.NoSuchMethodError: oracle.apps.fnd.sso.Utils.setRequestCharacterEncoding(Ljavax/servlet/http/HttpServletRequest;)V
    Please advice Whether anynthing wrong with the installation
    Thanks..,

    Hi,
    many thanks for the response....
    Please find the log file details as follows:
    $APACHE_TOP/Apache/Jserv/logs
    I could find a file called: mod_jserv.log and below shown is the content of the file:
    [23/03/2008 11:49:34:305] (EMERGENCY) ajp12: can not connect to host 192.168.0.33:17000
    [23/03/2008 11:49:34:328] (EMERGENCY) ajp12: function connection fail
    [23/03/2008 11:49:35:332] (EMERGENCY) ajp12: can not connect to host 192.168.0.33:16000
    [23/03/2008 11:49:35:332] (EMERGENCY) ajp12: function connection fail
    [23/03/2008 11:49:36:336] (EMERGENCY) ajp12: can not connect to host 192.168.0.33:19000
    [23/03/2008 11:49:36:336] (EMERGENCY) ajp12: function connection fail
    $APACHE_TOP/Apache/Jserv/logs/jvm
    File1: OACoreGroup.0.stdout
    ApacheJServ/1.1
    Starting Self-Service Mobile Framework v1.0.8.4 initialization
    Servlet Initialized
    ApacheJServ/1.1.2
    Starting Self-Service Mobile Framework v1.0.8.4 initialization
    0.000: [GC 34944K->1794K(126720K), 0.0622710 secs]
    3.707: [Full GC 16414K->1951K(126720K), 0.1113560 secs]
    Servlet Initialized
    1799.126: [GC 37023K->2432K(126848K), 0.0212320 secs]
    3866.431: [GC 37504K->2449K(126848K), 0.0046790 secs]
    5929.879: [GC 37521K->2449K(126848K), 0.0067740 secs]
    7997.123: [GC 37521K->2449K(126848K), 0.0057680 secs]
    9406.379: [GC 37521K->3421K(126848K), 0.0273190 secs]
    ApacheJServ/1.1.2
    Starting Self-Service Mobile Framework v1.0.8.4 initialization
    0.000: [GC 34944K->1802K(126720K), 0.0434050 secs]
    3.248: [Full GC 13181K->1934K(126720K), 0.1367460 secs]
    Servlet Initialized
    9.498: [Full GC 19627K->2914K(126848K), 0.1657290 secs]
    22.202: [GC 37986K->14162K(126848K), 0.1693410 secs]
    30.267: [Full GC 26205K->15086K(126848K), 0.2766730 secs]
    105.147: [GC 50157K->16481K(126848K), 0.0409380 secs]
    428.416: [GC 51553K->17758K(126848K), 0.0368180 secs]
    868.359: [GC 52830K->18783K(126848K), 0.0543650 secs]
    1036.996: [GC 53853K->20868K(126848K), 0.0410590 secs]
    1680.842: [GC 55940K->21729K(126848K), 0.0395180 secs]
    2225.097: [GC 56801K->22640K(126848K), 0.0286630 secs]
    2226.562: [GC 57712K->22610K(126848K), 0.0344330 secs]
    2230.827: [GC 57682K->23727K(126848K), 0.0224470 secs]
    2233.623: [GC 58799K->25684K(126848K), 0.0639170 secs]
    3002.680: [GC 60756K->29063K(126848K), 0.0522580 secs]
    3533.140: [GC 64129K->30333K(126848K), 0.0582700 secs]
    4078.031: [GC 65405K->30808K(126848K), 0.0151680 secs]
    4101.383: [Full GC[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor9]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor6]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor4]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor3]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor1]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor8]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor5]
    [Unloading class sun.reflect.GeneratedSerializationConstructorAccessor7]
    File2: DiscoGroup.0.stdout
    ApacheJServ/1.1
    Discoverer Model - 4.1.46.08.00
    WARNING: Attempting to use HTTP Firewall Proxy Server
    due to security restrictions: org.omg.CORBA.INTERNAL: Can not find GateKeeper: exception ReqFailure{} minor code: 0 completed: No
    Discoverer Model - 4.1.46.08.00
    WARNING: Attempting to use HTTP Firewall Proxy Server
    due to security restrictions: org.omg.CORBA.INTERNAL: Can not find GateKeeper: exception ReqFailure{} minor code: 0 completed: No
    Discoverer Model - 4.1.46.08.00
    WARNING: Attempting to use HTTP Firewall Proxy Server
    due to security restrictions: org.omg.CORBA.INTERNAL: Can not find GateKeeper: exception ReqFailure{} minor code: 0 completed: No
    Discoverer Model - 4.1.46.08.00
    WARNING: Attempting to use HTTP Firewall Proxy Server
    due to security restrictions: org.omg.CORBA.INTERNAL: Can not find GateKeeper: exception ReqFailure{} minor code: 0 completed: No
    Discoverer Model - 4.1.46.08.00
    WARNING: Attempting to use HTTP Firewall Proxy Server
    due to security restrictions: org.omg.CORBA.INTERNAL: Can not find GateKeeper: exception ReqFailure{} minor code: 0 completed: No
    Discoverer Model - 4.1.46.08.00
    WARNING: Attempting to use HTTP Firewall Proxy Server
    due to security restrictions: org.omg.CORBA.INTERNAL: Can not find GateKeeper: exception ReqFailure{} minor code: 0 completed: No
    ApacheJServ/1.1.2
    0.000: [GC 34944K->605K(126720K), 0.0160370 secs]
    3108.991: [GC 35549K->627K(126720K), 0.0076150 secs]
    6231.719: [GC 35571K->628K(126720K), 0.0097730 secs]
    ApacheJServ/1.1.2
    0.000: [GC 34944K->605K(126720K), 0.0175620 secs]
    ApacheJServ/1.1.2
    0.000: [GC 34944K->605K(126720K), 0.0114060 secs]
    ApacheJServ/1.1.2
    0.000: [GC 34944K->594K(126720K), 0.0099880 secs]
    3104.899: [GC 35538K->616K(126720K), 0.0054030 secs]
    6212.468: [GC 35560K->616K(126720K), 0.0043100 secs]
    9320.398: [GC 35560K->616K(126720K), 0.0043180 secs]
    12431.724: [GC 35560K->616K(126720K), 0.0042310 secs]
    15540.350: [GC 35560K->616K(126720K), 0.0050770 secs]
    18648.742: [GC 35560K->616K(126720K), 0.0049940 secs]
    File 3: XmlSvcsGrp.0.stdout
    ApacheJServ/1.1
    ApacheJServ/1.1.2
    0.000: [GC 34944K->992K(126720K), 0.0222780 secs]
    1331.380: [GC 35936K->1596K(126720K), 0.0252860 secs]
    2978.434: [GC 36540K->1572K(126720K), 0.0155030 secs]
    4561.042: [GC 36509K->2146K(126720K), 0.0124670 secs]
    6159.901: [GC 37090K->1568K(126720K), 0.0162710 secs]
    7801.433: [GC 36488K->1600K(126720K), 0.0096090 secs]
    9361.497: [GC 36532K->2144K(126720K), 0.0111690 secs]
    ApacheJServ/1.1.2
    0.000: [GC 34944K->1516K(126720K), 0.0335350 secs]
    1637.366: [GC 36460K->1617K(126720K), 0.0119330 secs]
    3201.033: [GC 36548K->2141K(126720K), 0.0153640 secs]
    4820.604: [GC 37085K->1567K(126720K), 0.0147900 secs]
    ApacheJServ/1.1.2
    0.000: [GC 34944K->1516K(126720K), 0.0219900 secs]
    1637.286: [GC 36460K->1617K(126720K), 0.0118590 secs]
    3202.661: [GC 36548K->2142K(126720K), 0.0135660 secs]
    ApacheJServ/1.1.2
    0.000: [GC 34944K->923K(126720K), 0.0378160 secs]
    465.724: [GC 35867K->958K(126720K), 0.0107050 secs]
    2049.456: [GC 35881K->1536K(126720K), 0.0106250 secs]
    3632.469: [GC 36480K->991K(126720K), 0.0070540 secs]
    5276.173: [GC 35935K->993K(126720K), 0.0069840 secs]
    6849.801: [GC 35912K->1567K(126720K), 0.0098510 secs]
    8450.902: [GC 36511K->990K(126720K), 0.0112260 secs]
    10089.975: [GC 35909K->990K(126720K), 0.0068660 secs]
    11650.057: [GC 35921K->1566K(126720K), 0.0084910 secs]
    13269.947: [GC 36510K->991K(126720K), 0.0068470 secs]
    14890.263: [GC 35910K->1213K(126720K), 0.0074270 secs]
    16452.170: [GC 36157K->987K(126720K), 0.0068140 secs]
    18094.799: [GC 35931K->993K(126720K), 0.0069330 secs]
    19690.498: [GC 35912K->1468K(126720K), 0.0081220 secs]
    21269.320: [GC 36412K->988K(126720K), 0.0070610 secs]
    22908.334: [GC 35932K->993K(126720K), 0.0068100 secs]
    24490.848: [GC 35910K->1567K(126720K), 0.0083790 secs]
    26082.852: [GC 36511K->989K(126720K), 0.0103980 secs]
    27721.116: [GC 35933K->993K(126720K), 0.0068200 secs]
    ApacheJServ/1.1.2
    ApacheJServ/1.1.2
    0.000: [GC 34944K->937K(126720K), 0.0231740 secs]

  • Login page in jsp-urgent

    hello to all,
    i am using tomcat 4.1.24,i have created a login page where i am forwarding the username and password to a jsp file where it process the validation by instantiating the bean and sets the property,but when it (Process.jsp)calls a method in bean validate() the main problem i am facing is whatever userid and password i type it is just taking the success.jsp page which is added in Process.jsp file and displaying the contents and i don't think it matches with the database records by instantiating the bean.could anybody tell me where i have gonw wrong.i have attached code below and i have used Msaccess to retrieve records.please help me.
    Login.jsp
    <html>
    <head>
    <title>Login page</title>
    </head>
    <body>
    <br>
    <p><h3><center>Please enter your name and password</center></h3></p>
    <br>
    <br>
    <form action="Process.jsp" method="post">
    <center>Username</center>
    <center><input type="text" name="username"></center>
    <center>Password</center>
    <center><input type="password" name="password"></center>
    <center><input type="submit" name="submit" value="login">
    </center>
    </form>
    </body>
    </html>
    Process.jsp
    <%@ page import="java.util.*" %>
    <jsp:useBean id="idHandler" class="foo.Login" scope="request">
    <jsp:setProperty name="idHandler" property="*"/>
    </jsp:useBean>
    <%
    if (idHandler.validate()) {
    %>
    <jsp:forward page="success.jsp"/>
    <%
    else {
    %>
    <jsp:forward page="retry.jsp"/>
    <%
    %>
    Login.java
    package foo;
    import java.sql.*;
    public class Login
    private String username="";
    private String password="";
    public Login()
    public void setUsername(String username)
    this.username=username;
    public void setPassword(String password)
    this.password=password;
    public boolean validate()
    String query="select * from USER";
    String Dbusername="";
    String Dbpassword="";
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con=DriverManager.getConnection("jdbc:odbc:Visualcaccess");
    Statement st=con.createStatement();
    ResultSet rs=st.executeQuery(query);
    while(rs.next())
    Dbusername=rs.getString(1);
    Dbpassword=rs.getString(2);
    if((username.equals(Dbusername)) && (password.equals(Dbpassword)))
    break;
    return true;
    }catch(Exception e)
    e.printStackTrace();
    return false;

    The reason your program is always forwarding to success.jsp is because of a logic error in Login.validate();
    After cycling through all the results in the resultset your method returns true regardless of whether the user was found or not.
    Instead try getting a count of the users in the database that have the given user name and password.
    Here's an example: (replace "USERNAME" and "PASSWORD" with the name's of the columns in you database)
    public boolean validate()
    String query="select count(USERNAME) as usercount from USER where USERNAME='"+username+"' and PASSWORD='"+password+"'";
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         Connection con=DriverManager.getConnection("jdbc:odbc:Visualcaccess");
         Statement st=con.createStatement();
         ResultSet rs=st.executeQuery(query);
         rs.first();
         if (rs.getInt("usercount") > 0)
              //There is an entry in the USER table with the given username and password
              return true;
         else
              //There isn't an entry in the USER table with the given username and password
              return false;
    catch(Exception e)
         e.printStackTrace();
         return false;

  • Modify the login page (login.jsp) of B2B scenario of the Internet Sales app

    All
    I wanted to modify the login page (login.jsp) of B2B scenario of the Internet Sales application
    By typing the URL "http://<servername>:50001/b2b/b2b/init.do." I could able to see the login page
    My requirement is to add an extra link in this page
    when I use showmodule=true it gives the location of jsp which is "user/logon/login.jsp"
    I could able to find this jsp in the DC "crm-isa-web-b2b"
    when I open the DC in package explorer i could able to locate this jsp in a jar file but not able to open/modify it
    Awaiting experts response
    Thanks
    Murali.K.N

    When I work on ours ISA4, I go to the file on the server
    \jsp\crm.b2b\servlet_jsp\b2b\root\b2b\login\login.jsp
    Now, I'd imagine there might be a much easier way to work with the files, but that's how I edited ours. 

  • WebCenter RIDC DataControl always redirects any JSP page to login page

    Hi
    I have created a Data Control which connects to the UCM data repository and created a plain JSP page to return the results. I have used RIDC Connection settings and authentication details are tested and they look fine to me.
    RIDC Socket Type: socket
    Server Host Name: localhost
    Content Server Listener Port: 4444
    Authentication: Identity Propagation
    Username/Password: weblogic/weblogic
    But when ever I ran the test JSP page, it always redirects the page to login page. For example: http://127.0.0.1:7101/RIDCDocumentManager-Portal-context-root/faces/oracle/webcenter/portalapp/pages/login.jsp
    Any suggestions?
    Thanks
    Khad

    Thanks for the details Yannick. The home.jspx works as expected. Thanks for that.
    I have got one more question on passing username through RIDC api.
    Via RIDC, how can I pass the UserName to the IdcContext object dynamically [IdcContext userContext = new IdcContext("weblogic");]. I mean how to retrieve the logged in user name for the person requesting the page instead of hardcoding the username. Below is the code fragment:
    // create the manager
    IdcClientManager manager = new IdcClientManager();
    // build a client that will communicate using the intradoc protocol
    IdcClient idcClient = manager.createClient("idc://localhost:4444");
    // get the config object and set properties
    idcClient.getConfig().setSocketTimeout(30000); // 30 seconds
    idcClient.getConfig().setConnectionSize(20); // 20 connections
    //create a simple identity with no password (for idc:// urls)
    IdcContext userContext = new IdcContext("weblogic");
    // create an identity with a password
    //IdcContext userPasswordContext = new IdcContext("weblogic", "idc");
    // get the binder
    DataBinder binder = idcClient.createBinder();
    // populate the binder with the parameters
    binder.putLocal("IdcService", "GET_SEARCH_RESULTS");
    //binder.putLocal("QueryText", parameter);
    parameter = getInputParameter();
    binder.putLocal("QueryText", "<qsch>" + parameter + "</qsch>");
    binder.putLocal("ResultCount", "20");
    // execute the request
    ServiceResponse response = idcClient.sendRequest(userContext, binder);
    // get the binder
    DataBinder serverBinder = response.getResponseAsBinder();
    DataResultSet resultSet = serverBinder.getResultSet("SearchResults");
    // loop over the results
    for (DataObject dataObject : resultSet.getRows())
    dataObject.get("dDocTitle");
    dataObject.get("dDocAuthor");
    dataObject.get("dInDate");
    System.out.println("Title is: " + dataObject.get("dDocTitle"));
    System.out.println("Author is: " + dataObject.get("dDocAuthor"));
    System.out.println("Author is: " + dataObject.get("dInDate"));
    }

  • Admin tool: login.jsp  (blank page)

    I have a problem similar to a recent posting.
    I have a 9i Release 2 database installation, server works, sample jsps work, database is up.
    Updated the file $ORACLE_HOME/ultrasearch/webapp/config/ultrasearch.properties with our info.
    When I try to access the admin page (http://rockfish:7778/ultrasearch/admin/index.jsp) I get to the login page, but it is blank (html body tags, but nothing to display).
    The .class and .java file are created in ultrasearch/webapp/isearch_admin/_pages
    Is that right? should they be under htdocs/_pages?
    Is single sign-on possibly a source of my problem?
    Any help would be greatly appreciated,
    John

    Hi, John:
    Does anybody know how to correctly set "AdminConstants.JSP_SRC_HOME" ? Yes.
    in ultrasearch.properties file, you need to set the correct admin.srchome variable ->
    "Do not use $ORACLE_HOME for admin.srchome , please enter the real file path"
    So your ultrasearch.properties file should look like:
    =====================================================
    connection.driver=oracle.jdbc.driver.OracleDriver
    connection.url=jdbc:oracle:thin:@localhost:1521:swims9i
    admin.srchome=C:\\oracle\\ora9i\\ultrasearch\\webapp\\isearch_admin
    =====================================================
    Here is a webIV note explain this problem in details: (you can also find this note in metalink)
    http://webiv/cgi-bin/webiv/do.pl/GET?WwwID=Note.202949.1&List=ARTICLES&ARTICLES.Idx=4
    Hope this is a clear,
    Cindy

  • Customizing login page AppsLocalLogin.jsp

    I am trying to add a custom message with some links to the loginpage that is built with AppsLocalLogin.jsp. I would like to place the custom messages and link in an html file and then call it from AppsLocalLogin.jsp. Is there a way to do this? Is there a way to isolate an error in the message html so that the login page is not disabled when this occurs?
    Mike

    Whenever you run AutoConfig (it happens also when you apply a patch that run AutoConfig at the end) you will lose any customization you do with AppsLocalLogin.jsp
    You may like to have a look at the following link:
    115.10.2 AppsLocalLogin - Personalization

  • Create login page using jsp, servlet  & Oracle

    hi,
    i need the sample application for creating login page using jsp, servlet & Oracle,can you please post one sample application.
    thanks
    sona

    See
    http://www.oracle.com/technology/products/jdev/collateral/papers/10g/adfstrutsj2eesec.pdf
    Frank

  • How to get requested (target) URL from login page jsp.

    Hi,
    How can I get requested (target) URL from within login jsp page where unauthenticated user was redirected.
    IN other words I need to get target URL that user requested before he was redirected to login page.
    In Weblogic there is "j_target_url" session attribute for this purpose.
    Does NetWeaver have analogue?
    Thanks in advance.

    hi Alex,
    NWDS provides Authentication through Pre defined properties,
    We can trap unauthorised user.
    To know more about this,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4ecd6eb1-0301-0010-61bd-a3d6bee102c0
    thank you

  • Login page Apex 3.1.1 very slow with remote access

    I've recently installed Oracle Database 11.1.0.6.0. and upgraded Apex 3.0 to Apex 3.1.1
    I've also configured the Embedded PL/SQL Gateway on port 7779.
    When I browse locally to http://<host-name>:7779/apex everything goes fine, but when I browse to the same URL (with host-name OR IP adress) it takes up to 5min to load the login page. Once I can login, browsing through Apex is as fast as locally.
    Is this a new security feature of Oracle 11G ?
    Please advice

    The issue was already solved and you are right. It was an DNS issue. We are using a proxy server and with the proxy server enabled the login page of APEX takes a while to load. When disabling the Proxy Server, it goes like hell.
    I was not familiar with the phenomenon, but finally I found. thanks a lot...
    Kindly regards

  • Custom Error message in Login Page

    Hi,
    I am using MVC framework for my project. I want to display custom error messages to the user in the Login page(JSP).
    For eg: invalid password, password has been expired etc. How do I pass these messages from Java to my login page & display it?

    This is a sample action class for login page in struts : -
    package xxx;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.ActionError;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import LoginForm.java;
    public class Action extends org.apache.struts.action.Action
    public ActionForward execute(ActionMapping mapping, ActionForm form,
    HttpServletRequest request, HttpServletResponse response)
    throws Exception {
    ActionErrors errors = new ActionErrors();
    ActionForward forward = new ActionForward(); // return value
    String username;
    String password;
    try {
    LoginForm lf = new LoginForm;
    username =lf.getUserName();
    password = lf.getPassword();
    if( username== null)
    forward=mapping.getInputForward();
    if( (username == "admin" ) && ( password="admin"))
    // do something here
    } catch (Exception e) {
    // Report the error using the appropriate name and ID.
    //Errors will be caught here.
    errors.add("name", new ActionError("id"));
    // If a message is required, save the specified key(s)
    // into the request for use by the <struts:errors> tag.
    if (!errors.isEmpty()) {
    saveErrors(request, errors);
    // Forward control to the appropriate 'failure' URI (change name as desired)
    //     forward = mapping.findForward("failure");
    } else {
    // Forward control to the appropriate 'sucuess' URI (change name as desired)
    forward = mapping.findForward("success");
    // Finish with
    return (forward);
    You need to have LoginForm.java as Model and Login.jsp as View . Action.java will be your controller.

Maybe you are looking for

  • Windows 7 ultimate 64-bit cannot install

    I have try many times to installed windows ultimate 7 64 bit on  desktop THINCKCNTRE LENVOV M90 but failed , the booting over windows 's DVD was not completed and after that  restarted  . What's the problem

  • How to do this with message mapping in PI  ?

    Hi All, Field 1 = 100 characters having values in  first fifty characters and last 50 characters blank . I need to remove all the first 50 characters with blank and pass 100 blank characters .How to do this with message mapping Thanks

  • Single Sign-On for OS X 10.8 Server/AD

    Hi All - I know that in OS 10.7 Server it was possible to bind my Mac Mini running Lion Server to an AD Domain Controller, set up Open Directory and then Kerberize the Open Directory Master in order to give Mac clients single sign-on access to resour

  • Fixing problem with with studio 11

    Hello I have problems using the fix command in studio 11 when I try to fix my program I get a warning and afterwards dbx crashes: dbx >fix -v -f /opt/Sun_Studio11/SUNWspro/prod/bin/cc -g -c -o testinfowin.o -I /v10.0/sources/include -D_POSIX_PTHREAD_

  • Changing Focus of JTabbedPanes

    Hai Friends, I am on the way of developing a QUERY ANALYSER. Mean while i got a problem. in my product I am using two JTabbedPanes(1 & 2). In TabbedPane1 i have a text area (to write the query) and the tabbedpane2 on which two panes( one for dispayin