File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "GWT and Struts" Watch "GWT and Struts" New topic
Author

GWT and Struts

Surya Kant
Ranch Hand

Joined: Mar 29, 2005
Posts: 104
Hi All,
Currently i have struts application which is up and running.Now i need to provide some more functionalities to my project.So I decided to code using GWT.Now i have finished my GWT coding and want to integrate with struts application.
Has anyone tried this option before?
If yes please let me know the steps to follow.

Regards,
Surya
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I would not recommend trying to integrate GWT with a Struts project. GWT requires its own style of programming that doesn't match well at all with a Struts project. There are other ways of integrating AJAX into a Struts project such as the DOJO toolkit that are much easier to integrate with Struts.


Merrill
Consultant, Sima Solutions
Surya Kant
Ranch Hand

Joined: Mar 29, 2005
Posts: 104
Hi I have integrated Struts with GWT and it is working fine.
It is very easy to do.If anyone is facing problem feel free to contact me.
Regards,
Surya
kaushik adya
Greenhorn

Joined: Jun 09, 2009
Posts: 1
Surya Kant wrote:Hi I have integrated Struts with GWT and it is working fine.
It is very easy to do.If anyone is facing problem feel free to contact me.
Regards,
Surya


I was planning on using GWT with Struts 2. There are two main features which I require.
1. The forms might have components which require AJAX (Auto complete feature)
2. Upon submitting the form, the values of the components need to be displayed in the URL. This is a requirement because, the resutls page needs to be bookmarkable.
PS: The submit could be a Struts form submit action.

For this, I thought that the solution could be to have a GWT form included in a struts jsp page. However, the problem I face is that I am not able to access the values of the GWT components when I submit the form. Any idea, how to solve this problem? For that matter, I do not even have to use Struts; can use some other framework

Thank you,
Kaushik
Kothandaraman Narashimman
Greenhorn

Joined: Jul 02, 2008
Posts: 4
Hi Surya,

Can you tell me how you had integrated GWT with Struts??

Can you send me the code snippets to me??

My mail id is kodanhunt@gmail.com

Thanks & Regards,
Kothandaraman N.
solai mani
Greenhorn

Joined: Jun 22, 2009
Posts: 1
hai i am new to gwt .i have an application which is developed using struts and hibernate .now i want idea to integrate gwt with my application please help me soon.

Thank's&Regard's
solaimani
shaik usman
Greenhorn

Joined: Jul 28, 2009
Posts: 3
Hi,
i create a sample application with gwt and struts . I am using cypal studio. When i run my project it is giving the following error "Resource not found: employee.action; (could a file be missing from the public path or a <servlet> tag misconfigured in module com.atc.sample.employee.gwt.xml ?"

My action class



entry point


service classes


Asynclass


employee.gwt.xml


struts.xml


i given entry in the struts filter entry in the web.xml
Any idea please

Thank
Usman.sk



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GWT and Struts