• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Servlet-GWT integration

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
reply
    Bookmark Topic Watch Topic
  • New Topic