Technology Source

[ POPULAR STORIES ]

CATCH UP THE POPULAR STORIES

Linked List in C- Insert Node at Start of the Linked List

DATA STRUCTURES IN C – LINKED LIST (20 PROGRAMS) Try DATA STRUCTURES IN C – LINKED LIST (20 PROGRAMS) Linked List in C- Insert Node at Start of the Linked List :            Linked List is a data structure which is used to store and retrieve data. Consider the following image.  … Read More »

Read more
Alternative text

Check If Vertex/Edge Exist – Gremlin Query – Titan

Check If Vertex/Edge Exist – Gremlin Query Example 1: // Returns boolean value exist = g.V().hasLabel('TEST_LABEL').has('property1','value1').hasNext(); Example 2: // Returns boolean value exist = g.V().hasLabel('TEST_LABEL').has('property1','value1').bothE().hasNext(); Related Links:

Read more
Alternative text

Access Local Files or Static Content (Images, Videos, Media or any other files outside of the Web Application(WAR)) in the System using APACHE TOMCAT ...

This article details on how to access local directory files(IMAGES, VIDEOS or any other files) from the web application when using APACHE TOMCAT SERVER. Note that this configuration we implement is independent of the web application that we are using. STEPS TO FOLLOW Go to TOMCAT directory Go to  TOMCAT_DIRECTORY/conf/server.xml Add the following content in… Read More »

Read more
Alternative text

Create Vertex If Does Not Exist – Gremlin Query – Titan

Create Vertex If Does Not Exist Return a vertex with given label and property. If the vertex does not exist, a new vertex is created and returned to vertexObject. vertexObject = g.V().hasLabel('VERTEX_LABEL').has('property','value').tryNext().orElseGet{ graph.addVertex(label, 'VERTEX_LABEL', 'property', 'value'); }; Related Links:

Read more
Alternative text

Java – Break Filter Chain and Return Custom POJO Response from Servlet Filter

Sample Servlet Filter : package com.application.test.security; import com.application.test.response.ErrorResponse; import com.fasterxml.jackson.databind.ObjectMapper; import javax.servlet.*; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; public class TestFilter implements Filter { @Override public void init(FilterConfig filterConfig) throws ServletException { } @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,ServletException { if(ANY CONDITION){ //ANY POJO CLASS ErrorResponse errorResponse = new ErrorResponse();… Read More »

Read more
Alternative text

[ LATEST STORIES ]

CATCH UP THE LATEST STORIES

[ SUBSCRIBE TO OUR BLOG ]

Close Bitnami banner
Bitnami