Results 1 to 2 of 2
  1. #1
    anthrax is offline Member
    Join Date
    Feb 2009
    Rep Power

    Default ajax jsp tag problem (formupdate.view ?)

    <div style="width: 400px;">
    <form id="form1" action="formupdate.view">
    <fieldset><legend>Velocity Conversion</legend>
    <p>Enter miles per hour and click Calculate</p>

    <label for="mph">Miles/Hour (mph)</label> <input type="text" id="mph" name="mph" />
    <input type="submit" value="Calculate" />

    <div id="successMsg" style="border: 1px solid #0e0; background-color: #efe; padding: 2px; margin-top: 8px; font: normal 12px Arial; color: #090">Calculation results</div>

    <ajax:submit source="form1" target="successMsg" />

    i'd like to know what kind of code in in formupdate.view? is it java, javascript or xml?

  2. #2
    anthrax is offline Member
    Join Date
    Feb 2009
    Rep Power


    i want to display results from my database with this tag below:

    <ajax:displayTag id="displayTagFrame">

    <display:table name="service.allCars" class="displaytag" pagesize="10" scope="page"
    defaultsort="1" defaultorder="descending" export="true" id="row" excludedParams="ajax">
    <display:column property="make" title="Make" sortable="true" headerClass="sortable" />
    <display:column property="model" title="Model" sortable="true" headerClass="sortable" />
    <display:column title="Link" media="html">
    <a href="http://www.${row.make}.com">${row.make} Web Page</a>
    <display:column title="Link" media="excel xml">


    but i dont know how to display database result with this tag.. im used to use for:each tag.. i did it by storing database results to bean then requestDispatcher to new page which has for:each tag that used to display the result.
    How do i display the result from beans with <ajax:displayTag>?
    Last edited by anthrax; 12-20-2009 at 05:52 PM. Reason: x

Similar Threads

  1. JSP - AJAX problem
    By MaheshReddy in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 09-27-2009, 02:54 AM
  2. Problem displaying the view content.
    By poonam2008 in forum Eclipse
    Replies: 0
    Last Post: 11-30-2008, 03:30 AM
  3. JTable view/model sync problem
    By edcincy in forum AWT / Swing
    Replies: 0
    Last Post: 09-12-2008, 07:25 PM
  4. Problem reading an xml file with AJAX
    By Fiona80 in forum XML
    Replies: 0
    Last Post: 12-17-2007, 09:02 PM
  5. Replies: 0
    Last Post: 07-17-2007, 04:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts