Including angular 2 with java actions and jsp [closed] - java

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.

Related

Parse Migration [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 6 years ago.
Improve this question
I have photo sharing application running on Parse. So if I will migrate to Parse Server, should I change my Android Code or it's just backend thing? And what is the best and the easiest way to migrate from parse without building new system on my own physical server.
Thank you.
If you are migrating to parse server, you shouldn't need to change your Android code. You will need to update to the latest android sdk and initialize parse with your own serverURL however. The serverURL is wherever you decide to host your parse server.
Hosting parse server is straight forward. Check out the parse server example here. They have links to one click deployment to a bunch of different paas providers such as heroku. If you have a lot of cloud code the migration process can become more complicated and is probably out of scope for this question. Most of it is outlined in the docs however.

Connecting and fetching data from mysql using angularjs [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 8 years ago.
Improve this question
I am new to angularjs , can anybody guide me in performing CRUD operations in MYSQL and display in html form using angularjs... to be more precise... I want to store information to customer details such has name,consumer number,contact,address and update the same whenever necessary using java..
Hello and welcome to SO,
I created this diagram in order to make you feel more comfortable with the subject.
As you may see I didn't mention any language: Client, Server nor Database, because the language itself has nothing to do with REST APIs.
Instructions - begginer:
(If you are using PHP, I'd recommend SlimFramework, which is the light, scale, easy to start with, PHP Framework).
1) Pick a server-side language.
2) Create a Database Resource.
3) Pick a Server Side Language.
4) Create 4 Scripts that each does one of each:
Create,Read,Update,Delete.
5) Connect endpoints with each of the scripts, URL -
GET,POST,DELETE,UPDATE.
6) Verify that you can access each of them from the web (authenticated
or not).
7) After you verified that endpoints are working, time to connect
Angular:
7a) First try to create buttons for each action, and link it with
$http.get, $http.post, $http.delete, $http.put actions.
7b) Once it's working you might wanna step up and use ng-resource or
restangular.
P.S: I didn't supply much code information since once you understand what I stated on top, you'd realize that writing code for that isn't really hard.
After you complete these ,
You might wanna start with: Server side and Client side authentication, Performance, Multiple resources and collections, CORS and preflighted requests, and so on.
Good Luck.

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

how to create Rest web services in java with OAuth 1.0 [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 am new to RESTful web services. so please can anyone guide me how to create one with both client and server using OAuth 1.0.
if possible, please give me some example.
You need to learn them in steps and then integrate. Here are couple of links to help you with that:
Learn how to write RESTful webservice using jersey, very simple tutorial:
http://www.mkyong.com/webservices/jax-rs/jersey-hello-world-example/
Learn how to integrate OAuth with jersey :
https://wikis.oracle.com/display/Jersey/OAuth
Final step : You assembling the knowledge and coming up with RESTful webservice using jersey with OAuth.
While coding it if you get stuck or see horrible exceptions, come back and post them here. You will surely get help when you show the right attitude. Good luck!

Can we make a JSF Application be a Web Service Server? And if it is possible, how is this actually done? [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 am new to JSF and, I need to make my JSF Application to be a web service server. Is this possible? And, if it is, can you please help me how to do it?
(Please keep in mind that this is a BAD IDEA anyway, so the answer will look like one as well)
Create a form with JSF. As soon as it works as expected use your second web app to GET the form HTML code, parse it and POST your parameters with the form.
If you created your JSF form well enough it will be sufficiently consistent that you can skip the GET and directly use the POST.
You could also use some third-party library to do the parsing and filling of the form for you. (But that does not make the idea any better)
Before you do that read about RESTful, JSON and most importanly Servlet. What they do, when to use them and realize that your approach is most likely not going to produce good, reliable, maintainable code.
DON'T DO IT THIS WAY (Unless you really REALLY understood what you are doing there)

Categories

Resources