GWT/ JSP- how to run jsp - java

I am on a project that uses GWT/ eclipse/ SQL Developer and the guy who originally implemented it is no longer on the project. We have a normal WAR and everything but the jsp files are kept in a different environment. Anyone know why? Can they not be run through GWT?
The issue we are facing is the only way we have to test/ compile JSPs is to actually deploy it into DEV which takes a lot of time. So we are in need of being able to run JSPs locally.
I have been told someone used to use Jdeveloper to do this, but I am unfamiliar with it and the only YouTube tutorials are in a foreign language (in regards to using JSPs with JDeveloper 11g). Someone else suggested notepad/ Tomcat? Or yet another option would be to configure eclipse to run it with our current project in GWT?
I am not familiar with any of this being I am brand new to JSPs,Tomcat, etc. and am in desperate need of some help.
What is the best way to accomplish my needs and are there any guides/ tutorials to help me through the process?
My requirements are just to run a folder with 4 linked jsps and be able to connect to the database to provide the information.

"I am not familiar with any of this being I am brand new to
JSPs,Tomcat, etc. and am in desperate need of some help."
That's sounds true!
One answer about the different environments is that jsp needs "EE" .I.E. EclipseEE but the GWT app just uses plain old eclipse (like an eclipse helios release with GWT plugin).
Regarding your requirements, I can't understand them clearly enough to begin to provide helpful information, but good luck.
Tony

Related

How can I deploy deploy my local Java "Web Application"

all!
I'm currently working on a project for a friend of mine. I'm using a WebView for the GUI so that I can use web technologies instead of Swing or JavaFX (I know that WebView is part of JavaFX).
I'm also using JSP, so I'm using jetty (will change to gretty soon) as the servlet container/web server. My friend needs to store data somewhere, so I'm using SQLite as the database.
Currently I just build the project through gradle, but I'm unsure how I can deploy this (as an executable jar for example) for my friend. I need to somehow execute jetty and SQLite before the actual front-end, but I'm unsure of how to do that.
I imagine I should make a driver file and execute those programs from main, but I'm unsure of how I would go about doing that. If this is the case, could someone go into detail as to how to approach it this way?
I'm also not turned off by out of the ordinary solutions! If it works, that's good enough for me!
Any help at all would be immensely appreciated! Thank you all very much!

A couple of questions about Eclipse

I've been learning to program in Java and the one thing I'm having difficulty locking down is an IDE that I actually like! I tried NetBeans, but did not get on with it at all. I've recently been using CodeRunner, which I found on the Mac App Store. I like CodeRunner, but I worry that it might be a bit simplistic. So I've been thinking of trying Eclipse, but there are a couple of things I'm not quite sure about that hopefully someone here can answer.
First of all, I've tried installing Eclipse on my Mac and I'm baffled by the fact that it comes with a folder packed full of program files and not as just a packaged Mac app. I'm not entirely sure what to do with it; are there any Mac Eclipse users out there who can advise me?
My other query has to do with projects. I've worked with a couple of different Java books and they all recommend using a single project to hold all of the java files for the book. Can anyone explain why this is? I would prefer to keep my own folder structure, for example having a separate folder for each chapter. Would I just have a different project for each chapter instead, is that how this works?
My apologies if these are noob questions; I really want to get my head around Java, but need to be able to get comfortable with the IDE ideally first!
Many thanks.
1- you can just put it in the Applications folder and use it as a normal application ;)
2- I think it's better to organise stuffs from the same source (in this case your book) in the same project. You can then put each chapter in different packages

Starting web programming in Java

