Ajax with strtus2.0

I like to implement struts2.0 with ajax. could you please post some sample examples I need very urgent

Start [here.|http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html]

Similar Messages

  • AJAX with tabular form

    Hi,
    Can anyone help me ..
    I need to implement the AJAX with select list in a tabular form but I am not able do it . It is possible to do it in a normal form , but while implementing the same thing in a tabular form i am getting error (here it uses 2 dimensional arrays to identify a cell).
    The problem is I am not able to get the value from the select list .
    Can anyone help me..
    My application is "http://apex.oracle.com/pls/otn/f?p=23480:6" . The thing I need is when I select the 'Product name' corresponding 'List price need to be displayed.
    Thanks

    Hi Carl,
    Sorry for that..
    I requirement is in my application (http://apex.oracle.com/pls/otn/f?p=23480:6) , When I select the 'Product Name' from the select list the value should be populated automatically in the 'List Price' according to the product name.
    Hope the reqirement is clear ,
    My javascript is as follows
    ==============================================
    <script language="JavaScript1.1" type="text/javascript">
    var g_table;
    function va_GetCellPos(p_cell,p_what)
    for (var j=0;j<g_table.rows.length;j++) {
    var column=g_table.rows[j]
    for (var k=0;k<column.cells.length;k++)
    if (column.cells[k]==p_cell) return p_what=="row"?j:k
    function f_getfetch (p_input)
    var td=html_CascadeUpTill(p_input,'TD');
    if (!g_table) g_table=html_CascadeUpTill(p_input,'TABLE');
    var rownum=va_GetCellPos(td,"row");
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=getfetch',0);
    get.add('PRODUCT_NAME',g_table.rows[rownum].cells[va_GetCellPos(html_GetElement('PRODUCT_NAME'),"column")].getElementsByTagName('input')[0].value);
    gReturn = get.get();
    if(gReturn)
    {   g_table.rows[rownum].cells[va_GetCellPos(html_GetElement('LIST_PRICE'),"column")].innerHTML = gReturn }
    else
    {  g_table.rows[rownum].cells[va_GetCellPos(html_GetElement('LIST_PRICE'),"column")].innerHTML = 'null' }
    get = null;
    </script>
    ===============================================
    Here I am not able to get the value from the select list , its taking null (g_table.rows[rownum].cells[va_GetCellPos(html_GetElement('PRODUCT_NAME'),"column")].getElementsByTagName('input')[0].value) )
    If u need to have a look into the application ,I can give you my login details.
    with regards,
    Dilip.

  • Ajax with jsf problem

    Hi
    I have small problem here. I worked struts with ajax before. currently. I m trying to work on ajax with jsf, here i m getting the problem. i created one ajaxaction class its extends httpservlets. then i created one manage bean, then i want to call the class using javascript, i dont know how to do. can any one help for me.
    Thanks

    I have never worked with the AJAX + JSF combo before, but I know that you can invoke a managed bean action using javascript and the h:commandLink and h:commandButton elements.
    <h:form id="form1">
        <h:commandLink id="link1" action="#{MyBean.action1}"><h:outputText value="link" /></h:commandLink>
        <h:commandButton id="button1" action="#{MyBean.action2}" value="button" />
    </h:form>
    <f:verbatim><script>
        function myFunction() {
            document.getElementById('form1:link1').onclick(); // this invokes the #{MyBean.action1}
            document.getElementById('form1:button1').click(); // this invokes the #{MyBean.action2}
    </script></f:verbatim>I haven't tried other ways yet. But this might give you an idea.

  • Ajax with portal 8.1 sp5

    do we know we can use ajax with portal 8.1 sp5 , If so do let me know what all i need to make ajax works with our application
    Mathew

    I am using ajax in both sp3 and sp5. I haven't followed any standard framework. I have written a servlet to handle ajax requests more like
    http://www-128.ibm.com/developerworks/library/j-ajax1/
    to do this you need not add any extra library to portal.
    hope this helps..

  • Ajax with swing and multithreading

    i want to know ,can we use ajax with swing (multithreading)

    You have asked a question that is full of buzzwords that you obviously don't understand.
    The answer to your question is not going to help much.
    What are you really trying to do?

  • Ajax with jdeveloper

    hi everyone
    i confront some difficulties when tried to use ajax. i created a JSF page and i used ajax and i used some views after that i did run the page and the browser said access denied
    i do not know why is that happened so could i find any help here ?
    thx in advance

    You can only find help by being more specific about what you tried to do. see : http://forums.oracle.com/forums/ann.jspa?annID=56
    Here is a little intro to developing Ajax with JDeveloper: http://www.oracle.com/technology/obe/obe11jdev/ps1/adf_richclient/adfrichclient.htm

  • Ajax with JSF Component

    How is it possible to embed Ajax with JSF Components. Every JSF request by default hits the Faces Servlet. Is it possible to by pass this flow for certain events?

    Wouldn't use it, that project is practically dead. It's has never been further developed/documented/supported since version 0.1 alpha in 2005.
    Ajax4jsf is still active and has excellent documentation/support.
    It might be good to know that the upcoming JSF 2.0 provides ajaxical capabilities.

  • Ajax with Peoplesoft

    Can any body worked on Ajax with peoplesoft. I just want to know how we will impliment Ajax with peoplesoft.

    Karthik T, start here: http://15daysofjquery.com/ and http://jquery.com. Then go here: http://www.google.com/search?q=peoplesoft+ajax. This will give you some background, but won't tell you how to implement Ajax in PeopleSoft. To implement Ajax with PeopleSoft, you need a good Ajax library. I suggest you download the jquery Ajax library and put it in a publicly accessible folder on your web server (...peoplesoft/applications/peoplesoft/PORTAL/scripts). Now, add the Ajax library to a PeopleSoft page. To do this, add an HTML area to a page. Double-click the HTML area to set the content to static with the following content:
    &lt;script type="text/javascript" language="javascript" src="/scripts/nameofjqueryfile.js"&gt;&lt;/script&gt;From your browser, load the page you just modified and ensure that it contains your jquery.js file. If you use Firefox with Firebug, then you will be able to click the net tab and ensure that your browser was able to find your jquery javascript file (no 404, etc).
    Before going further, you should test your Ajax installation. To do this, add an html file to your web server root named "ajaxtest.html" with the content:
    Hello World!&lt;br/&gt;
    Greetings from &lt;b&gt;Ajax!&lt;/b&gt;This file should go in a directory on your webserver like .../peoplesoft/applications/peoplesoft/PORTAL.
    From App Designer, open the page that contains your HTML area and edit that HTML area (or add another HTML area to the end of the page). Make sure the type is set to static and add the following text:
    &lt;script type="text/javascript" language="javascript"&gt;
    $(document).ready(function(){
      $("#ajaxcontent").load("/ajaxtest.html", null, function() {
        $("#ajaxcontent").fadeIn("fast");
    &lt;script&gt;
    &lt;div id="ajaxcontent" style="display: none;"&gt;
    &lt;!-- comment to keep PS from removing this empty div --&gt;
    &lt;/div&gt;Reload your customized page in your browser. If you see your HTML file's contents appear after the page loads, then you have Ajax working properly. Now the fun part... using Ajax to display PeopleSoft data. To load PeopleSoft data into a page using Ajax, point the load method at an IScript rather than a static HTML file. Go here to learn more about IScripts: http://www.google.com/search?q=peoplesoft+iscript. I have an IScript/WEBLIB tutorial on my blog as well: http://jjmpsj.blogspot.com/2008/02/what-is-iscript.html and http://jjmpsj.blogspot.com/2008/04/what-is-weblib.html. Start small by creating an IScript that contains %Response.WriteLine("Hello from an IScript"); and load that into your custom div.
    Once you have the basics of Ajax with PeopleSoft, take a look at http://extjs.com/. At this site, you will find JavaScript components that support Ajax. By combining these components with IScripts, you can create popup windows, sortable/editable tables, etc.

  • AJAX with htp (Not APEX)

    Hi,
    anybody has an idea if I can use AJAX with htp, what iam really looking for is a very simple example for that. pleaaaase
    Thanx a lot

    Hi.
    First thanks for your fast answers.
    regarding your questions :
    You're using an Ondemand process right?Hm. I copied the code from the demo app of Denes Kubicek. And the sql Statement there looks ok for me.
    And I have created this as on Demand Application Process in my App.
    Are you sure you get some values back from that process? Dont think so. I put an alert right after the point where the return should be. This alert tells me, that i get back "[object]". I don't seen any "cleartext" data here.
    - Are you using the right ITEM_VALUE in your where clause?What do mean exactly with this ? What clause ? The sql statement in the application process ? What ITEM_VALUE ?
    Have a look at the session state (developer toolbar) of the itemsSession state of the items on my page are not modified, because page is not submitted.
    Greetings
    Bernd

  • Use Ajax with OAF developed in JDeveloper 9i for Oracle Apps 11.5.10.2

    Hi,
    I am looking to use Ajax to have the same Google type functionality to be impelmented in OAF pages.
    Example : Searching of employee names, organization etc.
    JDeveloper version is 9i
    Oracle Apps - 11.5.10.2
    Please advice.
    Thanks,
    Anirban

    I dont think thats possible using OAF. OAF is not designed with AJAX in mind.

  • AJAX with PageMethods works in Application Pages but not with PageLayouts

    Hi All,
    I have created a class which contains public static method decorated with WebMethod and SciptMethod attributes
    Public class BasePage : Microsoft.SharePoint.Publishing.PublishingLayoutPage
            [WebMethod(EnableSession = true)]
            [ScriptMethod(ResponseFormat = ResponseFormat.Json, UseHttpGet = false)]
            public static string HelloWorld()
                return "Hello world is working!";
    Now I changed the <%Page ..> Tag of the PageLayout to inherit from the above class.
    There is a ScriptManager in the master page with EnablePageMethods = true
    I can see the Javascript methods are generated for HelloWorld(..) however the return result is "The Server Method HelloWorld failed." Error code is 500
    However the exact same code when I use with a application page (_layouts) and change the Page tag to inherit from the same base class above - it works OK.
    Both of them Page Layout and Application Page use the same master page - but one works and other does not.
    Additional Information:
    a) Am using Jquery and JqueryUI in the master page.
    b) Site use Publishing Template
    c) Variation is enabled on site
    d) Site has both Anonymous and Windows NT authentication
    The method Path for Application page shows as
    /_layouts/test.aspx/HelloWorld
    and for the page created using the Page layout is:
    /en-us/Company/Pages/Default.aspx/HelloWorld.
    Could anyone please advise what could be wrong where it does not work with Publishing Pages?
    Would please appreciate ideas / thoughts.
    Thanks,
    Mohan
    -- Mohan | My Blog

    Are you sure that you are getting HTTP 500 error ?. Usually HTTP 500 error denotes service unavailable at the server side or at the server end point. What is the exact fiddler trace you are getting ?
    If it is still HTTP 500, then one of the referenced components in the page layouts conflicts the ajax page methods call. Please let me know your findings
    Please mark the replies as answers if they help or unmark if not.

  • Best Practices of using AJAX with JSF : BluePrints or  Ajax4Jsf ?

    am a newbie to AJAX4JSF . I think it provides Rapid Application Development (RAD) just by using tags like a4j: without the need to develop complex JSF Custom Components as shown in BluePrints Catalog
    https://bpcatalog.dev.java.net/ajax/jsf-ajax/
    I understand the purpose of developing JSF Custom components as Reusable for using with AJAX. But its complex and requires lot of coding i.e. PhaseListeners and Managed Beans. There should be easy way to do this especially our project needs RAD tool like AJAX4JSF.
    Any suggestions will be highly appreciated
    Regards
    Bansi

    Bansi, you are trying to compare orange-to-apple. Blue print catalog is a historical retrospection about what people thought about AJAXifying JSF in the past. Currently, the playground has been moved to the jsf-extension project. Look for DynaFaces there.

  • Ajax with Ruby on Rails and Oracle Database

    Ajax may be used with Ruby on Rails and Oracle database.
    http://www.ftponline.com/channels/java/2007_02/dvohra/

    okay, that helped. Here's what I get:
    erik-petersons-computer:/usr/local/mysql/bin erikpeterson$ ls
    comp_err mysql_zap
    makesharedlibdistribution mysqlaccess
    makewin_bindist mysqlaccess.conf
    makewin_srcdistribution mysqladmin
    msql2mysql mysqlbinlog
    myprintdefaults mysqlbug
    myisam_ftdump mysqlcheck
    myisamchk mysqld
    myisamlog mysqld_multi
    myisampack mysqld_safe
    mysql mysqldump
    mysqlclienttest mysqldumpslow
    mysql_config mysqlhotcopy
    mysqlconvert_tableformat mysqlimport
    mysqlcreate_systemtables mysqlmanager
    mysqlexplainlog mysqlshow
    mysqlfindrows mysqltest
    mysqlfixextensions mysqltestmanager
    mysqlfix_privilegetables mysqltestmanager-pwgen
    mysqlsecureinstallation mysqltestmanagerc
    mysql_setpermission perror
    mysql_tableinfo replace
    mysqltzinfo_tosql resolvestackdump
    mysql_upgrade resolveip
    mysqlupgradeshell safe_mysqld
    mysql_waitpid
    erik-petersons-computer:/usr/local/mysql/bin erikpeterson$
    How would I create a new database from here?

  • ADF BC + ADF Faces 10.1.3.3: Ajax with ADF.

    Hi Comunity
    I developed a ADF Faces page with AJAX funcionality, im not using others frameworks like icefaces or richfaces i develop the ajax code by my self. I try to add dinamic html tags in a table incrementing row by row, when i combined a div with a binding value like id#{status.index} the finaly results is the same the value not printed in the page.
    Any sugestions.¿?.

    Hi Peter
    I had the same problem a few weeks ago.
    The limitation is that JSF 1.1 does not allow the mix and match of HTML and JSf components. I found the solution using af:script to print html tag combined with #{status.index} value like this:
    <afh:script id="script1" generatesContent="true" text="document.write('&lt;p id=id#{status.index}>...&lt;/p>');"/>
    I works great for me.
    Good Luck.

  • Problems using Ajax with Apex 3

    Hi folks,
    I've got a client website biult with Application Express on a Oracle Database System. I attached some Ajax funtionallities on fields and there are standard Interactive Reports which are biult on Ajax as well.
    When I try to access the site normally (http) there are occuring no problems at all. But when I try to access the site via https, the Ajax functionallity doesn't work right.
    For example: There is a field named P37_STD_ERFASSTER_WERT which has an onblur javascript event: onblur="viertelstunde_runden(this)". This calls the following javascript function.
    The Java Script code calls an Application Process which calls a PL/SQL function on my database.
    JavaScript code:
    +function viertelstunde_runden(obj) {
    var std = obj.value;
    std = std.replace(".", ",");
    var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=rundStdErfassterWert',0);
    get.add('P37_STD_ERFASSTER_WERT', std);
    result = get.get();
    obj.value = result;
    }+
    So I'm filling '2.4' into the field. After the Process i get the following response: "<html><body><p>2,5</p></body></html>". Does somebody have a clue, why the response is packed into the html tags?
    As a proxy I've got an Apache2 server on a Ubuntu Server 8.1. Is there something wrong defined in the Apache2 Config?
    Thanks for all tips and other helping responses.
    Greetings
    Sandro

    Hi Roel,
    Thx for your quick answer.
    The App-Process looks like this:
    declare
    l_std_erfasster_wert number;
    begin
    l_std_erfasster_wert := br_stunden.runde_viertelstunde(v('P37_STD_ERFASSTER_WERT'));
    htp.prn(l_std_erfasster_wert);
    end;
    And the PL/SQL Procedure on the DB like this:
    -- erfasste Stunden auf Viertelstunde-genau runden
    FUNCTION runde_viertelstunde (
    i_std_erfasster_wert IN stunden.std_erfasster_wert%TYPE
    RETURN NUMBER
    IS
    l_std NUMBER;
    l_min NUMBER;
    BEGIN
    l_std := TRUNC (i_std_erfasster_wert);
    --Rest von Stunden sind Hundertstel-Minuten
    l_min := (i_std_erfasster_wert - l_std) * 100;
    --Hundertselminduten runden auf 25/50/75 oder 100
    l_min := ROUND (l_min / 25) * 25;
    --wenn Minuten aufgerundet auf volle Stunde (100), gibt es eine Stunde mehr
    --und Minuten sind 0
    IF l_min = 100
    THEN
    l_std := l_std + 1;
    l_min := 0;
    END IF;
    RETURN l_std + (l_min / 100);
    END runde_viertelstunde;
    :Sandro

Maybe you are looking for

  • HT2688 Can I install iTunes on an external drive and store my music there?

    I am trying to figure out the best way to manage my music.  600 cds that I need to upload somewhere.  I am thinking I put them in itunes and then bluetooth them to a wireless speaker.    My old school stereo needs to go but I am not sure where to beg

  • I purchased an Acrobat 9 Professional and we no longer have the installation media

    We try download replacement installers from this page Download Acrobat products | 9, 8 But it is not working with the key we have. Can anybody help us, please

  • Some features/options needed when using mobileme gallery in iframe

    hi@all i have built this iweb site and embedded my mobilemegallery like this: <iframe width="1280" height="900 " frameborder="0" src="http://gallery.me.com/friereida#100008&view=mosaic&sel=0" more attributes> </iframe> so what i need is: how can i ac

  • Urgent regarding session variable

    Hi Everyone, I have a prompt having fromdate(calendar ctrl) and todate(calendar ctrl) and one orderID(here it is multiselect). Now my requirement is i should select an order ID from the multiselect and when i hit go the date should be prompted for th

  • Stabilize a segment of a larger clip

    Whenever I use a video stabilizer, it is usually applied to just a portion of a longer clip. It is therefore essential that any segment I stabilize match in position, rotation, scale (and even warp dtstortion, if this should be a factor) any segment