File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GWT deployment on a struts 2 web app

 
Tudor Raneti
Ranch Hand
Posts: 145
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 145
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 145
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic