In my autogenerated ~/src/main/ folder, I have a folder called 'frontend' with my Java UiBinder file and my .ui.xml UiBinder file. How do I make STS/Roo run this instead of ApplicationScaffold.html?
Furthermore, what am I supposed to do with ApplicationScaffold? It seems useless.
The ApplicationScaffold.html file loads the ApplicationScaffold.nocache.js javascript file which bootstraps the GWT app. by calling the class which is mentioned in the ApplicationScaffold.gwt.xml file. Search for
I haven't tried this out myself but was just trying to figure out how to run the spring roo generated app in gwt debug mode inside eclipse and like this you can follow yourself whats happening (install the google gwt plugin) and right click on the roo project and do: properties->google->this project has a war file and point to the target/pizzashop-0.1.0.BUILD-SNAPSHOT folder. Then run -> debug as -> Gwt application ...
Related
I am very new to gwt and in fact I don t really understand it.
I have a web project that had already been developped. I just want to change the toolbar that requires gwt in a RichTextToolbar.java file. So I downloaded Eclipse and its gwt plugin.
In a precedent question, I had the answer that I should take thes only file RichTextToolbar from my php/html directory, put in the src folder of my eclipse web application project; then run it and finally taking back the compiled files from the war folder and put it in my php/html directory.
Now, the problem is that when I debug or run the files in eclipse, I am told to choose ant. And then I have a message that no build.xml file is found. Could anyone help?
Best,
Newben
If your intention is to compile the Java code in GWT to Javascript, then you can use 'Compile GWT Project' option under GWT menu in Eclipse.
We have the following packaging:
something.ear (eclipse-project)
+webstuff.war (maven dependency only)
+businessstuff.ejb (eclipse-project)
Packaging works perfectly and I am able to debug all the businessstuff. But how can I make the sourcecode of webstuff.war visible in eclipse and therefore set brakepoints and debug it?
ear and war have only java class files(which is not editable) and not java source code. Better approach is to use some logging framework(i personally prefer log4j).
Every java project developed nowadays have used some logging framework, better search for them in the ear and war files.
On extracting the war file u can see some xml or .properties file which will say what loggong framework it uses.
I'm just starting with having fun with Spring Roo...
Everything is nice so far. But eclipse (STS) sometimes behaves strage.
If i generate a new Spring MVC-Project, the containing Packages are shown as I'm familiar with, in eclipse.
If i generate a Roo-Project, Eclipse just shows the Package-Folders.
How can i fix this?
You can fix this by configuring your Eclipse project to contain Roo generated folder src as an Eclipse Source Folder.
For more information and how to, please see the following article.
http://www.informit.com/articles/article.aspx?p=367962
Figure 6-1 is the dialog where you should add your Source folder.
Cheers!
I am currently creating my first project using Google App Engine in Eclipse. For my main page it seems I can create either:
a servlet (class that extends HttpServlet)
or I can create a jsp file.
Is there a way in Eclipse to make it aware of the java code in a jsp file and to use all the IDE goodies such as colored text, inline documentation, auto-complete? And is there a way to auto build and validate the code in a jsp or it can only show the errors on the first load of the web app?
It seems to be a lot easier to develop in a servlet class than in a jsp file. Or did I miss something?
Eclipse tries to validate the markup and autocomplete it in the JSP files if you have the WTP (Web Tools Platform) installed. But even that sometimes doesn't work well because it's difficult to parse HTML containing JSP tags, Javascript, etc.
Regarding the Java code : it's bad practice to have Java code in scriptlets in JSPs. You should only use JSPs for pure presentation logic, and use JSTL and custom tags for that. The Java code should be in a servlet or action invoked before the JSP. Use an MVC framework (Stripes, Struts, Spring MVC, etc.) to separate your Java code from your JSP code. I've used Stripes on app engine with success and pleasure.
To make sure your JSPs are valid, you can be helped by Eclipse, but you should also deploy your webapp (on the local server) and run tests to make sure every JSP compiles and runs correctly. You can automate these tests with HtmlUnit or Selenium.
I'm new to jms and springs and eclipse as well. i'm trying to implement jms example using Springs in MyEclipse 7.1, and i have been referring the following url.
http://java-x.blogspot.com/2006/12/implementing-jms-with-spring-messaging.html
But Iam unable to understand how to execute the program, it contains a servlet but does not have any html or jsp page, should i create a web project for it or java application? How do i run the program.
Thanks and Best Regards.
You should create a web project to hold the servlet. A web project will have a directory for java source and a directory for web content (images, html, jsp, etc.). Make sure that you put the servlet code inside the java source directory. You will also need to register the servlet in web.xml unless it is a Java EE 5 servlet with annotations.
To run your servlet, right click on it and select Run As -> Run on Server