GWT or SmartGWT file download

I need to be able to call a server ervlet from my GWT+SmartGWT client side application and download a file. From this post, people mentioned using "HiddenFrame" and "RPCManager". But I haven't used it before.

Has anyone had experience with that?

Thanks a lot!
LVL 1
mybluegrassAsked:
Who is Participating?
 
amurauyouConnect With a Mentor Commented:
In GWT you can simply call Window.open(url, "_self", "");

Or you can add native method to use:
    public static native void redirect(String url)/*-{
    window.location = url;
    }-*/;

to redirect or to open in new window:

    public static native void openNewWindow(String url)/*-{
    window.openNewWindow(url)
    }-*/;
0
 
StealthyDevCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.