SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 103 | Next

Deepak Vohra

"Ajax in Oracle JDeveloper"

js???>


Add a selection list of values for Catalog Id and fields for Journal,
Publisher, Edition, Title, and Author. Also add a div for the
validationMessage. We shall use the ajax:htmlContent tag to
validate a Catalog Id value. The ajax:htmlContent tag specifies a
source attribute that specifies the form element that initiates an Ajax
request. The baseUrl attribute specifies the URL to which the Ajax
request is sent. The parameters attribute specifies the parameters to be
sent with the Ajax request. The target attribute specifies the form
element that is to be updated with the response from the server.
baseUrl=???formservlet???
source=???catalogId???
target=???validationMessage???
parameters=???catalogId={catalogId}??? />
In the example application the catalogId initiates an Ajax request, which
gets sent to server URL formservlet with the GET method with
parameters catalogId. The server HTML response updates the content
of the validationMessage div. URL formservlet is mapped to
FormServlet. In the doGet() method of the FormServlet
retrieve the value of the catalogId.
String catalogId = request.getParameter(???catalogId???);
116 6 Ajax without JavaScript ??“ AjaxTags
Obtain a JDBC connection with Oracle database using the datasource
configured in JDeveloper with the database. Retrieve a result set for the
Catalog Id.


Pages:
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115