I've been programming in PHP and ASP.NET for a while now. When doing PHP, I've always used XAMPP to test my websites. I'm wondering (since I'm learning Java) if there are equivalent services around?
Furthermore, I know this is sort of an open question, but how would you make a basic page in Java, just a basic 'Hello World' web page.
You can actually still use XAMPP. You just need to install tomcat. Here is a great screen cast on how to do it: http://www.youtube.com/watch?v=TUV_jPdq7fc.
If your a mac user you can try MAMP (whcih I prefer) and follow http://blog.mirotin.net/22/tomcat-on-mamp-the-simple-way. To get Tomcat going.
You might want to learn about programming in JSP and Servelets. JSP s are kinda like php in that they emit html out.
Also the server would be tomcat.
It would be best if you download Eclipse for EE developers. You can also try Netbeans. a sample servelet
You may read about servlets which is the basis for web applications in Java. There are many web frameworks built on top of them.
I always recommend Grails to anyone getting started with java/the web. It's more important to grasp the patterns, lifecycle, and working with requests and responses than learning the actual language. Learning Grails has got me from hobbyist developer to IT employee working with ATG - one of the most obscenely challenging web frameworks there are.
Grails includes everything you need to get started: local server, scaffolding (that's your ticket to Hello World), database access, dependency injection, the list goes on. It's built on top of Spring, Hibernate, Sitemesh, etc, which are all well-known and excellent frameworks that are being used in production.
Grails is written with Groovy, a language written on top of the JVM not far from Java.
Happy coding!
i seems to be new to the platform nd new to java but would like to suggest what i have gained till now that for developing a java page we can have any of the two servers downloaded(Weblogic or tomcat). weblogic is fully implementation of classes whereas tomcat has partial implementation. Then for the next step that we require is a source file(java file),and html file and a xml file and these all needs to be placed in a root directory as like the source file,html file and a folder named WEB-INF to be placed parallel.
Inside WEB-INF folder needs to create classes folder where our java class file will be kept.
then needs to create a .war file and deploy it over weblogic to get our desired page display.
thanks......

How to make a browser based IDE to code in the cloud?

I have read a bit about cloud and browser based IDE's.
I am planning to make a Java based bare bones IDE by integrating a compiler to code in the cloud. This is for educational purpose as I am just determined to learn to develop cloud based IDE.
I want it to be something like eclipse Orion but i want it to allow for coding in java. It should allow users to code, compile and run java programs by directly writing .java files and not by converting the .js files into java files.
Can someone please suggest me an existing cloud that I should use for this. And also, I am just a beginner and I have no clue about how to proceed and the articles that I am required to read.
Please do let me know what I should begin with and the cloud that suits my needs the best.
Thank you very much in advance.
You should look at projects like Mozilla SkyWriter, which implement the bare bones editing functionality
(There have been a lot of change lately. There seems to have been migrated to Ace)
You can use Codenvy and put your code on a Git repository. Then, you could build automatically once you have done the push using a CI tool like Jenkins. Now, I have an environment in which I use a Jenkins instance as a Service and also a runtime environment so I can get a continuous deployment pipeline. This video will show you, in a graphical way, what I am talking about.
Koding provides you with a full Ubuntu machine, with root, so it's able to run and do what you want, programming wise.
The reason i'm suggesting Koding though, is that they have a Framework to develop your IDE for the Koding VMs themselves.
The logic here, is that making IDEs is challenging, but the biggest challenges is ensuring security between your IDE users. Using another VM platform would mean that you don't have to manage the security of your VM, and focus entirely on your IDE.
Let me know what you think :)
For virtual/cloud hosting try one of the following:
Rackspace
VPS Farm
I like vpsfarm because it is cheap and pretty bare bones.
For the IDE itself, I would first create a webapp that can upload and compile and run arbitrary java code, without adding libraries or J2EE. That alone will be a good undertaking for one dev.

Setting up a maven-web project(from an existing netbeans-maven-web one)

So, I want to change a project here in my company to work with some IDE agnostic settings. I have a very small experience with setting Java applications with Tomcat(I can barely remember how it worked).
So, to help making our newest applications, independent from IDE's we are using Maven, which currently builds our spring applications nicely on both eclipse or Netbeans. But there are two things I would like to know how to do with Maven:
Deploy the app to the test server.
Run the test server easily.
Both are tasks that Netbeans does automatically.
I would appreciate a lot, if anyone could give me detailed directions on how to do the thing.
Oh, for the moment we are using Tomcat as test server.
It looks like you need the Maven plugin for Tomcat
The link should tell you everything you want to know.
hth

Categories