11 Replies Latest reply: Apr 30, 2014 7:44 AM by Elco RSS

    Apex login automatically with Business suite "SSWA jsp function"

    Elco

      Hi,

       

      I have tried several SSWA documentations but none of them work. I can now login automaticcaly if I put the Username hardcoded in the form parameters

       

      hostname=oracle-fst1lx&port=8080&appnum=100&pagenum=101&item_names=P101_USERNAME&item_values=NIBR

       

      The problem is now that everyone log in with this user name NIBR. My question is now how is it possible to log on automatically with the ebs username without enter the password and username again when apex is started from Ebs.

       

      See below for the custom  JSP file that I use. Thanks in advanged!!

       

      html>

        <head>

          <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>

          <title>Launch Apex</title>

          <style type="text/css">

            body {

      }

          </style>

        <%

        try{

       

        out.println("Launching Apex report.. <br>");

       

        String hostname = request.getParameter("hostname");

        out.println("hostname : " + hostname + "<br>");

       

        String port = request.getParameter("port");

       

       

        //Make provision if there is no port

        if (port.equals("null"))

        {

        port = "";

        } else

        {

        port = ":" + port;

        }

        out.println("port : " + port + "<br>");

       

        String appnum = request.getParameter("appnum");

        out.println("appnum : " + appnum + "<br>");

       

        String pagenum = request.getParameter("pagenum");

        out.println("pagenum : " + pagenum + "<br>");

       

        String item_names = request.getParameter("item_names");

        out.println("item_names : " + item_names + "<br>");

       

        String item_values = request.getParameter("item_values");

        out.println("item_values : " + item_values + "<br>");

       

        String url = "http://" + hostname + port + "/apex/f?p="+appnum +":"+pagenum +"::APPS:::" +item_names +":"+item_values;

        out.println("URL : " + url + "<br>");

       

       

        //Launch the webpage

        response.sendRedirect(url);

      }

      catch (Exception e)

      {

        out.println("Catch Error..");

      }

      %>

        </head>

        <body></body>

      </html>