aspose file tools*
The moose likes Struts and the fly likes gwt and struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "gwt and struts" Watch "gwt and struts" New topic
Author

gwt and struts

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 245
hi

is there any utility to use struts with gwt?

i beginned a project with gwt and my team leader want to add struts 2 to the project...

we don't have any struts 2 code....

so i don't see the utility to use struts 2 with the projet...

can you give me good reason to use struts 2 with gwt?

thanks
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8702
    
    6

That would seem an odd design decision. There's not a lot of overlap in GWT and Struts
GWT wraps the whole ajax dhtml-><-javascript-><-web service conversation in a Java object model. It's pretty self-contained.
Struts is a front-controller and framework for imposing an MVC view on JSP's and servlets. Though there's some ajax functionality available, it's more of a helper functionality for web forms than core competency (Struts tends to defer to third party libraries for non-core stuff, like dojo, hibernate, Spring (for IOC) and so on).
The question I'd ask is: Is there something that GWT doesn't have that Struts would provide?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Kenny Johnson
Ranch Hand

Joined: Jan 01, 2007
Posts: 37
That sounds like a really dumb idea. Show him this thread and tell him to pick one or the other.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8702
    
    6

Originally posted by Kenny Johnson:
That sounds like a really dumb idea.


Easy there, Kenny. We don't know exactly what the idea is so it's a little early to pass judgement.
I'm sure there are applications where part in GWT (complex user interface) and part in Swing (customizing documents) would make sense. It really depends on what Mark's team leader has in mind.
mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 245
we would like to use struts action we have done for other project...

i tried struts2gwt plugin without success... if somebody have a example to use struts 2 with gwt... i would like to see it
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8702
    
    6

I haven't seen much GWT traffic here. You may be better off searching or posting in the GWT newsgroup, since those folks will have more experience with GWT.
Pure speculation: Since Struts Actions are supposed to be very simple affairs which just connect business logic objects together, and GWT's server side is pretty much the same thing for AJAX, it should be a simple affair for them both to use the same back end business logic and persistence layers.
I have no idea how you'd use the Struts front-end controller, which is what it sounds like you want to do.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: gwt and struts
 
Similar Threads
Web framework
Struts GWT Plugin (File Upload Problem)
Using Struts2 + GWT
SCEA Part 2: frameworks
DWR and Struts