This project is archived and is in readonly mode.

#753 ✓invalid

Trying to send a Request to an ATG Dynamo Droplet

Reported by jomorisin | September 23rd, 2009 @ 03:37 PM | in 2.0 (closed)

I am trying to call server side java - specifically, a ATG Dynamo
Droplet. I am using Sortables and upon completion of the resort I am
making a request (I have tried a post and get, and I have tried to
call the handler method on the dynamo droplet (essentially a servlet). I have also tried this with Request.HTML)..
The Mootools script in part:

onComplete: function(el)
   var listOne = sortableLists.serialize(0);
   var postUrl = '/ecom/pages/wishlist/shell.jsp';
   var req = new Request({
     method: 'post',
     url: postUrl,
     data: { 'newOrder' : listOne },
     onSuccess: function(responseText, responseXML) {
       alert('The responseText is the following : ' + responseText); },


<dspel:importbean bean="/yes/ecom/ui/web/customerListMgmt/AjaxDroplet"/>
<dspel:droplet name="/yes/ecom/ui/web/customerListMgmt/AjaxDroplet">
<dspel:oparam name="output"><!-- Display Content -->

 <dspel:getvalueof var="test" param="TEST"/>
 <dspel:valueof value="${test}" valueishtml="true" /


Instead of calling the droplet and alerting the user to a simple test
string, the response is the actual contents (the actual text) of shell.jsp (above). I
should mention that simply embedding a call to the droplet in the
container calling shell.jsp works properly. The droplet is simple:

public class AjaxDroplet extends EcomCoreFormHandler
{ public AjaxDroplet() {}

public void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) {

    try {
       debug("***********Called service() in AjaxDroplet***********");
       pRequest.setParameter("TEST", "ALRIGHTY THEN");
       pRequest.serviceLocalParameter(O_OUTPUT, pRequest, pResponse);
    } catch (Exception e) {

} }

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket