We have developed eclipse plugin which will convert the jsp to wicket framework.
Our tool will parse the jsp files and convert them to wicket using antlr.
-
we will run our plugin project using eclipse application.
A new runtime eclipse application will open with the plugin symbol in the tool bar.
For the first time when we click on the plugin symbol, the wizard pages are getting opened and the tool is parsing the jsp files and convert them to wicket using antlr.
After parsing the jsp files our tool generates some validator classes using velocity templates, and generates some other classes using templates that are necessary for the generated wicket project to run on the server.
Next time in the same runtime apllication if we click on the plugin symbol the wizard pages are getting opened but the parsing of jsp files is not performed.
what might be the issue? please help us.
Sorry we couldnot provide the code.
Related
I'm doing a walkthrough for SAPUI5.
The code src="/resources/sap-ui-core.js" doesn't work, because I can't find this directory in my project.
When using a CDN URL, it works fine. But I don't want to use CDN for my application.
So how can I get and import the sap-ui-core.js file into my project so that it is saved on my computer locally?
I'm working with Eclipse btw. and installed the SAPUI5 Tools for Eclipse.
The SAPUI5-Plugin for eclipse includes the SAPUI5 library files.
If you start the App using "Run as..."->"Web App Preview" on your index.html, eclipse starts a jetty http server which serves the SAPUI5 library at /resources.
As long as you don't close the preview window in eclipse you can use any browser to debug your application at the url you find in that preview window.
Check that the dependencies are correct in your project, because the general dependency file such as sap.m may be missing in the project file.
I am developing a small GWT based web application and using Sublime Text 2 as my editor for GWT code. I have added the following jar in my PATH:
gwt-2.5.0/gwt-user.jar
Still when I build the entry point java file, Sublime Text complains that it cannot see any of the GWT packages.
I am using the gwt-user.jar in the path since that is what I saw Eclipse requires to build the file. Is it possible to compile GWT code using ST or should I default to Eclipse?
I am new to JavaEE but struggling hard to learn it.
I noticed one thing which is not working that is Code Assist in Custom Tag files in Eclipse. Same working in IntelliJIDEA current version. Both screen shots below.
Someone help me to enable Code Assist in Eclipse Indigo Service Release 2.
Edited
NetBeans & Esclipse don't show code assist for custom classes when I type ${user.} which is EL. Only IntelliJIDEA supports that.
Eclipse
IntelliJIDEA
JAR files
1) Try Window / Preferences / Web / JSP Files / Editor / Content Assist.
Make sure the HTML and XML Tag Proposals checkboxes are checked.
2) Can you specify it as a taglib instead of a tag import?
<%# tablib prefix="user" uri="/WEB-INF/tags/User.tld" %>
3) Do you have the right libraries in the classpath?
Enabling content assist for JSP files
Having the proper files defined in the Java™ build class path is essential for content assist to work properly in JSP files. It is also essential for the links builder to be able to correctly resolve links to servlets or Java beans in JSP and HTML files.
To enable content assist for JSP files:
To determine whether the build path is correct, select Properties from the
project's pop-up menu. Select Java Build Path, and then the Libraries page. You should see the following files:
j2ee.jar
rt.jar
servlet.jar
webcontainer.jar
If they are not present, add them as External JAR files. You may have your own versions of these files, depending on the level of JDK or Servlet API for which you are developing. If your Web applications reference other JARs, you can place them in the build path as follows:
Use the Add JARs button on the Library page.
You must ensure that the JAR file is available to the server by properly
configuring the server.
Add the JARs to the WEB-INF/lib directory.
They will be automatically added to the build path and deployed to the
server in as part of the project WAR.
I am making gwt application as following step:
Firstly I install gwt plugin in my eclipse(Helios).
Create dynamic project.
Add gwt plugin through
going to property page of the project
Select google-webtoolkit
check "use GWT"
then go to google-web application
the directory name to "web-content".
Create gwt module in my project then create entry point class then html.
Create a button in onModule method of entry point class.
Then I run the application in tomcat server by just right clicking on project and selecting run as web application(run with tomcat server). As result of this I am getting a blank page on browser? There is no excption in server log. I am not able to debug. Where I am going wrong?
Please help me to sort out this problem.
I am not using google web application because I was getting difficulty to create war file. As a result of this I got the above process to develop GWT application.
Thanks
Rahul
why don't you try in reverse:
First install gwt plugin in my eclipse(Helios).
Create GWT project
Add Dynamic web plugin
going to property page of the project
project Facets tab
Select Dynamic Web Module and java
ok to apply changes.
Write your code
and try to run on server. it will work.
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.