Extract Json from PostgreSQL with Java Servlet
Budget $10-100 USD
- Freelancer
- Jobs
- Java
- Extract Json from PostgreSQL with Java Servlet
Hi
currently this Java retrieves elements from a .json file. These elements create a photo gallery developed with JQuery.
Requiments: Tomcat 9 and Java 8, PostgreSQL 10
1) EXTRACT FROM POSTGRESQL
*****************************************
I want Java to query PostgreSQL and get the elements to create the gallery directly from PostgreSQL.
The PostgreSQL table must be called "Contents" and must have 3 fields, the first "ID" (Serial) the second "MediaResult" (field type Json) and status (int) default is 0
Every single image must correspond to a line with relative ID.
The Java file that gets the .json file is as follows (see part of the code), Therefore, each section of similar Json code will be a different image and must therefore be saved in a line of the dedicated PostgreSQL (table) and with its unique ID for each image.
PS. To be clear this is the code Json related to an image in the gallery:
{
"title" : "Azuki bean",
"description" : "Swiss chard pumpkin bunya nuts maize plantain aubergine napa cabbage soko coriander sweet pepper water spinach winter purslane shallot tigernut lentil [login to view URL] chard pumpkin bunya nuts maize plantain aubergine napa cabbage.",
"thumbnail" : ["images/small/[login to view URL]", "images/small/[login to view URL]", "images/small/[login to view URL]", "images/small/[login to view URL]", "images/small/[login to view URL]"],
"large" : ["[login to view URL]", "images/large/[login to view URL]", "images/large/[login to view URL]", "images/large/[login to view URL]", "images/large/[login to view URL]"],
"img_title" : ["jquery elastic grid 1 ", "jquery elastic grid 2", "jquery elastic grid 3", "jquery elastic grid 4", "jquery elastic grid 5"],
"button_list" :
[
{ "title":"Demo", "url" : "[login to view URL]", "new_window" : true },
{ "title":"Download", "url":"[login to view URL]", "new_window" : false}
],
"tags" : ["Self Portrait"]
}
Summing up Java will have to get the results from PostgreSQL and no longer from the .json file
2) IMPORT FROM CSV
*****************************************
I have a CSV with the following fields:
DESCRIPTION | TITLE | THUMB | CATEGORY | URL
I would like a Servlet requesting through the form to select the .CSV file and save the various fields in Json, with the format of part 1 (attached .json file).
Then the fields will match as follows:
DESCRIPTION = description
TITLE = title
THUMB = thumbnail (value is one or multiple, as in example)
CATEGORY = tags (value is one or multiple, as in example)
URL = is this part: { "title":"Demo", "url" : "[login to view URL]", "new_window" : true }
3) APPROVATION
*****************************************
The third and last part consists in moderating the contents loaded by the CSV file.
It must be a servlet that in sequence will show a preview of the image, the title and the url + 2 button
1. APPROVED = value 1
2. DECLINED = value 2
Now there is a small change to be made to Part 1 (EXTRACT FROM POSTGRESQL)
They will only be extracted, and then the visible images with the value 1 (Approved)
Each time you access the approval servlet, it will start displaying images with a value of 0, making sure that all images are moderated gradually.
PS. Once an image is approved or declined, the servlet will show the next image Not moderate.
22 freelancers are bidding on average $79 for this job
i, I am a tech savvy person, more than a decade I am developing and delivering applications on Java based technologies. I am a certified Java professional. My logical thinking and problem solving skills are quite goo More
Hi There, I had a look at all 3 requirements. I have 14 years of industry experience in developing applications using Java. Please let me know more details. Best Regards, Shatrughna
Hi , hope you are well i am java developer and i have 5 years experience in software development using Java i am expert with JSP , Servlets and JSON , and i can help you in this project hope to contact me to More
Hi, My name is Xiong Jie Zhao, live in China. I am a newbie in this freelancer, but I have many experiences with Java EE and Java web development using spring framework. I have some skills with the crawling and sea More
I am a proficient developer with a web-development orientation. My preferred technologies are PHP, Java, JavaScript, any dialects of SQL, but my experience is not limited to these. I am experienced at developing websi More
Hello, I am very interested in the project and you would like to apply to it. I'm a web developer with 7 years experience in Java, J2EE, Spring, Hibernate,PHP, MYSQL, CSS3, HTML5 and deep knowledge Wordpress, W More
Hey there, Hope you are doing well. We have gone through all the details of your project and after having necessary information to check our caliber, we have come to the result that we can make your project done succe More
I have 3+ Year experience in Java Web Technologies. Also working in Javascript Technologies I am a Full Stack Developer
Hello, I can do this task very easily. I have sound working experience with json and have sound knowledge on scripting using Mysql for scraping. Hope to hear from you soon.
Hi there, I've over 7+years of experience, in Java language, with multiple frameworks-Spring MVC, Spring Restful web services, Google Guice, Jersey Web Services with consumer and produces the JSON or XML.I deliver More
I'm Lead Software Engineer at EPAM and I have great experience in Java and PostgreSQL. This is just a one day work for me.
i saw your post and i am intreested in doing your project. i am working in MNC company and have 3+yrs of exp in JAva Development.