Showing posts with label eclipse ide. Show all posts
Showing posts with label eclipse ide. Show all posts

May 02, 2017

'org.eclipse.jst.jee.server:your_apps_name' did not find a matching property error



'org.eclipse.jst.jee.server:your_apps_name' did not find a matching property error

These are not error , you just need to

check Publish module context on separate xml file

Option

after double clicking server

http://javabelazy.blogspot.in/

January 28, 2015

Java Spring MVC hello World Example in Eclipse


Java Spring Model View Controller Hello World Example in Eclipse


Description : In this post we are sharing only source code for java spring application, For theoretical note you can refer this site I could nt provide a better description on java spring than this. Please note the deployment descriptor (web.xml) where we had provide the name index.jsp as our welcome file.

index page (index.jsp)

<html>
<head>
 <title>Office Management System</title>
</head>
<body>
<a href="hello.html">Click here</a>
</body>
</html>

Deployment Descriptor (web.xml)

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
    <display-name>CfedOMS</display-name>
    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
 <servlet>
        <servlet-name>spring</servlet-name>
        <servlet-class>
            org.springframework.web.servlet.DispatcherServlet
        </servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>spring</servlet-name>
        <url-pattern>*.html</url-pattern>
    </servlet-mapping>
</web-app>


spring-servlet.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:p="http://www.springframework.org/schema/p"
    xmlns:context="http://www.springframework.org/schema/context"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://www.springframework.org/schema/context
        http://www.springframework.org/schema/context/spring-context-3.0.xsd">
       <context:component-scan base-package="net.cfed.oms.controller" />
   <bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
        <property name="viewClass"
            value="org.springframework.web.servlet.view.JstlView" />
        <property name="prefix" value="/WEB-INF/jsp/" />
        <property name="suffix" value=".jsp" />
    </bean>
</beans>

JSTL (Java Standard Tag Library) : Expression Language ( EL) makes it possible to easy access application data stored in java bean.
Format : ${expression}

hello.jsp

<html>
<head> <title> This is my First application in Java Spring MVC </title></head>
<body>  ${message} </body>
</html>

What and Why annotation in java ?
Annotation allows implemented class to be auto-detected during class path spanning.
format : @component

RequestMapping is most used annotation method in java spring. It is used to map web request to a specific handler method. Here ModelAndViewHelloWorld Method. This concept is similar to java jsp servlets

Controller it indicates that the annotated class is a controller i e a web controller. 

HelloworldController.java

package net.cfed.oms.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HelloWorldController {

    @RequestMapping("/hello")
    public ModelAndView helloWorld() {
        String message = "Hello, This is my first sample spring MVC project !";
        System.out.println(message);
        return new ModelAndView("hello", "message", message);
    }

}


Project structure


Why should i choose java spring ?
Once you configured java spring, you can easily work on the business logic of your application.

http://javabelazy.blogspot.in/

September 30, 2013

How to create javadoc using eclipse ide

How to create developer documentation for a java project


Documentation Comments are essential for every source code in industrial projects. Documentation comments represented by ( /** … */) are unique to java. You can create html developer document for your project once you properly comment your code. Here ,i am going to show you how to create javadoc for your project.

Create a java project in eclipse, Copy and paste the below code to your source folder
/**
* Filename :  ArithmeticOperations.java
* Author   :  belazy1987atgmail.com
* Date      :  September 19 1987
* Description : A java program that shows Basic Arithmetic Operations
*/

/**@author nick +Karthick Rajendran 
 * @version 1.0
*/
public class ArithmeticOperations {
/**  To store answers with double DataType
 */
private double answerDouble = 0.0d;
/**
 *   To store answers with float DataType
 */
private float answerFloat = 0.0f;
/** To store answers with int DataType
 */
private int ansInt = 1;
/** addition() is used to add two variables
 *  @param value_one  first parameter
 *  @param value_two  second parameter
 *  @return answerDouble  returns the sum of value_one and value_two
 */
private double addition(double value_one, double value_two) {
 answerDouble = value_one + value_two;
 return answerDouble;
}

/** subtraction() is used to subtract and return the result
 *  @param value_one first parameter
 *  @param value_two second parameter
 *  @return answerFloat returns the difference of value_one and value_two
 */
private float subtraction(float value_one, float value_two) {
 answerFloat = value_one - value_two;
 return answerFloat;
}

/** multiplication() is used to multiply two values
 *  and return the result
 *  @param value_one first parameter
 *  @param value_two second parameter
 *  @return ansInt returns the product of value_one and value_two
 */
private int multiplication(int value_one, int value_two) {
 ansInt = value_one * value_two;
 return ansInt;
}

/**division() is used to division
 *  and return the result
 *  @param value_one first parameter
 *  @param value_two second parameter
 *  @return ansInt returns the quotient after dividing value_one with value_two
 */
private int division(int value_one, int value_two) {
 ansInt = value_one / value_two;
 return ansInt;
}

/** showDetails() is used to display the output
 *  @param ansAdd  Output of addition
 *  @param ansSub  Output of subtraction
 *  @param ansMul  Output of multiplication
 *  @param ansDiv  Output of Division
 */
private void showDetails(double ansAdd, float ansSub, int ansMul, int ansDiv) {
 System.out.println(" Addition : " +ansAdd);
 System.out.println(" Subtraction : " +ansSub);
 System.out.println(" Multiplication : " +ansMul);
 System.out.println(" Division : "+ansDiv);
}

/**
 * main() function
 * @param str user can pass parameters to main through command prompt
 */
public static void main(String[] str) {
 ArithmeticOperations arithmeticOperation = new ArithmeticOperations();
 double ansAdd = arithmeticOperation.addition(10.0,20.0);
 float ansSub = arithmeticOperation.subtraction(20.8f,12.3f);
 int ansMul = arithmeticOperation.multiplication(200,10);
 int ansDiv = arithmeticOperation.division(100,10);
 arithmeticOperation.showDetails(ansAdd,ansSub,ansMul,ansDiv);
}

/**
 *  belazy1987atgmaildotcom
 */
}

