Monday, 10 August 2015

Difference between autowire byName and byType in Spring

Spring framework provides the way to inject the bean dependencies using the autowire functionality. By default autowire functionality is disabled in spring framework. A developer explicitly define the autowiring configuration in spring configuration xml file. And this point is to remember that autowiring is only supported for object dependencies.
The difference between byType and byName autowiring is as follows :
  1. Autowire byType will search for a bean in configuration file, whose id match with the property type to be wired whereas autowire byName will search for a bean whose id is matching with the property name to be wired.
  2. As a syntax wise difference is as follows:
    package com.evon;
    public class Company {    private Employee emp;    public String setEmp(Employee emp) {     this .emp = emp;     }          }
To view full blog about Difference between autowire byName and byType in Spring visit FindNerd.
You can also read such more blogs at our Java Development Blogs section.
You can also ask question related to Java at our Java developer forum.



Friday, 7 August 2015

Remove/add list using ng-click

Here is an simple example to add and delete list using angular ng-click

Html -

    <div ng-app="nameApp" ng-controller="TitleCtrl">
        <ul>
          <li ng-repeat="name in names">{{name}}
          <a href="" ng-click="removeName(name)">remove</a></li>
        </ul>
        <form ng-submit="addName()">
          <input type="text" ng-model="enteredName">
          <input type="submit" value="+">
        </form>
      </div>

For full blog about Remove/add list using ng-click visit Findnerd.

Also if you have any query related to javascript then you can post it on our javascript questions and answers developer forum. We are Happy to hear you!!!

Thursday, 6 August 2015

How to add a Podfile in your Project

Below is the step-wise process for integrating a Podfile easily in your Application.
  1. Open Terminal
  2. Change the directory in Terminal to the location where your Xcode project resides.
  3. When you reach to the desired project location in which you want to add a PodFile. You can create an empty file by using the command “touch Podfile”.
  4. Then by using “open Podfile” command you can open the file you have created before and then add the desired podfile to that and close the window.
To read this full blog about Integrating a Podfile in a Project visit FindNerd.
FindNerd is a social platform for tech nerds to share knowledge by posting blogs, forums on web development along with job freelancing & project management feature.

Wednesday, 5 August 2015

Java connectivity JDBC driver

Hi Friends,
This article will help you to identify basic connectivity using JDBC driver in Java. There are only four categories of JDBC driver provided by SUN, Type 1, 2, 3, and 4, which is explained below −



Type 1: JDBC-ODBC (Bridge Driver)
In a Type 1 driver, a JDBC bridge is used to access ODBC drivers installed on each system. One can configure ODBC on his system in a DSN ( Data Source Name) which will represent target of that database.
It was mostly used driver as it configures database in Access. But nowadays it is used only for test purpose besides that other DBMS drivers are being used.



Type 2: JDBC-Native API Driver
In a Type 2 driver, JDBC API calls are converted into native C/C++ API calls, which are unique to the database. These drivers are basically provided by the database vendors only and used in the same manner as the JDBC-ODBC Bridge. So vendor specific driver needs to be used on user system.
For full blog about Java connectivity JDBC driver Visit Findnerd.
FindNerd -A platform/social network that covers all of your needs like tech queries, post blogs,can schedule a meeting,record your desktop and share, post tech jobs etc.
On Findnerd, most of the queries asked from the section of Android, iPhone, HTML and Java developer forums.

Registering Service using value in angularJS

A service is created by a service factory and service factories are functions which are created by a service provider(constructor function).
When instantiating service provider, there must be a property named $get, which holds service factory logic.
The $provide provide helping method for registering services with the help of $injector.


When we talk about registering a service using value, here value is nothing more than a simple injectable value. The value can be a string, number, array, function, object. The difference between value and constant is, it can not be injected into configuration. It accepts two parameters, that are: name and value. Syntax is:


value(name, value);
For full Blog about Registering Service using value in angularJS visit FindNerd.
You can ask technology related questions at FindNerd Forum section. Mostly questions asked from the community Java, Androip, PHP and JavaScript forums.

Tuesday, 4 August 2015

JSP Life Cycle



JSP is a server side scripting language. JSP is used to develop web applications. We can do everything on JSP which we can do with Servlet. In JSP we can add the Java code inside the HTML tags.


There are three service methods provided by JSP:
  1. public void jspInit()
  2. public void _jspService(HttpServletRequest request, HttpServletResponse response)
  3. public void jspDestroy()



Following is the Life-cycle of JSP :
  1. Parsing JSP : JSP page is first compiled for the syntax or other errors.
  2. Translation from JSP to Servlet : After successfully parsing, the JSP is translated to the Servlet or Java file.
  3. Compiling the Servlet : In this phase converted Servlet is compiled to class file.
  4. Class Loading : Loading the Servlet class into memory.
  5. Installation : Creating Servlet instance in memory.
For full blog about JSP Life Cycle visit FindNerd.
You can also find such more blogs related to Java at our Java Developers community section.
If you have any queries related to java,you can also post it on java questions and answers forum of FindNerd.

Monday, 3 August 2015

Validations in Angular JS

Hello all,
We usually validate our HTML form before submitting it as it's a good practice to do that and to validate the HTML form we can use JavaScript Validation in client side, or we can also use custom JQuery code where we can apply different type logics and Regex to validate the form.
As an example we have following code packet which demonstrate the Validation feature of AngularJS :
<body ng-app="myApp">    <div class="container signInMainDiv">        <div class="table-responsive form-group">            <div ng-controller="AddUserController">                <form name="htmlForm" id="htmlForm" role="form" style="border:none; box-shadow:none;" ng-submit="htmlForm.$valid && addFormDetails(formDetails)">
For more, view the full Blog about Validation in Angular JS visit FindNerd.
FindNerd gives users a special Desktop Recording tool to record and share programming problems with others, and also provide a fantastic platform in the form of forums to ask questions and provide answers of the questions posted on findnerd. Here the most searched topis are related to Android, HTML, iphone, Javascript question and Answers .