XMLHTTP OBJECT

I am sending information from the JSP to my Servet via xmlHTTP object ->
<script language="JScript">
var oHTTP = new ActiveXObject("Microsoft.XMLHTTP");
var oXML = new ActiveXObject("Microsoft.XMLDOM");
oHTTP.open("POST","myServletHere",false);
oHTTP.send(oXML);
alert(oHTTP.responseText);
</SCRIPT>
But I don't know how to recieve the information in the servlet and how to send information back to the JSP
please help me
TODA SHALOM.

2. yes , I will be happy to recieve source to [email protected]
Ok i sent you the example.
The whole example is poorly written but you shold be able to see the
concept(I didnt sent you the code i was working with at that time, because its too complex and messy.).
3. how do I return data from the servlet back to the JSP??its all in the example
4. what the alternatives you know to xmlhttp ( making server request without refreshing the page)processing the xml on client side this way (using data retrieved by xmlhttp) caused me many problems, because it takes some time for example tolad data from xml http to html xml element and javascript just wont wait for data to be loaded, this is the problem you will probably run into so i wont spend much time by explaining it to you, you will see for yourself
these days, if i need to process the http request without refreshing the page i use invisible iframe into which i target the request, i use the onLoad property of BODY element (in the document(response) loaded into mentioned iframe to trigger processing of response with javascript, so i can be sure taht data is beeing procesed only after its loaded completely)
but other(probably more experienced) developers say, that the whole concept of using frames/iframes is not good, because it demands more code => source of bugs and it is more complicated to make such pages compatible with other browsers
However i like using iframes (and sometimes im even in the mood for evil thinks like ms.xmlhttp) and one day i'll probably open the new thread in this forum on frame/iframe topic...
OK thats it, if you have any further problems/comments on my example just to ask.
Jano

