Necessity of java web-frameworks when using AngularJS [closed] - java

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.

Related

UI recommendation in Netbeans for a Maven web application [closed]

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
I've always been a backend C/C++ developer. Working on a Java project (Netbeans), and I am trying to figure out how to do the front-end/UI. While I am a pretty good back-end dev, I haven't really been keeping up with the latest and greatest in frameworks, etc. for the front-end.
The Java back-end component can communicate with JSON over websockets. I am trying to figure out what front-end framework I should use. I also don't want to recreate my project, and would just like to add to my current Maven web application project.
So what's the verdict? What's hip and cool these days? HTML5? JQueryUI? (are they even mutually exclusive?)
Should also mention that I just want to make a quick UI, b/c I am planning on handing off the task to another programmer for a "proper" front-end component later on. At the same time, I do want my version to be "decent". So, in a nutshell, I want something that is easy to use, but still capable.
Thanks!
Assuming this a web app, Angular is getting popular and Bootstrap has been popular for a while. Use pre-built templates you can find for free or at a site like http://themeforest.net . Don't waste your time trying to code your own, unless its super simple.
You probably want to also think about how the backend will communicate with the front if you haven't already. For example, will it use Servlets, or a framework like Spring Roo? You can also build the front in a completely different language, like PHP, as PHP outsourcing is cheaper and easier to find than Java . PHP is a server side language like Java, but I'm talking about a situation where the website's backend communicates with the java backend via an API or sharing a DB. PHP has many MVC frameworks such as Symfony and Laravel.

how to create application layer (server ) in java [closed]

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.

Jersey Vs Spring for REST webservices [closed]

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 9 years ago.
Improve this question
( trying rewording as per suggestions )
I would like to know which of the two would be less learning curve for writing RESTful web services? ( for someone who dont know both)
I really don't need web MVC .
I would like easy mapping from URL to java function, JSON/XML output options, avoid malicious input from user, translation support for strings etc and low latency for response with data coming from MySQL.
I am looking for the simplicity too.
Thanks in advance!!
For simplicity, use Java EE 6+. You can start RESTful programming using JAX-RS API (javax.ws.rs) without any need to set up Jersey or Spring.
Jersey:
Pros: Standard API (JAX-RS)
Cons: MVC support is less richer than Spring MVC.
Spring:
Pros: Many features, many documents, active community.
Cons: Many rules to learn.

Java back-end and JavaScript front-end, how to join? [closed]

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

What do you think if I use JAX-RS to implement Web Apps (vs Web Services)? [closed]

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 9 years ago.
Improve this question
I like the way JAX-RS represent URLs.. and find it very easy to be used.
I am thinking of making the JAX-RS works instead of my Servlets, so I can write some JSPs that interact directly with these RESTful resources ...
What do you think?
It's not a decision about your model programming, is a decision about architecture and requirements of your application.
My first experience with JAX-RS was very positive. I used the framework to provide some server side functionality to a desktop app. But I wouldn't see the value of using REST if you are creating a traditional Web app where each client action results in a new Web page getting loaded by the user's browser. If you are building an AJAX app, then I can see how REST might be cleaner to code than Servlet.
What is the nature of the project?
Actually it doesn't matter servlets or even use PHP/HTML front end as you JAX-RS use HTTP request. I would suggest you to use JAX-RS reference implementation for building RESTful Web services call jersey. It provide more goodies ..

Categories

Resources