This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Servlet-GWT integration

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I have an application build on top of JSP and Servlets. I have converted my JSP pages to GWT panels. Now, I want to integrate my new GWP panels with my existing servlets. Any thoughts/pointers/tutorials/examples on how I can do this?

Best,
Payam
 
Marshal
Posts: 67273
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not being a smart aleck or anything, but isn't that something you should have researched before beginning any migration? What benefit will you reap from the conversion?
 
Payam Fard
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was using a lot of Javascript code inside my JSP and it was getting out of hand and hard to maintain, so it was easier to use GWT to accomplish that.
 
Bear Bibeault
Marshal
Posts: 67273
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your choice. But there are other ways of handling client-side code complexity (client-side libraries such as jQuery or Prototype, for example).

Just pointing out less invasive alternatives that won't require massive re-factoring of your application.
[ December 14, 2007: Message edited by: Bear Bibeault ]
 
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Bear Bibeault:
Your choice. But there are other ways of handling client-side code complexity (client-side libraries such as jQuery or Prototype, for example).

Just pointing out less invasive alternatives that won't require massive re-factoring of your application.

[ December 14, 2007: Message edited by: Bear Bibeault ]



no offense but GWT build for same reason not to write in Javascript but in pure java. I know other alternatives are there but it seems very obvious to stay in same paradigm i.e. Java. It is not difficult to integrate GWT front end with servlets. Following link will help you but FormPanel and simple servlet classes on backend will work great.

http://www-128.ibm.com/developerworks/opensource/library/os-ad-gwt3/

I have application where servlets are communicating with GWT but I can simply take out frontend and replace with JSP or anything else which will pass form parameters in POST method.
[ December 15, 2007: Message edited by: Ken Boyd ]
 
Bear Bibeault
Marshal
Posts: 67273
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Ken Boyd:
no offense but ...


None taken. What kind of discussion forum would this be without discussions?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!