DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

The Latest Data Topics

article thumbnail
5 Options for Deploying Microservices
Microservice applications can run in many ways, with different tradeoffs and cost structures. Let’s go over the 5 main ways we can deploy microservices.
July 20, 2022
by Tomas Fernandez
· 9,751 Views · 6 Likes
article thumbnail
Cleaning Out the Server Closet: Enterprise Sustainability Through Cloud Storage and Open Ecosystems
With so many different cloud platforms, applications, and services, an open ecosystem model plays an important role in sustainable networking. Learn more here.
July 19, 2022
by Mattias Fridstrom
· 4,699 Views · 2 Likes
article thumbnail
Writing Indexes in Java by Using Right Collection
The author explains the main idea of indexes and how to create them in Java. Creating fast search using the right data structures.
July 19, 2022
by Dmitry Egorov DZone Core CORE
· 7,921 Views · 5 Likes
article thumbnail
9 Software Quality Concerns to Consider When Adding New CRM Features
CRMs provide organizations with actionable insight into customers’ preferences and pain points. It’s a good idea to think about software quality.
July 19, 2022
by Lena Yakimova
· 6,830 Views · 1 Like
article thumbnail
What Is Text Classification?
Text Classification is the process of categorizing text into one or more different classes. Learn how to develop a Text Classification Deep Learning Algorithm.
July 19, 2022
by Kevin Vu
· 6,699 Views · 1 Like
article thumbnail
Tutorial: Build a Full-Stack Reactive Chat App With Spring Boot
Learn how to connect a reactive Spring Boot back end to a reactive TypeScript front end to build a full-stack reactive chat app.
July 19, 2022
by Marcus Hellberg
· 10,640 Views · 6 Likes
article thumbnail
The Darker Side of ALTER TABLE
In this blog, we will go over how developers and DBAs should use ALTER TABLE in a proper fashion to avoid problems this query can create.
July 18, 2022
by Lukas Vileikis
· 6,348 Views · 3 Likes
article thumbnail
Analytics Apps That Will Take Center Stage
We are at the forefront of an analytics evolution, moving beyond traditional BI and reporting to modern analytics applications.
July 18, 2022
by David Wang
· 3,654 Views · 1 Like
article thumbnail
Required Capabilities in Self-Navigating Vehicle-Processing Architectures
This article introduces the software algorithms used in self-navigating vehicle processing architectures and covers critical safety-related requirements.
July 18, 2022
by Jim Ledin
· 7,262 Views · 2 Likes
article thumbnail
Machine Learning and Data Science With Kafka in Healthcare
Machine Learning and Data Science with Apache Kafka in the healthcare industry exploring deployments from the CDC (Covid), Cerner (sepsis), and Celmatix (EMRs).
July 16, 2022
by Kai Wähner DZone Core CORE
· 8,031 Views · 3 Likes
article thumbnail
How to Improve Data Quality With GCP Protocol Buffers
This is a guide on how to enforce schema changes in Google BigQuery leveraging Google Protocol Buffers, aka Protobuf.
July 15, 2022
by Yuliia Tkachova
· 6,753 Views · 3 Likes
article thumbnail
Create a Full-Stack App Using Nuxt.js, NestJS, and DataStax Astra DB (With a Little Help From GitHub Copilot)
In this post, learn how to create a full-stack application, complete with dynamic data retrieved from a cloud database by an API.
July 15, 2022
by Pieter Humphrey
· 7,443 Views · 1 Like
article thumbnail
A Complete Guide to IoT Architecture
Understanding architecture is key to creating a successful IoT project and leveraging its benefits, how it’s structured, and the different types and layers.
July 15, 2022
by Carsten Rhod Gregersen
· 10,486 Views · 5 Likes
article thumbnail
What Could Go Wrong With IoT Development?
Every technology and development service used for asset tracking, positioning, or connectivity has its own set of common errors to avoid. Let's take a look.
Updated July 15, 2022
by Alexey Shabalovskiy
· 8,420 Views · 1 Like
article thumbnail
Groovy 4.0: These 10 New Features Make It AWESOME!
Sealed types, switch expressions, and record types. Here are just a few new features introduced in the latest Groovy 4.0 release. In this article, I want to show you ten things that make Groovy 4.0 amazing.
July 14, 2022
by Szymon Stepniak
· 7,680 Views · 6 Likes
article thumbnail
Introduction to Data Replication With MariaDB Using Docker Containers
Send in the clones: that’s what we do when we replicate databases. In this article, you’ll learn how to perform the most basic form of replication with MariaDB.
July 14, 2022
by Alejandro Duarte DZone Core CORE
· 49,039 Views · 4 Likes
article thumbnail
How To Perform OCR on a Photograph of a Receipt Using Java
Learn of challenges associated with processing physical receipts for digital expensing operations and discover an OCR API solution to alleviate the problem.
July 14, 2022
by Brian O'Neill DZone Core CORE
· 6,907 Views · 4 Likes
article thumbnail
Everything You Should Know About APIs
API stands for Application Programming Interface. In this article, you will learn the processes, benefits, and working of APIs.
July 14, 2022
by Himanshu Mehra
· 17,899 Views · 12 Likes
article thumbnail
Learning About the Headers Used for gRPC Over HTTP/2
In this article, we take a look some next-generation HTTP headers available for integration developers to use when designing APIs.
Updated July 13, 2022
by Kin Lane
· 47,928 Views · 4 Likes
article thumbnail
Building a REST Service That Collects HTML Form Data Using Netbeans, Jersey, Apache Tomcat, and Java
The Jersey project is very well documented so it makes it easy to learn REST with Java. In this article I’m going to build two projects. The first project will be a very simple HTML page that presents a form to the user and then submits it to a REST project residing on the same server. The second project will be the REST part. For this article I used the following tools: 1. Netbeans 7 2. Apache Tomcat 7 3. Jersey 4. Java I built this on OS X Lion. Go ahead and create a new Maven Web Application with Netbeans 7 called: MyForm Once the project has been generated take the resulting (default) index.jsp file and delete it. In its place add a file called: index.html and add the following content to it: Name: Message: Item 1: Item 2: Basically, I created a simple (ugly) form that takes a few parameters the user enters. They submit the form and the data is sent to the REST project we will soon be building. The idea here is we are using an HTTP POST to create a new message. That’s it for the first project! With Netbean’s Maven integration do a Clean and Build and then deploy the resulting WAR file to Apache Tomcat. Create another new Maven Web Application with Netbeans 7 called: RESTwithForms Add two new Java classes to the new project: 1. MyApplication 2. MessageResource The code for MyApplication.java is as follows: package com.giantflyingsaucer; import com.sun.jersey.api.core.PackagesResourceConfig; import javax.ws.rs.ApplicationPath; @ApplicationPath("/") public class MyApplication extends PackagesResourceConfig { public MyApplication() { super("com.giantflyingsaucer"); } } In a brief nutshell this code allows us to make use of some Servlet 3.0 goodies (we don’t need to create a web.xml file for this project as an example). For more details see the sections titled: Example 2.8. Reusing Jersey implementation in your custom application model and Example 2.9. Deployment of a JAX-RS application using @ApplicationPath with Servlet 3.0 at this link. The real guts of the REST project are in the MessageResource.java file as seen below: package com.giantflyingsaucer; import java.net.URI; import java.util.List; import java.util.UUID; import javax.ws.rs.FormParam; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.core.Response; import javax.ws.rs.Consumes; import javax.ws.rs.core.MediaType; @Path("/messages") public class MessageResource { @POST @Consumes(MediaType.APPLICATION_FORM_URLENCODED) public Response createMessage(@FormParam("name") String name, @FormParam("message") String message, @FormParam("thelist") List list) { if(name.trim().length() > 0 && message.trim().length() > 0 && !list.isEmpty()) { // Note 1: Normally you would persist the new message to a datastore // of some sort. I'm going to pretend I've done that and // use a unique id for it that obviously points to nothing in // this case. // Note 2: The way I'm returning the data should be more like the commented // out piece, I am being verbose for the sake of showing you how to // get the values and show that it was read. return Response.created(URI.create("/messages/" + String.valueOf(UUID.randomUUID()))).entity( name+ ": " + message + " --> the items: " + list.get(0) + " - " + list.get(1)).build(); // This is a more real world "return" //return Response.created(URI.create("/messages/" + String.valueOf(UUID.randomUUID()))).build(); } return Response.status(Response.Status.PRECONDITION_FAILED).build(); } } Note: Pay special attention to the comments. Please don’t email me stating I shouldn’t be returning text back with the values, also please don’t tell me I should be iterating the list, etc. this is just a demo. You will obviously do this differently in a production environment. The key here is simplicity and minimal code. At this point you need to add jersey-server as a dependency in your POM file. com.sun.jersey jersey-server-linking 1.9.1 With Netbean’s Maven integration do a Clean and Build and then deploy the resulting WAR file to Apache Tomcat. You are now ready to test it out. Load up the HTML file from the first project and enter some data and then submit it. If you have a tool like FireBug for Firefox, you can also see that an HTTP 201 was returned (if successful). If you don’t enter any data in the form then you should get an HTTP 412 back. With not much more work you could just as easily use something like jQuery and submit the form via AJAX.
July 13, 2022
by Chad Lung
· 67,106 Views · 4 Likes
  • Previous
  • ...
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • ...
  • Next
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook
×