Java Restful Service Tutorial - Submitting data - Part 6

preview_player
Показать описание
Overview
- POST
- CONSUME
- Jackson Processor (parsing json and data binding)
- JSONObjects and JSONArrays
- Preview of episode 7

GitHub repo (to view code):

If you subscribe on YouTube, you will see more than developer videos.
Рекомендации по теме
Комментарии
Автор

Java Rest Server tutorial part 6 is now up on youtube. Java Restful Service Tutorial - Submitting data - Part 6

tube
Автор

it is amazing, easy to understand and easy to follow up.

munahussien
Автор

Great Video ! !  appreciate your effort in explaining each and every stuff clearly !

aishwaryaanand
Автор

waiting for part7 - 308tube subscriber

GauravKhare
Автор

I really appreciate your video posts. I was able to understand clearly and practice it with out others help. Thank you. I am waiting for your next video post :)
.  

deepuraju
Автор

Your tutorial are really nice. if you can add some video for Restful security it will be really helpful. 

ManojKumar-uqhe
Автор

For your first version of the submit button, i faced the post.js running into the error handler, since the answer from the server did not follow the rules for the JSON format. Writing into the Database worked, but I just wanted that error to disappear. I had a hard time struggling with this and came up with my own solution.
For the v2 addPcParts Java function, I changed @Produces to TEXT_PLAIN. Into the returnString I wrote status messages similar to yours for success etc.
Within the "submit it" JavaScript function, i also changed the data type within "ajaxObj" over to "text". When Accessing the div_ajaxResponse on the HTML page, I then just wrote "data" as an argument for the message to be displayed. Reading out the HTTP - code did not work either (sure due to code being copied from the second version of the submit :) ), so I added the arguments "status" and "jqXHR" to the success handler. Checking for success then means comparing the string "status" with the string constant "success".

This whole thing works in some way - If I had just left it as it was and continued with the video, i would have been aware of the working and more elegant solution, using the advantages of JSON.

Nevertheless I want to say huge thanks for your awesome tutorial - I started watching as a total noob in cases of databases / servers / JSON, but with the earned knowledge, I am feeling able to do "my own stuff" without any fear :)

Greets from Germany!

mafiagretel
Автор

thanks a lot.. I am eagerly waiting for part 7 :)

madhupsgr
Автор

Dear 308tube, I hope that you can screencast about topic : How to deploy this project up to real Host(not localhost). Because of, i want to code a ios application and communicate with Rest services of real java server. JSON file is my direction to transfer between ios client and java server. I believe that it will really useful with anyone.Thank you very much!

levantoan
Автор

Do you have a tutorial implementing authentication prior to allowing the client to access the Jersey based restful service?

malfonsousa
Автор

where are the other files such as post.html, post.js and jquery files...
I got this as output...
Server was not able to process your request

rosalinpatro
Автор

Thanks for these videos! Would it be possible for you to do tutorials on ajax?

sidispig
Автор

awesome i follow every episode, but what bother me that it takes very long time betwwen the part and the next one, why should we wait about 4 months to get the next episode!!!????

raidalmoued
Автор

I turned on JS debigging and found this message when I tried to submit the form:
TypeError: $post_example.serializeObject is not a function

 @ this line inside post.js
var jsObj = $post_example.serializeObject(), ajaxObj = {};

Why is this happening?

mansukhdeep
Автор

Hello,
          I am getting this error at the end of htting the submit button. 
ORA-01400: cannot insert NULL into
Please can someone guide. Thanks.

RahulKantaliya
Автор

Does anyone know how to deploy the finished RESTful Service in weblogic 12c???

henriqueromao
Автор

Did I miss how to set AutoIncrement of Primary Key, or I have to implement it on my own? Thnx..

Imforsken
Автор

Thanks for a very nice tutorial. Would you please send me the post.html and javascript files? Or point me to the location I can get the files.

TheDulichvietnam
Автор

Insertion failed since PK field is empty(null). Need to explain how the PK column was setup....It might be auto-increase(fill)-int column

yafuwang
Автор

It is really bad at the same hand that how you did not even give a Little brief introduction to Ajax and JavaScript..!
I was following your tutorial but got stuck at that Post call coz it didnt work at all despite i tried all the same(may be afaik) ..

muhammadfaisalhyder
visit shbcf.ru