Saturday, February 26, 2011

Re: Redirecting to jsp

Any help on this pls.

On Fri, Feb 25, 2011 at 8:58 PM, Deepak Singh <deepaksingh.kr@gmail.com> wrote:
Hi,

In my celltable, i have one button column.
In the fieldAdapter(), i am opening a new window using Window.open(" url", "_blank", "");
It opens a new window withe the url using the http get() method. I want to open this window with http post() method. How can i acheive this ?
I think it is not possible at the client side using java script, so i though it to redirect to a jsp as follows

HttpServletRequest req = getThreadLocalRequest();
HttpServletResponse res = getThreadLocalResponse();
res.addHeader("Referer", "http://www.domain.com");
try {
res.sendRedirect(param);
} catch (IOException e) {
e.printStackTrace();
}


but this does not work. Nothing happens when i click the button.

How it is possible to redirect to a jsp page from gwt?


Thanks

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment