Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm new to creating a web application with a Java back-end and a JavaScript, HTML 5 front-end. How do I pass content between the two?
You are looking for a web framework. These will integrate all three technologies you mention into a server and fully functioning webapp. You will also need to be working with JavaEE.
I recommend Jetty or Play
Look up some tutorials on how to get started but basically these frameworks will create the server backend that launches on a port and can host different sockets etc... and since theyre in Java the backend code can literally be written anywhere in the project...front end is easy too, you'll see how it works once you work through your first tutorial with them :)
Java EE is what you need indeed.
on a back end you add end points, and on front end you hit those end points w/ ajax
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I need to learn java programming, I have a LAMP server running and i need to build a webapplication(dynamic website). I have planned to use HTML, CSS, JS and Java for server side scripting instead of PHP using eclipse IDE.
My question is does the above thing work out and also if i want to deploy the files do i need to send the files to /var/www/html/ or any other method of deployment is there ?
Your question is weird, but yes, you can make a application with Java for the server side, read about JSP. And the files folder depends on the local server you're using , though most of the time for unix thats the right folder.
Good luck , I think you research a lot.
Edit: I was about to edit this for the LAMP definition, LAMP stands for Linux, Apache, MySQL and PHP... So you're not technically using that..
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am new to the angular 2 framework, recently I decided to work with this framework, after looking at this, many questions arose, my first attempt was to create an angular project with the angular cli, which worked, but when I decided to see How to include jsp files instead of html files I did not know how to do it, and I'm coming to you to find out if anyone has done it.
Since I use Spring and actions to send the information to jsp and display it, if someone could help me I would appreciate it.
Angular2 is a single page framework that does not need server side page rendering. Using JPS along with Angular2 does not provide any benefits. You best bet is to use HTML with Angular2 Javascript and make REST calls back to your Spring based server side code.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am building an android app and i have following doubts:-
I need help in how to create back end that is server (application layer).(I am good in java . so if you could guide me a way using java that would be nice)
I need know how to connect the server to my app both on app and on server side.
It depends on you're needs but you're best bet is using something like Django, Ruby on Rails or Python.
Building Awesome Rails API's Part 1
If you want to use Java, there are more ways. Here is one of them (pretty common these days). Your backend app could be a spring based and use REST controllers as the endpoints. There are plenty of introductions, e.g. http://spring.io/guides/gs/rest-service . Once you have established and run the backend app (either deployment to a web server or spring boot - see http://spring.io/guides/gs/spring-boot/) you can connect to the server via TCP/IP. Your android app could use http-client.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
We are currently developing an enterprise web application (Java backend + HTML/JS frontend). This application shall provide cloud-based data analysis functionality to a variety of users. Now, we have decided to use AngularJS for creating the web-frontend. The communication to the backend is realized with REST webservices (implemented in java using jersey, and jetty as webserver).
Some time ago, I have already developed simple java web apps using apache wicket just for examplary reasons. Since I am new to AngularJS, I am wondering if there is any reason why it could still be necessary for us to use a java web-framework (such as wicket, gwt, etc.) additionally to Angular JS?
The other way around: since we use Angular for developing the web-frontend, we do not need any web-framework on the java side any more, right?
I am quite new to java web applications, so any help would really be appreciated :-)
Regards
AngularJS has the $http service which should be able to handle all your GET/POST requests that you need to make to your Java backend. The docs for it are here:
https://docs.angularjs.org/api/ng/service/$http
As long your return data is properly formatted JSON or whichever format you want, Javascript should read it just fine. AngularJS should be fine for your project.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Are there any Java EE frameworks that are similar to CodeIgniter for PHP?
I need to convert a PHP web app to Java for my company. (This is because they want to deploy the app on a Heroku Server) Currently, the application uses the CodeIgniter framework. This is my first Java EE project and I am in the process of learning JSF right now, but while I am doing that, I would like to know of possible frameworks that I should be looking at/ considering for this project.
Not sure abt Heroku deployment, but Spring is a very capable f/w in Java. For small to medium size apps, Play f/w is also a good option.