read more 
 
 
Created a html document for the project you had coded 
 
 Thanking you.........

August 15, 2013

Software keys


AVG 8

key

VDCST-JDNDZ-BABPA-S8EBG-P7KK4-ZMNX



DREAMWEAVER MX


Sl No: WPD700-58202-88194-29915

4C85-200E-4005-0004-0000-3M00-0800-35X3-0000-404C-EXCC-1451  nero:7


Windows xp


Q7Q6W Q3846 RGDBM 6R883 3736G

YFKBB G996G VWGXY 2V3X8

Q7Q6W Q3846 RGDBM 6R883 3736G

Windows Vista


Ffp3t htkf2 4xymp kf8x9 mghkt

Photoshop CS

serial key
1131-1028-1537-2956-7072-0359

Microsoft Office


KGFVY-7733B-8WCK9-KTG64-BC7D8

Microsoft Office 2007 Product key

FOR OFFICE STANDARD 2007

CTKXX-M97FT-89PW2-DHKD3-74MYJ
KCBJJ-67B9Q-KQXF2-VQV2V-6TXJ3
4NJ39-D83K0-2HNS0-39OKD-4ZHJ8

FOR OFFICE HOME and STUDENT 2007

PHXQ7-GMKQ3-XPYRB-YXTVM-XXT73
B4MKP-KP9YP-7TBQ4-7T4XF-MTGWY
DDY79-433JV-2RXGX-MQFQP-PFDH8
KGFVY-7733B-8WCK9-KTG64-BC7D8
DDY79-433JV-2RXGX-MQFQP-PFDH8
WRGJQ-2J2HB-8XP8D-6J2YK-BMFFD
HX2HC-MJM6Q-4487F-23FMP-9VKV8
HX2DJ-36TJX-CRVRJ-C72Q8-CJTBQ
V82W3-BM72R-XRHWG-CP69F-4FPMT
VHGFG-FVMY3-HHP46-RXVDJ-8R6BY
TC2QP-QBCP7-WQ62V-WBF92-WWG73
WQ27D-PY77P-R9CQK-MCPPB-QGJYQ

FOR OFFICE PROFESSIONAL 2007

MTP6Q-D868F-448FG-B6MG7-3DBKT
T3PVR-XX42X-T49DW-WGBG6-9FT73
TT3M8-H3469-V89G6-8FWK7-D3Q9Q
RVRY7-9H6W3-VBGF7-M7GQF-2X7TB
BHFYK-9RTKR-RV3J6-X669J-XQ3Q8
GM3C4-HQQJV-4TGMX-3R8CP-G928Q
KGFVY-7733B-8WCK9-KTG64-BC7D8
XC84W-M642D-2QDWY-YTKMM-RWJQW
TQ7MT-BQTJD-V4MJ6-J6KT8-RP2VW
HCFPT-K86VV-DCKH3-87CCR-FM6HW
V9mtg-3gx8p-d3y4r-68bq8-4q8vd
KGFVY-7733B-8WCK9-KTG64-BC7D8
GM3C4-HQQJV-4TQMX-3R8CP-G928Q
MTP6Q-D868F-448FG-B6MG7-3DBKT
kxfdr-7ptmk-ykyhd-c8fwv-bbpvw

FOR OFFICE ENTERPRISE 2007

VCWD4-Q2HTM-VKT6B-7V8J3-28K38
M2BX2-HQKQF-Q9Q7K-F2JQH-MDGHW
FXDKB-XJKJP-9B79T-8CMPB-QG938
KGFVY-7733B-8WCK9-KTG64-BC7D8
D8Y66-3Y4GK-G6Y3C-8G7R9-JTDQ8
V9MTG-3GX8P-D3Y4R-68BQ8-4Q8VD
KGFVY-7733B-8WCK9-KTG64-BC7D8
W2jjw-4kydp-2ymkw-fx36h-qyvd8
Vb48g-h6vk9-wj93d-9r6rm-vp7gt
Hcfpt-k86vv-dckh3-87ccr-fm6hw

OFFICE ULTIMATE 2007

J67F8-BB7GM-8VPH2-8YMXP-K49QQ
M247G-3Y738-69GD7-V6CF8-9KH4G
M2QKF-KDQ4R-YHQKD-M4YYK-GPWVD
WRWWX-G9MMD-X4B8X-7JQP3-CMD93
RYC22-PRMXB-8HP8W-384PD-GXHX3
VM98J-C9X4C-MM7YX-93G64-BJMK3



avast : W3083976R9962A0912-ZZT6LA5J
download avast 2014


Corel Draw
download

http://belazy.blog.com/

June 18, 2012

Eclipse plugin for uml diagram

  Online uml2 plugin for eclipse


             Now let us take a look on software reverse engineering process.For that we need UML2 plugin. This post will tell you how to install UML2 eclipse plugin to your eclipse ide. Make it sure you are using the latest Eclipse IDE.


Steps

  1.  Start Eclipse
  2.  Navigate to help
  3.  Select software updates
  4.  Available software tabs
  5.  Add site and Enter the following url : http://downloads.myeclipseide.com/downloads/products/eworkbench/helios/enterprise-earlyaccess/

Thanking you......
          

Facebook comments