integrate Gwt with Struts2

200 views
Skip to first unread message

Syed Shahul

unread,
Nov 13, 2008, 6:22:16 AM11/13/08
to Google Web Toolkit
Hi All,
i am using GWT just to display static contents in jsp page.

can any one give idea that how to integrate GWT with Struts2.
for instance i would like to get the data from Rich text box of GWT to
struts2 action.
Thanking you in advance

ashutosh seth

unread,
Nov 13, 2008, 6:44:31 AM11/13/08
to Google-We...@googlegroups.com
Hi 

Syed Shahul

 
May be this can help you
--
Thanks and Regards,
Ashutosh
Jr. S/W Developer
Nirvana InfoCom(INDIA) Pvt Ltd.
269,Masjid Moth,New Delhi
Cell: +91-9953309340
E-mail: ashu...@nirvanainfocom.com
www.nirvanainfocom.com

Tulio Ornelas

unread,
Nov 13, 2008, 7:11:47 AM11/13/08
to Google-We...@googlegroups.com
ashutosh seth interesting framework, have you used this framework in a real project? Sounds me great.

2008/11/13, ashutosh seth <ashu...@gmail.com>:

gregor

unread,
Nov 13, 2008, 7:46:49 AM11/13/08
to Google Web Toolkit
Hi Syed,

If you want to leave your JSP that contains your GWT module and
redirect to the next JSP page in your struts app using an action, I
think you can do that using RequestBuilder to construct the
appropriate .do call to the ActionServlet.

If however you want to invoke just the functionality of the action
class and return the result back to the GWT module, I think it might
be easier to create a GWT RPC service, copy your Action.perform code
into a RemoteServlet method, and alter it to return a suitable Java
DTO graph.

I think the problem with introducing GWT to Struts apps is that GWT is
single page/javascript based, whereas Struts is multi-page and all the
Actions (which of course you would rather keep, but....) are designed
to forward to the next JSP. This doesn't sit well with GWT. It also
means that it's messy trying to place little bits of GWT magic across
a number of different JSP pages. I think it might be a better strategy
to pick a sizable chunk of a Struts app that would really benefit from
GWT for wholesale replacement, and work outwards from there.

regards
gregor

On Nov 13, 12:11 pm, "Tulio Ornelas" <ocult...@gmail.com> wrote:
> ashutosh seth interesting framework, have you used this framework in a real
> project? Sounds me great.
>
> 2008/11/13, ashutosh seth <ashu.i...@gmail.com>:
>
>
>
> > Hi  Syed Shahul  May be this can help you
> >http://code.google.com/p/rocket-gwt/wiki/HtmlTemplateFactory
>
> > On Thu, Nov 13, 2008 at 4:52 PM, Syed Shahul <syedshahul2...@gmail.com>wrote:
>
> >> Hi All,
> >> i am using GWT just to display static contents in jsp page.
>
> >> can any one give idea that how to integrate GWT with Struts2.
> >> for instance i would like to get the data from Rich text box of GWT to
> >> struts2 action.
> >> Thanking you in advance
>
> > --
> > Thanks and Regards,
> > Ashutosh
> > Jr. S/W Developer
> > Nirvana InfoCom(INDIA) Pvt Ltd.
> > 269,Masjid Moth,New Delhi
> > Cell: +91-9953309340
> > E-mail: ashut...@nirvanainfocom.com
> >www.nirvanainfocom.com

ashutosh seth

unread,
Nov 13, 2008, 7:47:43 AM11/13/08
to Google-We...@googlegroups.com
Hi  

Syed Shahul

 
Actully we r means my team today discuss same problem .so we r find this solution ..we r try use this framework today onwards
Reply all
Reply to author
Forward
0 new messages