I am trying to use SmartGWT with an existing Struts application. I was experimenting by putting a existing page into an HTMLFlow widget. It loads the page okay. I have one web app context for the existing app and one for the new SmartGWT app.
This loads the page from the "oca" context but all the relative resources such as css and images then try to get loaded like the following.
[gwt app context]/[Module]/[Relative path in page]
example:
http://localhost:8888/oca-gwt/com.ray.oca.gwt.OcaApplication/images/rtn_logo.gif
I tried both treating it like a page and a fragment with the same results.
I'm really trying to come up with a strategy. I would like to just have one page and somehow try to consume the struts pages but I also could use the existing tiles to replicate the outside of the page and just insert the struts content. Sort of mind bending mixing Web 2 with Web 1.
Any suggestions welcome, Thanks.
Code:
HTMLFlow loginHtml = new HTMLFlow(); loginHtml.setWidth100(); loginHtml.setContentsURL("/oca/"); loginHtml.setLoadingMessage("Loading..."); //loginHtml.setContentsType(ContentsType.PAGE); // default is fragment loginTab.setPane(loginHtml);
[gwt app context]/[Module]/[Relative path in page]
example:
http://localhost:8888/oca-gwt/com.ray.oca.gwt.OcaApplication/images/rtn_logo.gif
I tried both treating it like a page and a fragment with the same results.
I'm really trying to come up with a strategy. I would like to just have one page and somehow try to consume the struts pages but I also could use the existing tiles to replicate the outside of the page and just insert the struts content. Sort of mind bending mixing Web 2 with Web 1.
Any suggestions welcome, Thanks.
Comment