Similar Messages

  • Applescript equivalent to VBA XMLHTTP object?

    Having no luck after hours of research on this. Is there an Applescript equivalent to the VBA XMLHTTP object?
    We have an Excel form that can pass data to a web service. We basically take the XML, wrap it in a SOAP envelope and send it using the xmlhttp object. Unfortunately, the xmlhttp object does not appear to exist for the mac version of Excel. If there is no equivalent to the xmlhttp object, is there an alternate way of making this work in applescript?
    Thanks in advance

    Thanks guys. We were able to solve the problem through Query Tables in VBA rather than resorting to Applescript.
    For anyone interested in the solution:
    Sub URLGetQuery()
    With ActiveSheet.QueryTables.Add(Connection:= _
    "URL;http://mywebservice.com/mywebserviceproc",
    Destination:=Range("a1"))
    .PostText = SoapString
    .BackgroundQuery = True
    .TablesOnlyFromHTML = True
    .Refresh BackgroundQuery:=False
    .SaveData = True
    End With
    End Sub
    Lets you post to a web service without using the xmlhttp object
    Message was edited by: Kennedy27

  • Xmlhttp.status stays null at times in Safari 3.0.3

    Hi,
    I am building an application using Ajax. I strangely found that the status of the Xmlhttp object i am using remains null at times during interactions. Works like a peach in other browsers though. *I strangely found it working in safari 3.0.4!*. Is this a bug in safari 3.0.3?
    Thanks in advance,
    Ajith

    Hi,
    If it's working in Safari 3.0.4 then it sounds like they fixed something.
    Safari 3.0.3 is now obsolete since the new 3.0.4 version is out.

  • How to use xmlhttp

    hi everybody
    My problem is that i have one dropdown list on selection of one item
    i have to call two different ajax pages for showing data from db
    how should i use xmlhttp request twice in one call
    anybody please gove me suggessions

    I have to build a custom application that does a http
    post of an XML file towards a ASP file runnning on
    the suppliers server. This application is scheduled
    to run automatically every week.Okay.
    I want to build this application using Java.Okay.
    Suppliers are using XMLHTTP on their side. So what? If they all jumped off a cliff, would you jump off too?
    Can you give me any ideas on how to impelement it? I
    have to use XMLHTTP object, but I just know that I
    can use it with in the JavaScript. Is there any way
    that I can get handle to XMLHTTP object in the Java
    program through which I can post my fileWho told you that you have to use XMLHTTP? If your requirement is "http post of an XML file" then it's pretty simple. Read this part of the networking tutorial:
    http://java.sun.com/docs/books/tutorial/networking/urls/index.html
    You may find that this works okay. But if you run into difficulties, like you have to authenticate or accept cookies or something like that, then try using Jakarta Commons HttpClient to deal with that stuff:
    http://jakarta.apache.org/commons/httpclient/

  • How can i set the values to text box by selecting from drop down list.

    hi ,
    i am using struts and jsps. i have a dropdown list of names(getting the values of names from database), i want to get address and phone number of that selected one.how can i get that?

    Hi swarupa,
    Well My advice in this senario wud Be
    Either U can make Use of XmlHttp Object through javascript(AJAX way).
    Or U need to Maintain the State of the entire form and then refresh the page to get those results....
    just for U r reference i am attaching a link which was programmed using ASP @ server side and which made use of XmlHttp Object.....
    http://www.w3schools.com/ajax/ajax_database.asp
    Just try to simulate the samething in your own way....
    REGARDS,
    RAHUL

  • Using ajax/servlets, different behaviour with different systems

    I have written a small web application using servlets and ajax. I used the tomcat bundled with netbeans for deploying it. In the front end I create a timer which keeps running. I also have a form containing a paragraph that displays a question, followed by radio buttons and two buttons - a next and a submit. When I click the next button, I call a javascript function that creates an xmlHttp Object and sends the request for the next question and options from the servlet. when I request I also pass what the user has selected for the current question. when the timer reaches twelve or the user has finished attending all questions, the function would request for score through another xmlHttp Object. This program works fine in my computer. I also installed another tomcat server and ran it on another port and tested it. It works fine. But when I ran it college, the page was not displayed properly. When I click an option the contents of the form moves and only when I click the Next button twice, the corresponding javascript function is called.
    I am pasting the html file and the servlet. What could be the reason?
    This is qns.html
    <html>
      <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    //styles
        <script type ="text/javascript">
            <!--
            var no_of_qns = 2;
            var s = 1;
            var m = 0;
            var h = 0;
            var jsqno = 0;
            var flag = 0;
            var jsnds;
            var jmin;
            var sid;
            var cont;
            var oldhtml;
            function load(){
                cont = document.getElementById('container');
                oldhtml = cont.innerHTML;//backup the content to display it after the user accepts the rules
                var ins = "<ul><li>You have to complete 30 qns in 30 mins</li><li>Click finish to quit</li><li>All the best</li></ul>";
                cont.innerHTML = "<p style =\" text-align: center; font-size : 17px \">Instructions</p>"+ins+"<form action=\"javascript:funct()\"><input type=\"submit\" value = \"I have read the instructions\"></form>";
            function funct(){
                    //alert('why?');
                    cont.innerHTML = oldhtml;//replace back the question after user has accepted to the terms and conditions.
                    sid = setInterval("updateClock()",1000);
                    ajaxFunction(0);
            function ajaxFunction(chz)
                jsnds = document.getElementById('snds');
                jmin = document.getElementById('min');
               var back;
                var ans = 'arunkumar c';
                try
                    var xmlHttp=new XMLHttpRequest();
                catch (io)
                    alert("Your might be using IE or your browser does not support AJAX!.");
                    return false;
                xmlHttp.onreadystatechange=function()
                    if(xmlHttp.readyState==4)
                           // Get the data from the server's response
                           back = xmlHttp.responseText;
                           if(flag == 0){
                                var values = back.split("|");
                                document.getElementById("question").innerHTML=values[0];
                                document.getElementById("choicea").innerHTML=values[1];
                                document.getElementById("choiceb").innerHTML=values[2];
                                document.getElementById("choicec").innerHTML=values[3];
                                document.getElementById("choiced").innerHTML=values[4];
                                return true;
                                else{
                                    //alert('what');
                                    document.getElementById("container").innerHTML = "<p>You have completed the test and your score is "+back+".</p><p><a href=\"/OnlineApti/login.html\">Go Back</a> to login page! Thank you!";
                if(uform.choice[0].checked == true){
                    ans = document.getElementById("choicea").innerHTML;
                else if(uform.choice[1].checked== true){
                    ans = document.getElementById("choiceb").innerHTML;
                else if(uform.choice[2].checked == true){
                    ans = document.getElementById("choicec").innerHTML;
                else if(uform.choice[3].checked == true){
                    ans = document.getElementById("choiced").innerHTML;
                if(chz == 1){
                    jsqno = no_of_qns;
                if(jsqno == no_of_qns)
                    clearInterval(sid);
                     //alert(clearInterval(sid));
                     flag = 1;
                jsqno = jsqno + 1;
                var url = "http://localhost:8084/OnlineApti/test";
                url = url+"?qno="+jsqno+"&ans="+ans;
                //alert(url);
                xmlHttp.open("GET",url,true);
                xmlHttp.send(null);
            function updateClock(){
                //alert('why');
                s++;
                jsnds.innerHTML=" "+s;
                if(s == 60){
                    m++;
                    s = 0;
                    jmin.innerHTML =" "+m;
                //alert("http://localhost:8084/OnlineApti/test?qno="+(no_of_qns+1)+"&ans=final");
                if(m == 30){
                    alert ('The quiz is over!! You failed to complete it within the time limit');
                    var xmlHttp;
                    try
                        xmlHttp=new XMLHttpRequest();
                    catch (io)
                        alert("Your might be using IE or your browser does not support AJAX!.");
                        return false;
                    xmlHttp.onreadystatechange=function()
                        if(xmlHttp.readyState==4)
                            var back = xmlHttp.responseText;
                            document.getElementById("container").innerHTML = "<p>You have completed the test and your score is "+back+".</p><p><a href=\"/OnlineApti/login.html\">Go Back</a> to login page! Thank you!";
                    xmlHttp.open("GET","http://localhost:8084/OnlineApti/test?qno="+(no_of_qns+1)+"&ans=final",true);
                    xmlHttp.send(null);
                    clearInterval(sid);
      //-->
      </script>
      </head>
      <body onload="load()">
        <div class="top">
         <h1>Welcome to Online Quiz</h1>
        </div>
        <div class="main" id="container">
            <form name ="uform" action="javascript:ajaxFunction(1)">
            <table cellpadding ="5" cellspacing ="20">
                <thead></thead>
                <tbody>
                    <tr>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td align="right">
                            <p style="text-align:right" id="clock">Time: 0:<span id="min">0</span>:<span id ="snds">0</span></p>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            <p id="question"></p>                 
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input type="radio" name ="choice"><span id="choicea"></span>
                        </td>
                        <td>
                            <input type="radio" name ="choice"><span id="choiceb"></span>
                        </td>
                        <td>
                            <input type ="radio" name ="choice"><span id="choicec"></span>
                        </td>
                        <td>
                            <input type ="radio" name="choice"><span id="choiced"></span>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <input type ="button" value ="Next" name ="nxt" onclick="ajaxFunction(0)">
                        </td>
                        <td colspan="2">
                            <input type = "submit" value ="Finish">
                        </td>
                    </tr>
                </tbody>
            </table>
        </form>
        </div>
      </body>
    </html>
    import java.io.*;
    import java.net.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.lang.*;
    * @author arun
    public class test extends HttpServlet {
        * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
        * @param request servlet request
        * @param response servlet response
            Connection con;
            int marks = 0;
            StringBuffer qn;
            int qno;
            String prevAns = "wow";
            String choice = new String();
            //To be updated based upon the number of questions!!
            int no_of_qns = 2;
        public void init(ServletConfig config) throws ServletException {
            try {
                Class.forName("org.gjt.mm.mysql.Driver");
                con = DriverManager.getConnection("jdbc:mysql://localhost:3306/mysql", "root", "");
                Statement qry;
                qry = con.createStatement();
                qry.executeQuery("use login;");
            } catch (Exception io) {
                System.out.println(io);
                System.exit(0);
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            qn = new StringBuffer();
            try {
                Statement qry;
                qry = con.createStatement();
                qno = Integer.parseInt(request.getParameter("qno"));
                choice = request.getParameter("ans");
                if(prevAns.equalsIgnoreCase(choice)){
                      marks++;               
                if(qno == (no_of_qns +1)){
                    out.println(marks);
                    marks = 0;
                String qryString = "select * from questions where questionno="+qno+";";
                ResultSet rs = qry.executeQuery(qryString);
                while(rs.next()){
                    qn.append(rs.getString(1));
                    qn.append(") "+rs.getString(2));
                    qn.append("|"+rs.getString(3));
                    qn.append("|"+rs.getString(4));
                    qn.append("|"+rs.getString(5));
                    qn.append("|"+rs.getString(6));
                    prevAns =rs.getString(7);
                out.println(qn.toString());
            catch(SQLException io){
                System.out.println(io);
            finally {
                out.close();
        // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        * Handles the HTTP <code>GET</code> method.
        * @param request servlet request
        * @param response servlet response
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        * Handles the HTTP <code>POST</code> method.
        * @param request servlet request
        * @param response servlet response
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        * Returns a short description of the servlet.
        public String getServletInfo() {
            return "Short description";
        // </editor-fold>
    }What might be the problem?
    Edited by: carunkumar on Oct 4, 2008 8:21 AM

    carunkumar wrote:
    function ajaxFunction(chz)
    jsnds = document.getElementById('snds');
    jmin = document.getElementById('min');
    var back;
    var ans = 'arunkumar c';
    try
    var xmlHttp=new XMLHttpRequest();
    catch (io)
    alert("Your might be using IE or your browser does not support AJAX!.");
    return false;
    }First thing is that the Ajax request you are building is not browser specific.
    Go to this site it will give you the specific code www.tizag.com/ajaxTutorial/
    And do try and test your program on diff browser from your pc only. Its a ajax world so be careful while dealing with browsers
    and there settings. Just check your browser setting on your pc and check the same setting at your college also.
    Buddy this ajax give a trick in big presentation also :) So no need to worry and test it and do it, its real fun when you just
    cross this browser secific dependencies.
    Cheers
    Sachin Kokcha

  • How to call webservice from tsql?

    Hello!
    From an stored proc I want to call an existing web-service.
    How to do that??
    Must it be done using CLR-procs or is there some way in TSQL?
    Greetings
    Bjorn

    sorry for my english. I expect you understand me...
    I do that extended sp 
    Code Block
    use atdb_main_test
    Declare @Object as Int;
    Declare @ResponseText as Varchar(8000);
    DECLARE @login VARCHAR(50);
    DECLARE @user_passwd VARCHAR(50)
    Exec master..sp_OACreate 'MSXML2.XMLHTTP', @Object OUT;
    Exec master..sp_OAMethod @Object, 'open', NULL, 'get', 'http://172.xx.xx.xx:wwww/account.asmx?op=CreateEquipementMacAddress', 'false'
    EXEC master..sp_OASetProperty @Object, 'user_login', @login
    EXEC master..sp_OASetProperty @Object, 'user_passwd', @user_passwd
    EXEC master..sp_OASetProperty @Object, 'p_nb_poste', 1
    EXEC master..sp_OASetProperty @Object, 'p_id_site', 91400
    EXEC master..sp_OASetProperty @Object, 'p_id_type_poste', 83
    EXEC master..sp_OASetProperty @Object, 'p_adresse_mac', null
    EXEC master..sp_OASetProperty @Object, 'p_num_serie', null
    EXEC master..sp_OASetProperty @Object, 'login', null
    EXEC master..sp_OASetProperty @Object, 'passwd', null
    EXEC master..sp_OASetProperty @Object, 'default_gateway', null
    EXEC master..sp_OASetProperty @Object, 'ip', null
    EXEC master..sp_OASetProperty @Object, 'bCreateIPPhone', 'false'
    EXEC master..sp_OASetProperty @Object, 'vlanId', 0
    Exec master..sp_OAMethod @Object, 'send'
    Exec master..sp_OAMethod @Object, 'responseText', @ResponseText OUTPUT
    Select @ResponseText as ResponseText
    Exec master..sp_OADestroy @Object
    I use a SQL server 2000 and don't do anything else.
    But it doesn't work
    I don't know what to do ...
    the message is (1 row affected) but no tupple is written in my db...
    can you help me please ?

  • How to call webservice?

    Hello,
    i am trying to call webservice.i tryed  following code for calling webservices via actionscript.it is givind the response.but it is not giving correct response.
    is this correct way to call webservice?is there other way to call webservice?can anybody tell me,how to call webservice?
    <mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” layout=”vertical” width=”420″ height=”380″ xmlns:net=”flash.net.*”>
    <mx:Script><![CDATA[
    import mx.rpc.soap.LoadEvent;
    import mx.rpc.AbstractOperation;
    import mx.controls.Alert;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.soap.Operation;
    import mx.rpc.soap.WebService;
    private var serviceURL:String = "http://localhost:7080/icon-ws/services";
    private var wsdlURL:String = "http://localhost:7080/icon-ws/bulkUpload.wsdl";
    private function callWS():void {
    var service:WebService = new WebService(serviceURL, serviceURL);
    service.wsdl = wsdlURL;
    service.loadWSDL();
    var oper:Operation = service.getOperation("BulkUpload") as Operation;
    oper.addEventListener("result", resultHandler);
    oper.addEventListener("fault", faultHandler);
    oper.send();
    public function resultHandler(event:ResultEvent):void {
    Alert.show("Result returned"+ event.result.toString());
    public function faultHandler(event:FaultEvent):void {
    Alert.show("fault: "+ event.toString());
    ]]></mx:Script>
    <mx:Button id=”selectBut” label=”CALL webservice” click=”callWS()”/>
    </mx:Application>

    sorry for my english. I expect you understand me...
    I do that extended sp 
    Code Block
    use atdb_main_test
    Declare @Object as Int;
    Declare @ResponseText as Varchar(8000);
    DECLARE @login VARCHAR(50);
    DECLARE @user_passwd VARCHAR(50)
    Exec master..sp_OACreate 'MSXML2.XMLHTTP', @Object OUT;
    Exec master..sp_OAMethod @Object, 'open', NULL, 'get', 'http://172.xx.xx.xx:wwww/account.asmx?op=CreateEquipementMacAddress', 'false'
    EXEC master..sp_OASetProperty @Object, 'user_login', @login
    EXEC master..sp_OASetProperty @Object, 'user_passwd', @user_passwd
    EXEC master..sp_OASetProperty @Object, 'p_nb_poste', 1
    EXEC master..sp_OASetProperty @Object, 'p_id_site', 91400
    EXEC master..sp_OASetProperty @Object, 'p_id_type_poste', 83
    EXEC master..sp_OASetProperty @Object, 'p_adresse_mac', null
    EXEC master..sp_OASetProperty @Object, 'p_num_serie', null
    EXEC master..sp_OASetProperty @Object, 'login', null
    EXEC master..sp_OASetProperty @Object, 'passwd', null
    EXEC master..sp_OASetProperty @Object, 'default_gateway', null
    EXEC master..sp_OASetProperty @Object, 'ip', null
    EXEC master..sp_OASetProperty @Object, 'bCreateIPPhone', 'false'
    EXEC master..sp_OASetProperty @Object, 'vlanId', 0
    Exec master..sp_OAMethod @Object, 'send'
    Exec master..sp_OAMethod @Object, 'responseText', @ResponseText OUTPUT
    Select @ResponseText as ResponseText
    Exec master..sp_OADestroy @Object
    I use a SQL server 2000 and don't do anything else.
    But it doesn't work
    I don't know what to do ...
    the message is (1 row affected) but no tupple is written in my db...
    can you help me please ?

  • Using application_process with packaged application SAVE_LARGE_VALUE ?

    I'm currently try to add the workaround "save large value" in my application. This is using 2 pages. Can I replace the POST page by an Application Process ?
    When I'm trying, it's doesn't work. The Application Process doesn't like : get.addParam. Do you know why ?
    Step :
    1 - Call clob_submit
    2 - $a_PostClob('P35_DESCRIPTION','SAVE','71',clob_SubmitReturn);
    <h3> 1- Html Header</h3>
    <script src="/i/javascript/apex_save_large.js" type="text/javascript"></script>
    <script type="text/javascript">
    function clob_Submit(){
              $a_PostClob('P35_DESCRIPTION','SAVE','71',clob_SubmitReturn);
    <h4>function clob_SubmitReturn(){</h4>
              if(p.readyState == 1){
                             $x_Show('AjaxLoading');
              }else if(p.readyState == 2){
              }else if(p.readyState == 3){
              }else if(p.readyState == 4){
    $x('P35_DESCRIPTION').value = '';                         
    $x_Hide('AjaxLoading');
    doSubmit(/*document.wwv_flow.p_request.value*/'SAVE');
              }else{return false;}
    <h4>function clob_Get(){</h4>
    $a_GetClob('GET','71',clob_GetReturn);
    <h4>function clob_GetReturn(){</h4>
              if(p.readyState == 1){
                             $x_Show('AjaxLoading');
              }else if(p.readyState == 2){
              }else if(p.readyState == 3){
              }else if(p.readyState == 4){
                             $x_Hide('AjaxLoading');
    oEdit1.loadHTML(p.responseText);
              }else{return false;}
    <h4>function doSubmit(r){</h4>
    $x('P35_DESCRIPTION').value = ''
         flowSelectAll();
         document.wwv_flow.p_request.value = r;
         document.wwv_flow.submit();
    <h3>2 - APEX_SAVE_LARGE.js</h3>
    /* Extended Javscript Objects */
    this adds better aysnc functionality
    to the htmldb_Get object
    pVar is the function that you want to call when the xmlhttp state changes
    in the function specified by pVar the xmlhttp object can be referenced by the variable p
    htmldb_Get.prototype.GetAsync = function(pVar){
    try{
    p = new XMLHttpRequest();
    }catch(e){
    p = new ActiveXObject("Msxml2.XMLHTTP");
    try {
         var startTime = new Date();
                   p.open("POST", this.base, true);
                   if(p){
                             p.onreadystatechange = pVar;
                             p.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
                             p.send(this.queryString == null ? this.params : this.queryString );
                             return p;
              }catch(e){
    return false;
    /* Begin Post and Retrieve Large Strings */
    <h4>function $a_PostClob(pThis,pRequest,pPage,pReturnFunction){</h4>
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,pRequest,pPage, null, 'wwv_flow.accept');
    var lSplitter = html_GetElement(pThis);
    var lSplitterValue = lSplitter.value;
    var i=0;
    if (lSplitterValue.length<=4000) {
    get.addParam('f01',lSplitterValue);
    } else {
    while (lSplitterValue.length>4000) {
    get.addParam('f01',lSplitterValue.substr(0,4000));
    lSplitterValue = lSplitterValue.substr(4000,lSplitterValue.length-4000);
    i++;
    get.addParam('f01',lSplitterValue);
    get.GetAsync(pReturnFunction);
    get=null;
    <h4>function $a_GetClob(pRequest,pPage,pReturnFunction){</h4>
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,pRequest,pPage, null,'wwv_flow.accept');
    get.GetAsync(pReturnFunction);
    get = null;
    x = null;
    /* End Post and Retrieve Large Strings */
    Sylvain Michaud
    Homepage : http://www.insum.ca
    InSum Solutions' blog : http://insum-apex.blogspot.com

    My example is finish.
    Workspace : listecd
    Login : GUEST
    Password : GU4EST
    Application : http://apex.oracle.com/pls/otn/f?p=29216
    Page # 2 Html Header :
    You have two choice
    <h3>1 - This is to call the page 3</h3>
    /*$a_PostClob('P2_COL1','SAVE','3',clob_SubmitReturn);*/
    <h3>2 - This is to call the application process.</h3>
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=saveclob',0);
    var lSplitter = html_GetElement('P2_COL1');
    var lSplitterValue = lSplitter.value;
    var i=0;
    if (lSplitterValue.length<=4000) {
    get.addParam('f01',lSplitterValue);
    } else {
    while (lSplitterValue.length>4000) {
    get.addParam('f01',lSplitterValue.substr(0,4000));
    lSplitterValue = lSplitterValue.substr(4000,lSplitterValue.length-4000);
    i++;
    get.addParam('f01',lSplitterValue);
    get.GetAsync('clob_SubmitReturn');
    get=null;
    Add or remove comment to use it. The first method work fine but the other doesn't work.
    I want to know what's the best way to integrate this method with create record and update record. In this example, you can update record but you can't insert new record.
    Thanks. I'm waiting your comments.
    Sylvain Michaud
    Homepage : http://www.insum.ca
    InSum Solutions' blog : http://insum-apex.blogspot.com
    Message was edited by:
    smichaud

  • How to send HTML DOM to Servlet?

    How to send HTML DOM to Servlet?

    What exactly you mean by sending DOM to servlet?? if you want to post the entire html to servlet use XMLHttp object and post the entire html to servlet. You can get more info on XMLHttp at microsoft's MSDN site.

  • HTTP Sender Adapter

    Hi,
    I have tried the HTTP client code that was given in many of the forums to post the messages into XI. It works fine. But this is good for testing. How does a HTTP real time client sending a message gets posted into XI without sender information? Do we have to enforce the HTTP sender pattern in the query string or simply how does it work?
    Thanks for any reply regarding this.

    Hi Harika,
    We have created a scenario in which ASP is communicating  with XI. In that we had written a vbscript function which will create the XML object (which is to be send to the XI server). MSXML2.XMLHTTP object was then created and the above formed XML object was send as a STRING.
    The communication string for opening the connection was the same as given by priyanka.
    Hope this will be helpful.  
    Regards
    Suraj

  • Calling servlet from Java

    Hello!
    I need to send XML file to servlet from Java. I generate XML in general java class.
    Is there any way how to call servlet directly from Java without using a page with form? I need to send it by post method. I need some java alternative to Microsoft.XMLHTTP object.
    Thanks

    Try this part of the Networking tutorial:
    http://java.sun.com/docs/books/tutorial/networking/urls/index.html
    It might be the answer to your question.

  • HTML DB and Web 2.0

    I started discussing this at
    Future direction of HTML DB
    I have been doing some reading about this new buzzword Web 2.0 that seems to have sprouted in the last few months. It is all about rich, thin-client Web applications with amazing amount of interactivity and responsiveness.
    See
    http://www.smartclient.com
    http://www.bindows.net
    http://dojotoolkit.com/
    etc
    All this and much more is discussed on the blog at http://www.ajaxian.com
    As far as HTML DB is concerned, Carl said on the earlier thread above that 3.0 is going to have features to add more AJAX style interactive stuff in the App Builder in a declarative way.
    Thats great, but I think the entire philosophy of HTML DB (Application Builder) might need to change to really meet the needs of creating interactive apps like the ones showcased above. HTML DB has a very robust back-end infrastructure, great security, great show/accept processing, great reporting engine, but it has a really small selection of "widgets" and even poorer layout options. Template based layout is great when you want to have a consistent look and feel but it really goes against HTML DB's stated goal of rapid app development (drag and drop layout would be more in line here)
    Would HTML DB 3.0 be able to create apps like the ones above? 4.0? 5.0?
    I read on this forum once that HTML DB generates HTML, so anything that can be done in HTML can be done in HTML DB. But these rich apps are so much more than just HTML, they feature such a high degree of interactivity, that entire concept of user interactiion is missing from the HTML DB Application Builder.
    To all the non-Oracle people out there, how important is this kind of functionality to you? Do you see a clamour for it today? Are your business users demanding these features? Are they even aware of this?
    [Dont get me wrong: As anyone who lurks these forums knows, I am a great fan of HTML DB, I wouldnt hang around if I werent. I started off earlier this year and got some great help from this forum. Nowadays, I find that I have more answers than questions so I try to return the favor and help out when I can. But I cant help but shake the feeling that Oracle has kind of missed the boat on this one, HTML DB is too little, too late. Of course, I would be glad to be proven wrong!]
    Closing comment: One of the blog entries was very blunt
    "OS itself has a wonderful array of panels, buttons, etc.
    Once upon a time there were great tools like Delphi that
    allowed developers to take advantage of the operating
    system. With Delphi's ability to create single-file exe's
    with all dll's being optional, it was quite possible to
    build a fantastic thin client app that outperforms all of
    this silly ajax stuff, and was MUCH MORE secure. The rush to
    web apps seems so silly, when Windows has provided the
    ability to do all of this great work for a long, long
    time... "
    Comments welcome.
    Thanks

    Scott: Appreciate your input, as always.
    No and no. Most business users are simply amazed by
    HTML DB in and of itself. Nothing special or
    additional is needed to "wow" them. Maybe my experience is slightly different because we just finished deploying Siebel CRM in our organization.
    Have you seen the Siebel e-Business CRM software? Siebel 7 runs entirely in a browser and its UI is amazing, just like a desktop application, very responsive and seamless. No Submit button anywhere in sight. No explicit Save, just step off the record to save. Drag and drop to reorder stuff, the list goes on and on.
    Contrast that to a traditional thin-client application (be it HTML DB or .NET or ASP or PHP or whatever) and you will see why business users get confused as to why thin-client means so wildly different things.
    And Siebel, like a few other vendors, has been doing this for 3+ years now, long before the media attached these fancy buzz words like AJAX and DHTML to it.
    I mean, here we are swooning into ecstasy, going Oooh, Ahh over little things like Type-ahead, Autocomplete in text boxes, dynamic select lists when this stuff has been available to business users via (desktop) client-server applications since Windows 3.1 days! With the advent of the Internet era and thin-client browser based UIs, we sacrificed rich application functionality for ease of deployment and maintenability for us (IT folks)! Business users got a raw deal!
    [Maybe now that Oracle is thinking about buying Siebel some of that technology will seep over into HTML DB!]
    Again, I tend to be more conservative when
    recommending that a project use a brand new
    technology, but at the same time, see lots of newI fully appreciate the value of stability and security and as I said in my original post HTML DB's back-end infrastructure is rock-solid. Great show/accept processing, insanely fast, great security, just superb.
    But this AJAX stuff is neither so bleeding edge nor so unstable as it is made out to be.
    Rumour has it that Microsoft's Outlook Web Access team "invented" the XMLHTTP object back in 2001 and many many robust Javascript libraries have been built on top of it. Javascript has been around in browsers for almost a decade now. Yes, industry standards and browser support for CSS still continues to evolve but good toolkits handle this (and cross-browser compatibilty) quite well.
    Again, none of this stuff is exactly "new", the underlying components (XMLHTTP, Javascript, CSS, plain old DOM scripting) has been around for years now.
    Thanks

  • Regarding AJAX

    while running a webapplication using AJAX I'm getting the following Exception;
    java.lang.Throwable: [HTTP:101249][ServletContext(id=8142880,name=ajax-validation,context-path=/ajax-validation)]: Servlet class com.sun.j2ee.blueprints.bpcatalog.ajax.ValidationServlet for servlet ValidationServlet could not be loaded because the requested class was not found in the classpath D:\SF_finalbuild\WLSF_finalbuild\SFServerfinalbuild\.wlnotdelete\extract\SFServerfinalbuild_ajax-validation_ajax-validation\ajax-validation.war;D:\SF_finalbuild\WLSF_finalbuild\.\SFServerfinalbuild\.wlnotdelete\extract\SFServerfinalbuild_ajax-validation_ajax-validation\jarfiles\WEB-INF\lib\weblogic.jar;D:\SF_finalbuild\WLSF_finalbuild\.\SFServerfinalbuild\.wlnotdelete\extract\SFServerfinalbuild_ajax-validation_ajax-validation\jarfiles\_wl_cls_gen.jar;D:\SF_finalbuild\WLSF_finalbuild\.\SFServerfinalbuild\.wlnotdelete\extract\SFServerfinalbuild_ajax-validation_ajax-validation.
    java.lang.UnsupportedClassVersionError: com/sun/j2ee/blueprints/bpcatalog/ajax/ValidationServlet (Unsupported major.minor version 49.0).
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(Lweblogic.servlet.internal.RequestCallback;)V(ServletStubImpl.java:834)
         at weblogic.servlet.internal.ServletStubImpl.getServlet(Lweblogic.servlet.internal.RequestCallback;)Ljavax.servlet.Servlet;(ServletStubImpl.java:535)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:373)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:315)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6718)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
         at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)

    hi benubach..... i hav done that also...
    var asynObj = getXMLHTTPRequest();
    asynObj.open("GET","/ProcessComp/AjaxChecklistDisplayServlet?&selected_process = " + selectedValue + "",true);
    asynObj.onreadystatechange = Display_responseText;
    asynObj.send(null);
    this is my code for getting XMLHTTP object....Where getXMLHTTPRequest() function is like :
    function getXMLHTTPRequest()
    var temp = false;
    try
    temp = new ActiveXObject("Microsoft.XMLHTTP");
    catch(err1)
    temp = false;
    return temp;
    Still no luck .... Any guess

  • Http POST question

    I am new to this but, I am trying to post XML data to a http adapter using a XMLHTTP object (in either an ASP file or vbscript) and i keep getting a 'Start of root element expected'. Does anyone know of any examples so that I can see where i am going wrong.
    many thanks

    Thanks for the response it was actually the firewall that was causing the issue i disabled it and was able to communicate with phone's web server
    Anyway i was able to send a POST to the phone's web server and also got a 200 OK response for it with an xml body as . But the XML object that
    i added to the POST is not getting displayed on the phone. The following is the POST request i had sent to the ip phone
    POST /CGI/Execute HTTP/1.1
    Host: xxx.xxx.xxx.xxx:80
    Connection: Close
    Date: Mon, 06 Aug 2007 09:05:38 GMT
    Server: Microsoft-IIS/6.0
    X-Powered-By: ASP.NET
    Authorization: username="suresh"
    Content-Type: text/xml
    Content-Length: 204
    Cache-control: private
    Title
    Select the option
    Menu
    http://xxx.xxx.xxx.xxx/CiscoServices/airline/airlines.asp
    Let me know if there is an issue with the POST request

Maybe you are looking for

  • Custom report templates with the help of BI Publisher.

    Hi All, I have created custom report templates with the help of BI Publisher it is working as we excepted. refered : https://blogs.oracle.com/kyle/tags/reports But our requirement want to change the color of heading and include filters in output repo

  • Dual monitor setup on imac G5 only works in mirror mode

    Hi, I have an iMac G5, 2Ghz. I have added a second monitor but when I go to Displays, I don't get an option to setup the monitors like I do on my Intel iMac. The G5 goes into mirror mode and displays the same image on both monitors. I would like to s

  • Acrobat 9 PRO Installation Error

    Receive error message when I try to install Acrobat 9 Pro - once it reaches 99.96% of the installation, a Window's popup box opens with the following: "Setup.exe has stopped working.  A problem caused the program to stop working correctly.  Windows w

  • Un muting blinking mute buttons

    I don't know how I did this, but can't seem to un-mute them!

  • APACHE SSL: Problem in converting from HTTP to HTTPS

    Hi, I have installed apache on my system with openSA flavour with SSL.I need to host my site with https instead of http.While starting apache i get the following error: [warn] pid file c:/opensa/apache/logs/httpd.pid overwritten -- Unclean shutdown o