# Servlet call problem

**URL:** <https://forum.kirupa.com/t/servlet-call-problem/255720>\
**Category:** Uncategorized\
**Created:** [March 26, 2008, 11:07am UTC](https://forum.kirupa.com/t/servlet-call-problem/255720 "2008-03-26T11:07:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanglingChap](https://avatars.discourse-cdn.com/v4/letter/d/ea5d25/32.png) [@DanglingChap](https://forum.kirupa.com/u/DanglingChap)\
**Post date:** [March 26, 2008, 11:07am UTC](https://forum.kirupa.com/t/servlet-call-problem/255720/1 "2008-03-26T11:07:27Z")

</div>

hi …

I have created a test servlet to call my servlet from flash. here is the code … its just for testing …

```auto

this.btnServ.addEventListener (MouseEvent.CLICK, onMouseClick);
this.txtText.text = "Test";

function onMouseClick(mouseEvent: MouseEvent):void
{
    this.txtText.text = "Sending request to the servlet";
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.addEventListener(Event.COMPLETE, fnXmlLoaded);
    this.txtText.text = "Sending call to : " + this.txtPath.text;
    xmlLoader.load(new URLRequest(this.txtPath.text));
}

function fnXmlLoaded (e:Event):void {
    this.txtText.text = new XML(e.target.data);
}

```

On button click i send the request to the servelet whos path is given in text field. For first call it works fine … but if i press the button again, it does not send my call to servlet again … ☹ … why?
