I had the same problem once because I had a Firefox extension that tried to be clever - it sent two partial requests, hoping that it would get the content faster. Seems weird for an extension to do that, I doubt the server's bandwidth per request is ever an issue for clients.

On Tue, 28 Feb 2006 21:45:49 +0100, Vinicius Carvalho <[EMAIL PROTECTED]> wrote:

Hello there! I have a service and it's service(IrequestCycle cycle) method
is being called twice...

I enter the url:
http://localhost:8080/mgjug/app?service=newsService&newsId=2
and the method:
public void service(IRequestCycle cycle) throws IOException {
        response.setContentType("text/xml");
        response.setHeader("Cache-Control", "no-cache");
        Long id = Long.valueOf(cycle.getParameter("newsId"));
        News news = newsService.getNews(id);
        PrintWriter writer = response.getWriter();
        writer.write("<news>");
        writer.write("<id>"+news.getId()+"</id>");
        writer.write("<content>"+news.getContent()+"</content>");
        writer.write("</news>");
    }

is called twice. I've checked the cycle.isRewinding() but it always outputs
false. What could be wrong here?

Regards




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to