Custom JSP, Javascript (Ajax) request.url

Hi,
Im very new to java. Maybee Im not in the right forum :-/ could be a tomcat question.
I create a custom jsp for teaming and trying to load some information from database.
Using javascript(Ajax) request.url to call "get.jsp" to load from db.
PHP Code:
  var url="companyDetails.jsp?companyId=" +tmp
                   http.open("GET", url, true);
                   http.onreadystatechange = callBack; 
On my development machine everything right. But on teaming prod we get a 404.
Placing the *.jsp files in the clustom_jsp folder.
Q1: Maybee I tried wrong URL ?
Q2: May I have to use webServices like SOA ?.
In this case Is the Ajax call = a WebService ?
Q4: Or I have to auth over url at server level.
Thanks
*T

Originally Posted by tbrinkmann
re...
are there some teaming, vibe jsp, java application programmer in case of custom application programming in the forum ?
Ore only admins and users ?
Thanks
*T
Maybe you will get better answers here: Kablink Vibe
Thomas

Similar Messages

  • Ajax request problem

    Hi , I am writting a simple login application using Ext-js and servlet.
    I need , show login form , if ok then go to success page , with some list generated at server sider otherwise to error page.
    Using Ext.FormPanel , I am submitting form and request param using Ajax request.
    Problem is , I am able to submit a request , it is hitting to doPost() method of servlet , but when it comes back not redirected to any erropage or success page.
    following is the code of login.js, servlet and jsp . Please help me out.I am using Ext.js 3
    login.js
    Ext.ns('ediscovery');
    Ext.onReady(function() {
        var loginForm = Ext.extend(Ext.FormPanel, {
            id : 'loginForm',
            initComponent : function() {
                //this.standardSubmit = true
                this.title = 'Please login'
                //this.url = '/MainController'
                this.items = this.getPageItems();
                this.padding = 30
                this.buttons = this.getButtons();
                this.bodyBorder = false
                this.labelAlign = 'right'
                    this.width = 350
                this.style = { marginLeft : '850px',marginRight:'50px',marginTop:'100px'}  
                loginForm.superclass.initComponent.call(this);
            getPageItems : function() {
                var items = [];
                var userNameField = new Ext.form.TextField({
                    name : 'userName',
                    id : 'userName',
                    fieldLabel : 'User Name'
                    //,anchor : '60% 6%'
                    ,allowBlank : false  
                    ,blankText : 'This field is required'
                    ,value:'eediscoverycloud'
                var passwordField = new Ext.form.TextField({
                    name : 'testname',
                    fieldLabel : 'Password',
                    id : 'password',
                    inputType : 'password'
                    //,anchor : '60% 6%'
                    ,allowBlank : false  
                    ,blankText : 'This field is required'
                    ,value:'parse@123'
                items.push(userNameField);
                items.push(passwordField);
                return items;
            ,getButtons : function(){
                var buttons = [];
                var submitBtn = new Ext.Button({
                    text : 'Submit'
                    ,handler : function(){
                        var userName = Ext.getCmp('userName').getValue();
                        var password = Ext.getCmp('password').getValue();
                        console.log("User Name : "+userName);
                        console.log("Password : "+password);
                        var cmp = Ext.getCmp('loginForm');
                        //cmp.getEl().mask("Processing");
                        /*var fp = this.ownerCt.ownerCt;
                        fp.getForm().submit();*/
                        Ext.Ajax.request({
                            url:"MainController"
                            ,method : 'post'
                            ,params : "userName="+userName+"&password="+password
                            /*,success : function(response,option){
                                console.log(response);
                                Ext.Msg.alert('Status', 'Orders Saved successfully.');
                                cmp.getEl().unmask();
                            ,failure : function(response,option){
                                console.log(response);
                                Ext.Msg.alert('Status', 'Some error occured. Please contact to Administrator');
                                cmp.getEl().unmask();
                var resetBtn = new Ext.Button({
                    text : 'Reset'
                buttons.push(submitBtn);
                buttons.push(resetBtn);
                return buttons;
        new Ext.Viewport({
            resizable: false
            ,items : [new loginForm()]
    servlet
    package com.ediscoverycloud.controller;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.io.StringWriter;
    import java.util.Iterator;
    import java.util.List;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import com.ediscoverycloud.util.DocWriter;
    import com.ediscoverycloud.util.Order;
    import com.ediscoverycloud.util.ReadMail;
    * Servlet implementation class MainController
    public class MainController extends HttpServlet {
        private static final long serialVersionUID = 1L;
         * @see HttpServlet#HttpServlet()
        public MainController() {
            super();
            // TODO Auto-generated constructor stub
         * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
        protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            String userName = request.getParameter("userName");
            String password = request.getParameter("password");
            request.getRequestDispatcher("/error").forward(request, response);
            System.out.println("Done");
    Web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
      <display-name>eDiscoveryCloudWeb</display-name>
      <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>default.html</welcome-file>
        <welcome-file>default.htm</welcome-file>
        <welcome-file>default.jsp</welcome-file>
      </welcome-file-list>
      <servlet>
        <description></description>
        <display-name>MainController</display-name>
        <servlet-name>MainController</servlet-name>
        <servlet-class>com.ediscoverycloud.controller.MainController</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>MainController</servlet-name>
        <url-pattern>/MainController</url-pattern>
      </servlet-mapping>
    <servlet>
          <servlet-name>Error Page</servlet-name>
          <jsp-file>/errorPage.jsp</jsp-file>
      </servlet>
      <servlet-mapping>
          <servlet-name>Error Page</servlet-name>
          <url-pattern>/error</url-pattern>
      </servlet-mapping>
    </web-app>

    if u want to move from pages like from jsp to servlet and html page
    to another one u have to use ther response.redirection there.
    from this u can move arround the pages.

  • The requested URL /pls/portal/display.jsp was not found on this server.

    Hi,
    I managed to get ultrasearch running now. The crawling process seems to run smooth. Executing a search gives me the correct result. However, i can not display the documents that are listed in the resultpage.
    The link to the document is like this:
    http://myportal/pls/portal/display.jsp?type=file&f_url=C:\ultra_docs\sultan\filetransfer\htc\site.doc
    The path in the url seems ok to me.
    Cliking on this link gives me the following error:
    The requested URL /pls/portal/display.jsp was not found on this server.
    Please, help me out here :/
    mvg
    Bram

    I just tested it by accessing the search page with the following url:
    http://myportal/ultrasearch/query/search.jsp
    This gives me the same result and the links to the actual documents work fine now too! But it is not working from within portal, the links generated by the ultrasearch portlet give me an error.
    The requested URL /pls/portal/display.jsp was not found on this server.
    Please Help me Out
    thx

  • The requested URL /OA_HTML/AppsLocalLogin.jsp was not found

    Dear,
    i was just upgrade the OracleAS 10g Release 3 (10.1.3.0) Patch Set 4 (10.1.3.4.0) and Java 6.0 JDK on this system (ebs r12.0.6) OUL5x64
    and run adautoconfig with no error.
    Before the upgrade the system was fine.
    but when i connect to the URL got this error.
    NOT FOUND the request URL "The requested URL /OA_HTML/AppsLocalLogin.jsp was not found on this server."
    looked into the apache error log and it complained , could not find the file, but i compared with a good system there were no file and DIR OA_HTML/AppsLogin.
    /u01/oracle/CRPXX/inst/apps/CRPXX_xxx/portal/OA_HTML/AppsLogin.
    from Apache error log:
    File does not exist: /u01/oracle/CRPXX/inst/apps/CRPXX_xxx/portal/OA_HTML/AppsLogin.
    Please advise.
    Regards,

    Hi,
    Have a look at this thread.
    Login Page not getting Displayed after 10.1.3 Home Upgrade in R12
    Login Page not getting Displayed after 10.1.3 Home Upgrade in R12
    Regards,
    Hussein

  • How to encode request url

    String szUsrName="venkat & ashique";
    <a href="javascript :
    window.open(../jsp/Customer.jsp?cust_name=<%=szUsrName%">)">
    </a>
    Request URL:=> Customer.jsp?cust_name=venkat & ashique
    --I think from ashique it is taking as another req parameter.
    but in Customer.jsp the request parameter value comming as '''venkat''' iwant to get whole String venkat & ashique. What is the problem i know.Problem is in the string '&' symbol is there.But the solution i dont know plz can u help me. How to encode that url</a>

    You need to escape non-alphanumeric characters with %XX where XX is the hexadecimal value for that character. For example:
    "venkat & ashique" => "venkat%20%26%20ashique"%20 is space and %26 is the &.

  • Special characters in ajax request

    Hi,
    I can't get special characters like á é í, etc well-printed in an jsp page when processing an ajax request under struts.
    The oracle database is encoded with ISO-8859-1. In my action i set the character encoding for the respose:
    PrintWriter out = response.getWriter();
    response.setCharacterEncoding("ISO-8859-1");
    // get the combo values from database...
    Collection<SimpleBean> opciones = getDistribuidoras(opcionSeleccionada);
    String salida = crearCadenaDeSalida(opciones);
    out.print(salida);
    out.flush();
    out.close();
    return null;Also, i have specified the encoding in the tomcat connector
    <Connector port="8080" protocol="HTTP/1.1"
                   connectionTimeout="20000"
                   redirectPort="8443" URIEncoding="ISO-8859-1"/>The page encoding in the jsp
    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> And finally populate the combo by JavaScript
      elementos=respuesta.split("||")
      reiniciarCombo(combo);     
      for ( var i=0; i<elementos.length; i++ ){
       valueLabelPair = elementos.split(";")
    combo.options[i] = new Option(valueLabelPair[0], valueLabelPair[1]);
    Is there something i've missed? i get a questión mark inside a black diamond shape instead the special char.
    Thank you in advance                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Check this
    http://download-east.oracle.com/docs/cd/B10501_01/text.920/a96518/cqspcl.htm#1360

  • Call Custom JSP from Screenflow JSP

    I need to call a static custom JSP(JSP2.jsp) from Screen flow JSP(JSP1.jsp) in Oracle BPM Studio while running Workspace.
    How do I do it? What will be the context path of JSP2.jsp while running workspace?
    JSP1.jsp has some context path created by Workspace. Where to keep my this custom JSP2.jsp and what is the path to call the same?
    I have tried giving/putting this static custom JSP.jsp in some other web server URL and worked fine. I want it to be inside my BPM Studio and need to be that path. It didn't work by just giving "JSP2.jsp" in the same folder structure of screen flow JSP1.jsp.

    The only thing i can think of, is that you aren't including the taglib.... The following works for me... (I keep my js files in a js folder in the webResouces, and css in a css folder... )
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <%@ page session="true" language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%@ taglib uri="http://fuego.com/jsp/ftl" prefix="f" %> 
    <html>
         <head>
              <link href="<f:webResources relativePath='css/Avio-JCI.css'/>" rel="stylesheet" type="text/css">
              <script type="text/javascript" src='<f:webResources relativePath="js/jquery-1.4.2.js"/>'></script>
    . . . . . HTH,
    -Kevin

  • Problems with Apache and custom JSPs

    Hi
    We've made an application on top of IFS, using JWS in our test envirnment. Just before making some stress tests, I'd like to try it using Apache. We're currently having two problems:
    1) I switch to the apache configuration running ifsconfig and not selecting JWS. When I try to access the ifs using http://host/ifs/files, everything goes well except that the "logout" icon doesn't appear. I did a little research and found out that the link goes to /ifs/webui/images/logout.gif. This gives an error in mod_jserv.log, like this one:
    [07/06/2001 22:54:20:315] (ERROR) ajp12: Servlet Error: ClassNotFoundException: webui
    It seems it's trying to find a "webui" class, since in ifs.properties every url that begins with /ifs goes to jserv.
    I don't know if this is a know problem or what should I've check...
    2) This one is more important. We're using some custom JSPs, which we use to edit the properties of some types of documents. Basically, when the user clicks over a file one of our JSP appears. These JSPs call a bean to do some processing, passing the HttpRequest as a parameter. The problem is that when using JWS we get the "path" request variable like in path=/%3A29464
    However, when using Apache we get path=/ifs/files/%3A29464 ( and afterwards we get an exception because the ifsSession.getPublicObject method doesn't work).
    Any hints on this? One way could be to check if the path begins with /ifs/files, but that's not really nice.. and besides I could have the same problem in some other parts.
    It's kind of urgent....
    Thanks
    Ramiro
    null

    Hi,
    The answer to your path problem is that you can make use of API to find out the current path so that it works both with Apache and with JWS. Follow the steps
    1. import the oracle.ifs.adk.http package in your custom jsps
    <%@ page import = "oracle.ifs.adk.http.*" %>
    2. Then within your jsp use the method
    getIfsPathFromJSPRedirect
    <%= oracle.ifs.adk.http.HttpUtils.getIfsPathFromJSPRedirect(request) %>
    This will give you the current path of the object on which you clicked on and which initiates the custom jsp.
    You can look at the CMS application which has made use of this API. URL is
    http://otn.oracle.com/sample_code/products/ifs/sample_code_index.htm
    Choose, sample applicatin -> Content Management system.
    Hope this helps
    Rajesh
    null

  • AJAX request won't work after a command button has been clicked

    hello,
    i have a simple login form, with a user name text field, password text field, login button, and cancel button....there is a simple ajax request that fires on the onBlur() event of the user name text field. the purpose is to validate the user name as soon as the user enters the name. all works fine when the page is first loaded...the user enters a user name, and either tabs out of the text box, or clicks out, and the ajax request is fired, and works great...
    however, during testing, i discovered that if the user were to click the login button, or the cancel button, before entering text into the user name text field, the onBlur() code never fires after the user writes text into the text field....
    can anyone explain to me why this is, and what i need to do to fix it
    here is my javascript code
    function validateUserName()
    var xmlHttp;
      try {
        xmlHttp = new XMLHttpRequest();
      catch (trymicrosoft) {
        try {
          xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
        } catch (othermicrosoft) {
          try {
            xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
          } catch (failed) {
            xmlHttp = false;
      if (!xmlHttp)
        alert("Error initializing XMLHttpRequest!");
      var UserName = document.getElementById("form1:txtUserName").value
      xmlHttp.open("GET", "faces/LoginServlet?UserName=" + UserName, true);
      xmlHttp.onreadystatechange = function () {
          if (xmlHttp.readyState == 4)
              if (xmlHttp.status == 200)
                  if (xmlHttp.responseText == "yes")
                        document.getElementById("form1:txtError").style.color = 'green';
                        document.getElementById("form1:txtError").innerHTML = 'User Name Correct';
                        document.form[0].cmdLogin.disabled = false;
                  else if (xmlHttp.responseText == "no")
                    document.getElementById("form1:txtError").innerHTML = 'User Name not found';
              //else alert(xmlHttp.status);
              //alert(xmlHttp.readyState);
      xmlHttp.send("");
    }here is my JSP page code
    <ui:textField binding="#{ui$Welcome.txtUserName}" id="txtUserName" onBlur="validateUserName();"
                                style="left: 528px; top: 312px; position: absolute; width: 168px" tabIndex="1"/>i use a servlet to handle the request, which in turn uses a Data Access Object to run a simple select query...i don't think any of that is the reason why the onBlur() code never fires...but if it would help to post that code, please let me know
    thank you in advance
    sam

    Check the following example:
    http://java.sun.com/developer/technicalArticles/J2EE/AJAX/RealtimeValidation/index.html
    Also, http://developers.sun.com/jscreator/learning/tutorials/2/textcompletion.html

  • HttpServer not dispatching (or receiving?) Ajax requests - Help needed

    Hello,
    I have run into a strange problem. Strange because the combination of com.sun.net.httpserver.HttpServer with Internet Explorer works whereas the combination of com.sun.net.HttpServer with Firefox and Opera doesn't work!
    To illustrate I have written a small Java program that implements a HttpHandler that I want to serve Ajax requests that are fired from Javascript. I use the prototype.js Javascript library to send the Ajax requests.
    The webpage fires a Ajax request every second. The HttpHandler responds with a <script> block that calls the paint() function on the webpage.
    This works fine on Internet Explorer 6, but Firefox and Opera don't get an answer on the Ajax requests that the Javascript sends. Even more, the request doesn't event make it to the MyHandler.handle() method. How can I test whether the request even makes it to the HttpServer object, and if it reaches the HttpServer object, then why isn't it dispatched to my HttpHandler?
    I hope I made myself clear and that someone can point out to me what I am doing wrong or what the code that I wrote is lacking to make it work with Firefox and Opera.
    Thanks a whole lot in advance!
    Here is the code:
    File TestHttpServerWithPrototypeJS.html (run it on IIS or Apache or whatever)
    <html>
         <head>
              <title>Test HttpServer with prototype.js</title>
              <script type="text/javascript" src="http://localhost/prototype.js"></script>
              <script>
                   function uncache(url)
                        return url + '?time=' + (new Date()).getTime();
                   function initialize()
                        try
                             // Make a HTTP request every second to /myapp and update the mydiv1 element.
                             // What is written into the mydiv1 is a <script> section that calls the paint function.
                             // The paint function then updates the mydiv2 element with a counter value that
                             // is incremented by the server code after each http (ajax) request.
                             var myAjax = new Ajax.PeriodicalUpdater(
                                            'mydiv1',
                                            uncache('http://localhost:8000/myapp'),
                                                 method: 'post',
                                                 asynchronous: true,
                                                 frequency: 1,
                                                 evalScripts: true
                        catch(e)
                             alert('Exception: ' + e);
                   function paint(data)
                        $(mydiv2).innerHTML = data;
                   window.onload = initialize;
              </script>
         </head>
         <body>
              <div id='mydiv1'></div>
              <div id='mydiv2'></div>
         </body>
    </html>
    File TestHttpServer.java:
    import java.io.IOException;
    import java.net.InetSocketAddress;
    import com.sun.net.httpserver.HttpServer;
    public class TestHttpServer
    public static void main(String[] args)
         HttpServer server = null;
              try
                   server = HttpServer.create(new InetSocketAddress(8000), 100);
              catch (IOException e)
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         server.createContext("/myapp", new MyHandler());
         server.setExecutor(null); // creates a default executor
         server.start();
    File MyHandler.java:
    import java.io.IOException;
    import java.io.OutputStream;
    import com.sun.net.httpserver.HttpExchange;
    import com.sun.net.httpserver.HttpHandler;
    class MyHandler implements HttpHandler
         int counter = 0;
         public void handle(HttpExchange t) throws IOException
              try
                   String response = "<script type=\"text/javascript\">paint('server side counter = "+ counter + "')</script>";
                   counter++;
                   t.sendResponseHeaders(200, response.length());
                   OutputStream os = t.getResponseBody();
                   os.write(response.getBytes());
                   os.close();
              catch (Exception e)
                   int a_variable_on_which_a_breakpoint_can_be_set = 0;
    }

    Hi there,
    I had run into the same problem, it wouldn't work with Opera, worked but not very well with IE7 and Safari, and on Firefox seemed to work fine. I was able to solve this problem by making sure there was always a result code greater than zero when writing the respose headers. I am now running my application on all major browsers and have no problems at all. The application makes heavy use of ajax as well.
    Summing up:
    - before writing the response, make sure to write the headers and make sure the result code is greater than zero. I use a response length of 0 when writing the headers as I ran into a bit of trouble when using responses of specific length.
    - write the response then make sure to close the connection.

  • Issue in keeping the InfoView session valid using Custom JSP Open Document

    Hi
    We are using OpenDocument URL in custom JSP to show BO Web Intelligence Document.  The documents are opening fine but some of our WebI documents have links to other WebI document,  when the link is clicked it takes to Info View Login Page.
    If I login and logout once from InfoView then the WebI document links work fine.
    Can you please guide me on how to make the session valid for WebI internal links?  Do I need to create a Cookie or use URL Encoding?
    Following is the sample JSP code:
    <%@ page import="com.crystaldecisions.sdk.exception.SDKException" %>
    <%@ page import="com.crystaldecisions.sdk.framework.CrystalEnterprise" %>
    <%@ page import="com.crystaldecisions.sdk.framework.IEnterpriseSession" %>
    <%@ page import="com.crystaldecisions.sdk.framework.ISessionMgr" %>
    <%@ page import="com.crystaldecisions.sdk.occa.infostore.IInfoStore" %>
    <%@ page import="com.crystaldecisions.sdk.occa.security.ILogonTokenMgr"%>
    <%
    try{
    String systemName = "ServerName";
    String userName = "user";
    String password = "pass";
    String authType = "secEnterprise";
    IEnterpriseSession enterpriseSession=null;
    if (enterpriseSession == null)
    ISessionMgr enterpriseSessionMgr = CrystalEnterprise.getSessionMgr();
    enterpriseSession = enterpriseSessionMgr.logon(userName, password, systemName, authType);
    ILogonTokenMgr logonTokenMgr = enterpriseSession.getLogonTokenMgr();
    String defaultToken = logonTokenMgr.createWCAToken("",20,10);
    response.sendRedirect("http://boServer:port/OpenDocument/opendoc/openDocument.jsp?iDocID=16894&token="+defaultToken);
    catch(Exception e)
    e.printStackTrace();
    %>

    Thanks Aasavari for responding. My problem is solved. 
    I need not create any cookie or create token using getLogonToken
    Some of the URLs in the webi documents were incorrect and so Info View was taking to the Info View Login page.  
    But I am surprised though why info view not complain about incorret and rather takes to the login page.
    Thanks for your help again.

  • Opening a seeded OAF page from custom JSP page.

    Hi All,
    We have requirement to open a seeded OAF page from custom JSP page.
    When we try to open URL of an OAF page after passing URL input parameters, we are always getting following error:
    'You have insufficient privileges for the current operation. Please contact your System Administrator.'
    On directly accessing the seeded OAF page, its encoding all the input parameters passed in URL. Also some more encoded parameters are getting added to the URL dynamically.
    Is there any standard way exists to invoke seeded OAF pages without passing encrypted parameters to it? Also where can we get more details about
    encrypting OAF URL parameters.
    Any pointers would be appreciated.
    Thanks in advance!
    Saurabh

    Have you duplicated entire Customer Service module's menu in your responsibility?
    or Also ping me the menu name..
    --Prasanna                                                                                                                                                                                                                                                               

  • Calling setter on backing bean via JavaScript / AJAX using JSF2

    My application requires me to invoke a setter on a backing bean instance. I am trying to do this using the following javascript code:
    var stateListWidth = document.getElementById("myform:stateListWidth");
    stateListWidth.setAttribute("value", 100);
    jsf.ajax.request(this, event, {execute: 'stateListWidth', render: 'stateListWidth'});and added a hidden field as follows:
    <h:form id="myform">
    <h:inputHidden id="stateListWidth" value="#{cityController.stateListWidth}"/>However my setter method is never called. I can see the parameters (myform:stateListWidth = 100) are POST'd to the server side, but not translated into a setter invocation. Any ideas if this is possible and how to do this.

    I got it working. Had to specify the full ID of the element myform:stateListWidth rather then just stateListWidth.
    var stateListWidth = document.getElementById(myform:stateListWidth);
    stateListWidth.setAttribute("value", 100);
    jsf.ajax.request(this, event, {execute: 'myform:stateListWidth', render: 'myform:stateListWidth' });I still wonder if there is a better way without using a hidden field to get this working?

  • Setting values to Display Only item during AJAX request

    Hello,
    Good Morning!
    In a master-detail form, in the detail report, I am populating two columns SERVICE_TAX_PCT and SERVICE_TAX_AMOUNT by making an AJAX request after selection of ACCOUNT_CODE.  Values are populated with out any issue. 
    However, as soon as I make those two fields as Display Only, the values are not getting set.  Is there a way to set the values to a field in the same time it should be restricted for user to change it?
    (APEX 4.2.6)
    Thanks,
    -Anand

    Hi Anand,
    anand_gp wrote:
    Hello,
    Good Morning!
    In a master-detail form, in the detail report, I am populating two columns SERVICE_TAX_PCT and SERVICE_TAX_AMOUNT by making an AJAX request after selection of ACCOUNT_CODE.  Values are populated with out any issue.
    However, as soon as I make those two fields as Display Only, the values are not getting set.  Is there a way to set the values to a field in the same time it should be restricted for user to change it?
    (APEX 4.2.6)
    check the example
    Step 1: Edit your page
    under CSS->Inline put the code given below
    .row_item_disabled {
       cursor: default;
       opacity: 0.5;
       filter: alpha(opacity=50);
       pointer-events: none;
    Step 2 : I guess you have Javascript function similar like given below
    you have to extract rowid first, for which you want to set the percentage , see line 6
    and see line 18, for disabling the column of that row.
    <script type="text/javascript">
       function f_fetch_tax_percentage(pThis) {
       var ajaxRequest;
       var ajaxResult;
       var row_id = pThis.id.substr(4);
       var percentage    = 'f05_' + row_id;   // replace f05 with the rowid of percentage column
       ajaxRequest = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=TAX_DTLS',0);
       ajaxRequest.addParam('x01',$v(pThis));
       ajaxResult = ajaxRequest.get();
       if ( ajaxResult.length > 0 ) {
       // set percentage
       $('#'+percentage).val(parseFloat(ajaxResult));
       // disable percentage column
       $("#f05_" + row_id).attr("readonly", true).addClass('row_item_disabled');        
    </script>
    Hope this helps you,
    Regards,
    Jitendra

  • How to Build Custom JSP Page to bypass Oracle Apps Login

    Hi All,
    Can some one guide me how to develop a custom jsp page to bypass Oracle Apps R12 Login.
    Actually Our requirement is some external user will enter the login details in some third party login page with the third party generated username and passwrod, that user's credentials are mapped to oracle system,so as soon as they enter credentials having validated it has to redirect that external user to Oracle Apps R12 Home Page, where responsibilities are shown. Currently that third Party login page is set to redirect to RF.jsp but that is not working and throws this error:
    "You are trying to access a page that is no longer active.
    - The referring page may have come from a previous session.Please select Home to Proceed"
    So I am planning to build a custom jsp page to resolve the error.
    As soon as user enter credentials in the third party login page, it will be redirected to my custom login page which in turn redirect external user to Oracle Apps R12 Home Page, where responsibilities are shown. Is it possible? If yes what JSP Page/Servlet I have to invoke from custom JSP Page and what all URL parameters or session parameters and cookies parameter I have to pass or set.
    Can anybody please help me...
    Its very urgent. We are running short of time. Its a sev 1 issue.
    Please reply soon.
    Thanks,
    Raja Dutta

    Hi,
    Thanks for the update.
    Sir its not about calling the JSP Page from OAF page.
    My requirement is what I have explained above.
    Please suggest its urgent.
    Thanks,
    Raja Dutta

Maybe you are looking for

  • PE10 slow & crashes in win7 64-bit

    I've just bought this, and it runs terribly... slows to load... sluggish in all operations and freezes or crashes often.  I downloaded thru Amazon.

  • Using my Apple TV to see programs on my TV set.

    My Apple TV tells me to turn on Home Sharing on my Computer through iTunes.  But this is already done.  I can play music from my iTunes through my Apple TV.  What is going on?

  • How to disable Row label from the aggregation function in Pivot table

    Hello everyone, I have table in Power Pivot like shown below: Item_Name Category Vendor Sales_Amount Item 1 Category 1 Vendor 1 30 Item 2 Category 1 Vendor 2 25 Item 3 Category 2 Vendor 3 50 Item 3 Category 2 Vendor 3 60 Item 3 Category 2 Vendor 3 20

  • Adobe Flash Player installation trouble

    First off, my apologies for this not being an 'Installation and Setup' issue with Leopard itself. Being prompted everywhere to download the new Flash player (Version 10+ I believe) I have, but I'm having one very annoying and probably very simple iss

  • Connect AE to third party wireless router

    Hi all, Here's what I'm trying to do: I have a Airport Extreme base that I want to connect to a non Apple wireless router (ISP wireless router). Anybody managed to do that? I tried setting up the base as WDS connnecting to my third party wireless rou