Rectangle 27 0

If you want to run some processing when request comes and potentially include some dynamic parts, you can just make your pages to be JSP or servlets. GWT does not need to be used in HTML files. Just the page served by server need to be HTML. So something like server side entry point is either JSP or servlet. Otherwise you need to use PRC. But if you needed to run RPC for every page loaded, you could consider this tip of embedding RPC in the base response.

GWT Server side entry point - Stack Overflow

gwt entry-point
Rectangle 27 0

GWT-rpc reponse cannot be HTML - it has to be a proper RPC response. I think you will get an error which is being ignored in your GWT code - check the onFailure method of your AsyncCallback or the GWT log if you are using dev mode or the javascript console if you are trying the production mode.

you're right i get onFailure. So is there any way to redirect with POST from server side in GWT ?

No, the client side expects a java object to be returned. What do you want to achieve with the redirect?

I want to redirect to my error page when exception is thrown inside gwt rpc service. ( My problem is that i am not really sure if onFailure method will catch all exceptions (not only HTTP)) ? Thanks for help

RPC is an AJAX call - there is no way of changing the browser content. You will have to add logic in the onFailure method - I think it will get called always.

ok thanks, so how can i make redirect with post from client -side?

SendRedirect inside GWT RPC doesnt work with jsp - Stack Overflow

jsp gwt servlets redirect rpc
Rectangle 27 0

I've found that all you can protect in gwt using Spring Security are the RPC calls but as far as the gui you can't. Remember they are javascript so there is no url to define in the security configuration. That is why all examples have the jsp login page. You would then have to implement some type of client side security using the userContext for frontend .

GWT Spring Security Integration (PURE GWT, NO JSP) - Stack Overflow

spring gwt login spring-security requestfactory
Rectangle 27 0

I've found that all you can protect in gwt using Spring Security are the RPC calls but as far as the gui you can't. Remember they are javascript so there is no url to define in the security configuration. That is why all examples have the jsp login page. You would then have to implement some type of client side security using the userContext for frontend .

GWT Spring Security Integration (PURE GWT, NO JSP) - Stack Overflow

spring gwt login spring-security requestfactory