Why do you say RPC servlets are not normal servlets? they are.
You can control several things in your service servlet using the methods
thought for that, for instance to add customized headers you can do:

  @Override
  protected void onAfterResponseSerialized(String serializedResponse) {
    super.onAfterResponseSerialized(serializedResponse);
    HttpServletResponse r = perThreadResponse.get();
    r.setHeader("Foo", "Bar");
  }

GWT client code is static so you can host it in any webserver, just take
the html and js generated by the compiler and deploy it in your preferred
web server. In fact GWT is deseigned for client code, rpc or rf are
provided to make live easier to those developers who want a backend in java.

On Tue, Oct 16, 2012 at 11:16 AM, Manikanda raj S <m...@vembu.com> wrote:

> How can i actually set Response Headers in GWT Servlets ..? If i can have
> normal Servlets, i can have a Filter doing that. Besides i want to run
> client and server code in different webservers, client code(Java
> Script,HTML) in a apache servers in my customer's location and Servlets in
> my own Server. How can i do that with gwt-rpc servlets ...?
>
>
> On Tuesday, October 16, 2012 12:31:43 PM UTC+5:30, Thomas Broyer wrote:
>>
>>
>>
>> On Tuesday, October 16, 2012 8:58:49 AM UTC+2, Manikanda raj S wrote:
>>>
>>> CORS don't work with GWT Servlets, only with RequestBuilder.
>>>
>>>>
>>>>
>> There's no reason it wouldn't work. What did you try?
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/5d0gx8dvzyUJ.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to