wood burning stoves 2.0*
The moose likes GWT and the fly likes GWT deployment on a struts 2 web app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "GWT deployment on a struts 2 web app" Watch "GWT deployment on a struts 2 web app" New topic
Author

GWT deployment on a struts 2 web app

Tudor Raneti
Ranch Hand

Joined: Nov 29, 2009
Posts: 145
Before i go on and try i want to know if it's remotely possible what i want to do.
I have this struts 2 small web app, and i want to display a chart using Google visualization API at the time i'm displaying a table of values from the database (using JSP).
Can i deploy the chart w/o needing the app engine?
Can the chart obtain its data from the Action Context, or from the table itself, or how should i get it?
Tudor Raneti
Ranch Hand

Joined: Nov 29, 2009
Posts: 145
After some reading, getting data from a database "dynamically" is done through RPC:
http://www.ibm.com/developerworks/opensource/library/os-ad-gwt3/
exploring the other options if needed (HttpRequest, RequestBuilder)

This would be rather helpful when i'm going to need it (and get past the quirks i had):
http://cst.mi.fu-berlin.de/teaching/WS0809/19623-Testen-von-Webanwendungen/Struts2GWT-Tutorial/struts2gwt-tutorial.html
Tudor Raneti
Ranch Hand

Joined: Nov 29, 2009
Posts: 145
got an error near the end of the struts2-gwt tutorial:

SEVERE: Servlet.service() for servlet default threw exception
java.lang.ClassNotFoundException: com.google.gwt.user.server.rpc.RemoteServiceServlet

Any thoughts? The tutorial sais not implementinng RemoteServiceServlet for server but make the struts 2 package extend "gwt-default" and use this action:

while not implementing an execute() method either on the POJO representing the action. Also it needs moving the compile GWT into WebContent and the ideea is running w/o the GWT embedded Tomcat server (as far the tutorial goes). I'm stuck with it there though.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: GWT deployment on a struts 2 web app
 
Similar Threads
Jfree report and chart
Using JFreeCharts
how to display bar chart based on the database values using jsp
How to pass a session from an Action class to another class
How to pass a session from a class to another class