Question on AJAX implementation on java

Hi! I'm very new to the concept of AJAX and I was hoping someone could help me out. Basically, I have an application that needs to implement AJAX to speed up the transaction.
What the program does is it has a dropdown box which has dates. After the user selects a date and clicks the submit button, the server returns a user from the database.
My question is, how do I implement AJAX here? If it is possible, please guide me with this since I barely know how and where to start.
Thanks!

russcals wrote:
Hi! I'm very new to the concept of AJAX and I was hoping someone could help me out. Basically, I have an application that needs to implement AJAX to speed up the transaction.Then you're using it for the wrong reasons
What the program does is it has a dropdown box which has dates. After the user selects a date and clicks the submit button, the server returns a user from the database.Interesting. So what's the relationship between date and user, and how is that going to speed up "the" transaction?
My question is, how do I implement AJAX here? If it is possible, please guide me with this since I barely know how and where to start.
Thanks!You barely know where to start with Ajax? I see a bright future in web development for you, then, since nobody else that uses it seems to have a clue, either

Similar Messages

  • Design patterns implemented in java API

    Hi,
    I have some questions on design patterns implemented in core java class or in general in java API.
    1)Whether
    java.util.Collections, the checkedXXX(), synchronizedXXX() and unmodifiableXXX() methods.
    can be considered as a decorator pattern?
    2) Whether
    LinkedHashMap(LinkedHashSet<K>, List<V>) which returns an unmodifiable linked map which doesn't clone the items, but uses them
    can be considered as a Bridge pattern?
    3) Whether Facade pattern is implemented in java ? If so which API uses it?
    4) Whether
    •     All non-abstract methods of java.io.InputStream, java.io.OutputStream, java.io.Reader and java.io.Writer.
    •     All non-abstract methods of java.util.AbstractList, java.util.AbstractSet and java.util.AbstractMap
    can be considered as a Template method pattern?
    5) Whether
    •     java.util.Comparator#compare(), executed by among others Collections#sort()
    can be considered as a Stratergy pattern?
    6)
    Whether State pattern is implemented in java ? If so which API uses it?
    7)
    All implementations of java.lang.Runnable are considered as a Command pattern.
    8)
    Whether
    •     java.io.InputStreamReader(InputStream) (returns a Reader)
    •     java.io.OutputStreamWriter(OutputStream) (returns a Writer)
    can be considered as an Adapter pattern?
    Please clarify.
    Thanks.

    What do you think, and why?

  • Firewall implementation in java

    Need help about firewall implementation in java,Is it possible to develop application level firewall in java?how?

    No.
    You can control a firewall in C or such from Java. But you must have native codes in part of it.
    This question is asked repeatedly.. you really should have searched because the answer is always the same. You can't do it directly in Java.

  • How to implement a java class

    dear friends
    i use forms6i server and oracle 9i server edition,under windows 2000 server
    i try to implement a java class for a bean area. i do the following :
    from the property palette i write the class name in implementaion class property . the class name is 'arc.class' and it is located in <oracle_home>/forms60/java
    but the fellowing error appears
    frm-13008 cannot find javabean with name 'arc.class'
    would any one help please

    Dear Grant Ronald
    thank you very much for helping me . now i undersatand how to implement a class. but i have another question ,and i wish you ccould help me .
    i try to import a java class, i do the following:
    From the program menue i choose Import Java Class
    but the following error appears
    (pde-uji001 faild to create JVM)
    by the way i use forms6i server and oracle 9i server under windows 2000 server
    thanks in advance
    tarek

  • How to implement a java application in Portal

    Hello,
    I was asked if it is possible to implement a java (not a web application / not java web dynpro) to implement into the portal. Is this possible with something like the java web start? Is someone using something like that in the real world?
    Thanks a lot,
      Vanessa

    Hi Vanessa.
    Yes, it is possible to integrate Java applets into portal. Have a look at XML Form Buider or SAP Management console (http://portalhost.domain:5xx13).
    Best regards,
    Aliaksandr Zhukau

  • How resource files(.rc) are implemented in java

    I want to know how resource files are implemented in java. I am using a window98 as OS.
    Thank you
    Abu_ramla

    I wonder if this might help:
    ResourceBundle rbd = ResourceBundle.getBundle("Filename");
    to get a property out of the resourceBundle use:
    String varname = (String) prb.getObject("propName");
    As allways, check the API
    Hope this helps
    Elouiza

  • Implementing a java connector

    Has anyone tried implementing a JCA Resource Manager the would integrate into a J2EE server for communication with a remote server?
    I'm thinking about implementing one for connectivity with an Http server....
    Has anyone tried something of this sort?

    mkx wrote:
    Hi,
    we are currently implementing a Java connector for the X11 windowing system and we're running into trouble with event handling.
    What we are doing is to fork a thread from the main application that will then invoke a native event handling loop that will listen for X11 events. Whenever such an event occurs, it will call back to a Java object to report that event.
    While receiving and reporting events works fine, any successive calls from the main thread to the native windowing functions will block the program.
    Let me outline the call order again:
    1. Java application is started, main thread created
    2. New Java thread is started that invokes a native method that itself runs in a while loop
    3. Normal program flow continues in the main Java thread
    4. Main Java thread now calls some native method, and locks up
    Any idea why this is happening? Is it not possible to invoke the same native code within two distinct Java threads? I have looked into the JNI functions AttachCurrentThread and DetachCurrentThread, but they only seem to handle the problem that two native threads share the same JVM, but that's not what we need. We have two Java threads that need to share the same native code.Are you sure its not a problem with the something in the X11 code being non-reentrant?
    http://www.gnu.org/software/libc/manual/html_node/Nonreentrancy.html#Nonreentrancy
    Jim S.

  • VCard implementation in Java

    Hi all,
    Has anybody implemented vCard in java....
    If yes, could you please explain how it can be implemented,
    thanks
    ybajaj

    There exists a publically available vCard implementation in Java. It is available under a BSD style license, and can be found at
    http://jpim.sourceforge.net
    It reads 2.1 and 3.0 cards (into a business object model) and is able to write 3.0 cards (from the business object model).
    Regards,
    Wimpi

  • ESB Implementation in Java to connect various services

    Hi,
    I am looking to use ESB to integrate various webservices running in differenr platforms like one in Java,PHP and .NET.
    I am using Oracle SOA Suite. Is there any examples in the internet how to do this? I am not able to find any? It will be really great if some can provide some light into this for the below points:-
    1) Setting up the ESB infrastructure
    2) ESB implementation in java
    3) To implement ESB we need to use only the JMS?
    Please do provide some helping hand which will help me to understand it and complete the process.
    Thanks in advance.

    I decompiled HttpClient and ConsoleClientImpl and this is what I found --- The following URL is what is constructed,
    http://localhost:80/esb/j_security_check and these parameters are passed as POST - j_username=oc4jadmin&j_password=welcome1
    I tried
    http://localhost:80/esb/j_security_check?j_username=oc4jadmin&j_password=welcome1
    and got 404 error.
    However, this exercise confirmed that hostname=localhost and port=80 is just fine.. the problem seems to lie somewhere else

  • Can be implemented with Java 2D?

    Could anyone tell me what kind of effect in this flash animation? it can be implemented with Java 2D?
    http://www.echt-wahnsinn.de/liebesgesichtflash.htm

    Thanks for your answer.
    so it's not only just for fun but the part of our semester project. :-)
    Could you explian it more in detail, I mean "manipulate the color/brightness values"
    please tell me if the step is right:
    1. load a new image as background pic and another new pic as the small image (using BufferedImage)
    because I will scale(maybe scale = 0.5) the both pics in my UI window.
    . img_org . img_min . img_result .
    2. create the background pic in third ImagePanel automatically and finish the image manipulations.
    at the same time to get the size of img_org, img_min, and color/brightness values, pixels.
    here I am not sure how to implement it effectively. image clipping?
    any suggestion and help are welcome!!
    laue

  • Can I have my own implementation of java.awt.EventQueue

    Hi guys,
    Can I "override" the default implementation of java.awt.EventQueue? Some JVM/CVM tricks?
    For any tips, Thanks!

    I think what you're looking for is EventQueue#push(EventQueue).
    public static void main(String[] args) {
            final EventQueue queue = new EventQueue() {
                public void postEvent(final AWTEvent theEvent) {
                    super.postEvent(theEvent);
                    System.out.println("postEvent "+theEvent);
            Toolkit.getDefaultToolkit().getSystemEventQueue().push(queue);
            final JFrame frame = new JFrame();
            frame.setContentPane(new JButton("Click Me"));
            frame.setSize(300, 300);
            frame.setLocationRelativeTo(null);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
        }

  • Implement tegnologia Java Card

    Where I can be able to readers and cards to implement tegnologia Java Card

    Better download the Sun'sJavaCardKit freely availble online in Sun's website

  • How advantages of "Call By Reference" can be implemented using Java

    As I know that java doesnot support "Call By Reference" as C++
    does.
    I want to know that how advantages of Call by Reference can be
    implemented using Java.

    There is some misunderstanding here. Method arguments in Java are passed by value. However, if you pass a reference (to an object) by value, you can still modify the object that the (copy of the) reference points to.
    public void method1() {
      StringBuffer buf = new StringBuffer();
      // Here, method2 cannot change the value of the variable buf,
      // but it can modify the object that buf points to.
      method2(buf);
    public void method2(StringBuffer sb) {
      // You can modify the StringBuffer.
      sb.append("hello");
      // But this is useless, it will not change the variable buf
      // in the calling method.
      sb = new StringBuffer();
    }Jesper

  • Implementation of java bean

    hi
    every body...i am trying to implement a java bean, i have created the java class and it runs successfuly in jdeveloper envoirnment and after its deployment as jar file i implement it as bean in a bean area in my oracle form and it gives frm-92100
    error!!!!! any help???????
    zulfiqar

    thanks Degrelle for replying my post....
    but i could not get you.....as i have created a bean area on my canvas and it is visible as well and i have given my java class name in its implementation class property. what else it needs. i run that class from jdk and it runs successfully and even the other classes in the same jar file are being implented successfuly but this one is not... any further guidlines.......??
    best regards
    zulfiqar

  • Question about main difference between Java bean and Java class in JSP

    Hi All,
    I am new to Java Bean and wonder what is the main difference to use a Bean or an Object in the jsp. I have search on the forum and find some post also asking the question but still answer my doubt. Indeed, what is the real advantage of using bean in jsp.
    Let me give an example to illustrate my question:
    <code>
    <%@ page errorPage="errorpage.jsp" %>
    <%@ page import="ShoppingCart" %>
    <!-- Instantiate the Counter bean with an id of "counter" -->
    <jsp:useBean id="cart" scope="session" class="ShoppingCart" />
    <html>
    <head><title>Shopping Cart</title></head>
    <body bgcolor="#FFFFFF">
    Your cart's ID is: <%=cart.getId()%>.
    </body>
    <html>
    </code>
    In the above code, I can also create a object of ShoppingCart by new operator then get the id at the following way.
    <code>
    <%
    ShoppingCart cart = new ShoppingCart();
    out.println(cart.getId());
    %>
    </code>
    Now my question is what is the difference between the two method? As in my mind, a normal class can also have it setter and getter methods for its properties. But someone may say that, there is a scope="session", which can be declared in an normal object. It may be a point but it can be easily solved but putting the object in session by "session.setAttribute("cart", cart)".
    I have been searching on this issue on the internet for a long time and most of them just say someting like "persistance of state", "bean follow some conventions of naming", "bean must implement ser" and so on. All of above can be solved by other means, for example, a normal class can also follow the convention. I am really get confused with it, and really want to know what is the main point(s) of using the java bean.
    Any help will be highly apprecaited. Thanks!!!
    Best Regards,
    Alex

    Hi All,
    I am new to Java Bean and wonder what is the main
    difference to use a Bean or an Object in the jsp. The first thing to realize is that JavaBeans are just Plain Old Java Objects (POJOs) that follow a specific set of semantics (get/set methods, etc...). So what is the difference between a Bean and an Object? Nothing.
    <jsp:useBean id="cart" scope="session" class="ShoppingCart" />
    In the above code, I can also create a object of
    ShoppingCart by new operator then get the id at the
    following way.
    ShoppingCart cart = new ShoppingCart();
    out.println(cart.getId());
    ...Sure you could. And if the Cart was in a package (it has to be) you also need to put an import statement in. Oh, and to make sure the object is accessable in the same scope, you have to put it into the PageContext scope. And to totally equal, you first check to see if that object already exists in scope. So to get the equivalant of this:
    <jsp:useBean id="cart" class="my.pack.ShoppingCart"/>Then your scriptlet looks like this:
    <%@ page import="my.pack.ShoppingCart %>
    <%
      ShoppingCart cart = pageContext.getAttribute("cart");
      if (cart == null) {
        cart = new ShoppingCart();
        pageContext.setAttribute("cart", cart);
    %>So it is a lot more work.
    As in my mind, a normal class can also
    have it setter and getter methods for its properties.True ... See below.
    But someone may say that, there is a scope="session",
    which can be declared in an normal object.As long as the object is serializeable, yes.
    It may be
    a point but it can be easily solved but putting the
    object in session by "session.setAttribute("cart",
    cart)".Possible, but if the object isn't serializable it can be unsafe. As the point I mentioned above, the useBean tag allows you to check if the bean exists already, and use that, or make a new one if it does not yet exist in one line. A lot easier than the code you need to use otherwise.
    I have been searching on this issue on the internet
    for a long time and most of them just say someting
    like "persistance of state", "bean follow some
    conventions of naming", "bean must implement ser" and
    so on. Right, that would go along the lines of the definition of what a JavaBean is.
    All of above can be solved by other means, for
    example, a normal class can also follow the
    convention. And if it does - then it is a JavaBean! A JavaBean is any Object whose class definition would include all of the following:
    1) A public, no-argument constructor
    2) Implements Serializeable
    3) Properties are revealed through public mutator methods (void return type, start with 'set' have a single Object parameter list) and public accessor methods (Object return type, void parameter list, begin with 'get').
    4) Contain any necessary event handling methods. Depending on the purpose of the bean, you may include event handlers for when the properties change.
    I am really get confused with it, and
    really want to know what is the main point(s) of
    using the java bean.JavaBeans are normal objects that follow these conventions. Because they do, then you can access them through simplified means. For example, One way of having an object in session that contains data I want to print our might be:
    <%@ page import="my.pack.ShoppingCart %>
    <%
      ShoppingCart cart = session.getAttribute("cart");
      if (cart == null) {
        cart = new ShoppingCart();
        session.setAttribute("cart", cart);
    %>Then later where I want to print a total:
    <% out.print(cart.getTotal() %>Or, if the cart is a JavaBean I could do this:
    <jsp:useBean id="cart" class="my.pack.ShoppingCart" scope="session"/>
    Then later on:
    <jsp:getProperty name="cart" property="total"/>
    Or perhaps I want to set some properties on the object that I get off of the URL's parameter group. I could do this:
    <%
      ShoppingCart cart = session.getAttribute("cart");
      if (cart == null) {
        cart = new ShoppingCart();
        cart.setCreditCard(request.getParameter("creditCard"));
        cart.setFirstName(request.getParameter("firstName"));
        cart.setLastName(request.getParameter("lastName"));
        cart.setBillingAddress1(request.getParameter("billingAddress1"));
        cart.setBillingAddress2(request.getParameter("billingAddress2"));
        cart.setZipCode(request.getParameter("zipCode"));
        cart.setRegion(request.getParameter("region"));
        cart.setCountry(request.getParameter("country"));
        pageContext.setAttribute("cart", cart);
        session.setAttribute("cart", cart);
      }Or you could use:
    <jsp:useBean id="cart" class="my.pack.ShoppingCart" scope="session">
      <jsp:setProperty name="cart" property="*"/>
    </jsp:useBean>The second seems easier to me.
    It also allows you to use your objects in more varied cases - for example, JSTL (the standard tag libraries) and EL (expression language) only work with JavaBeans (objects that follow the JavaBeans conventions) because they expect objects to have the no-arg constuctor, and properties accessed/changed via getXXX and setXXX methods.
    >
    Any help will be highly apprecaited. Thanks!!!
    Best Regards,
    Alex

Maybe you are looking for

  • ACS and CA in a wireless environment

    When setting up a ACS server to work with a CA to authenticate wireless clients via machine authentication, does the CA need to be an Enterprise CA or can I do it with a standalone CA? Note that for machine authentication, I need to push down group p

  • SQL - How to attach FileStream enabled db without log file

    I'm trying to attach a FileStream enabled database without a log file. My SQL looks something like this: USE master CREATE DATABASE MyDB ON PRIMARY(NAME = N'MyDB', FILENAME = 'C:\myDB.MDF' ), FILEGROUP myFileGroup CONTAINS FILESTREAM ( NAME = myData,

  • Print Server & VPN Problem

    I have just installed the new router and have 4 computers working off of it, 2 direct connected and 2 wireless.  I also have installed a print server to allow for printing within the network.  Everything is working fine at this point.  I have to conn

  • How to check  that same Oracle software versions(including patch versions)

    How to check that same Oracle software versions(including patch versions) is installed on two hosts(machines) ? We are using following process: On Host A : 1) Get the Oracle version using SQLPlus -v From this output, extract the version number. 2)Fin

  • Pricing Scales : How to retrieve it ??

    Hi experts. I was wondering if anybody knew how to retrive the pricing scales for a condition either in some database table or maybe with the help of a function module. Thanks in advance if somebody has any clue. Otherwise, i'll have to debug the sta