Configure HTML/JavaScript

Sunday, May 23, 2010

JavaScript ajax call using xmlHttpRequest and xmlHttpResponse

var xmlHttp = createXmlHttpRequestObject();

function createXmlHttpRequestObject() {
  var xmlHttp;
// if running Internet Explorer  if(window.ActiveXObject) {
    try {
      xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlHttp = false;
      }
    }
  } else { // if running Mozilla or other browsers    
    if(!xmlHttp && typeof ActiveXObject == "undefined") {
      try {
        xmlHttp = new XMLHttpRequest();
      } catch (e) {
        xmlHttp = false;
      }
    }
  }
// return the created object or display an error message  if (!xmlHttp) {
    alert("Error creating the XMLHttpRequest object.");
  } else {
    return xmlHttp;
  }
}


Tuesday, May 18, 2010

jave project arcteture

Hi,

Project Architecure means what are the tiers in our project with flow diagram.

supposoe our project contains five tiers like client tier ,presentation tier, Business tier,Integration tier,Data tier. then we draw the all tiers flow.

project approch is different from project architecure. sorry here i can't insert my own project architecure diagram. if any one want project architecure , project approch then mail me.

Client tier:

• IE Browser (default) from which the end user will access the application
• The request from the browser will be submitted to the Application Server using HTTP protocol.
• The Response from the presentation layer (struts framework) will be interpreted into html pages to view on the browsers.
• Presentation Tier:

Struts Framework with Tiles
• On Request from the browser, the appropriate Action Class handles the user request. The Action class then connects to the business tier via Service Business Delegate.
• Tiles have been used to create a set of pages with a consistent user interface (e.g.: the same navigation bar, header, footer, etc.).
• Taglibs are used for displaying tabular data (e.g. search results) in a consistent fashion, with pagination.
Business Delegate layer
• Enable the Struts Action classes to be unaware of underlying Session Beans
• Encapsulates the invocation of Service Locator to locate them.

Advantages of Struts
‘Centralized File-Based Configuration’, i.e. rather than hard-coding information into Java programs, many Struts values are represented in XML or property files.
This loose coupling means that many changes can be made without modifying or recompiling Java code.
Validation of the user entry fields in the jsps to be handled by entries in the validation.xml and defining validation rules in validator-rules.xml.
Internationalization of the static components of the screen as field and button labels, titles, error messages etc.
This approach also lets Java and Web developers to focus on their specific tasks (like implementing business logic, presenting certain values to clients.) without needing to know about the overall system layout.

Business Tier

• The Business Delegate identifies the business service class (the Session EJBs) and delegates client request to the EJBs. Internally, the session beans are shallow, and delegate all business logic requests to business logic POJOs, which in turn implement the actual functionality.
• The Business Logic POJOs encapsulate the server side business logic. They do not use Hibernate directly, but instead call upon Data Access Objects (DAO) to work with the model. Parameters and return values are modeled as Data Transfer Objects (DTO), and hence no Hibernate model classes will ever leave the DAO layer. The business logic is made available in the business service class, which increases maintainability and easy debugging, if necessary.

Hibernate/DB Tier
The DAOs encapsulates the database access. For all practical purposes, we are using Hibernate (v 2.1) as the OR mapping layer. This saves development time to write SQLs for executing insert and update statements, find by primary key etc. For each value object that directly or compositely represent a table in the database, we have Hibernate mapping files.
For some complex data retrieval, however we will be using raw SQLs (independent of database) from the DAOs and populate the Value Object POJOs. In those specific cases, the DAOs will be having direct access to the Databases using the available connection. The connection properties of the ‘DB Manager’, holding the data sources, direct the request to the appropriate database.

Issues that may rise of Hibernate
• Hibernate no longer supports dynamic proxies
• The Hibernate has issues using Microsoft's driver especially when using SqlServer2000. It appears that the failures are due to some strange handling of dates.
• Hibernate has issues with Informix Databases due to the way JDBC implementation is done in Informix.

keeps smiling and mailing

bora_srinivasarao@yahoo.co.in
Hyderabad

"HELP EVER HU

in reference to: Google (view on Google Sidewiki)

hi

Android Development


Android development is very easy now with Android Studio 2.0. Google guys changed almost everything they can to make the android development super fast and easy. The best part is lots of configuration are automated and you dont have to write or make configuration related changes to start porject.


Developing application in Android studio 2.0

Now a days developing android application is really easy, i remember those days when I started with eclipse and there were hell lot of bugs everywhere. 

Templates:


To start a new porject in android studion 2.0, you can go to the new project wizard and then you will get more options like which types of project you want to create, what layout you want to use, how your pplication will react to the UI, etc. Also they included new now a days device options as well. like if your app will run on android watch, tv etc.

if you are new to android development, you can get all kind of latest news and help at  developer.android.com.


Friday, May 14, 2010

code book

goooing to be realy amagin..

in reference to:

"still he"
- orkut - my orkut (view on Google Sidewiki)

waw its amaging and can be a new innovative way to communicating the web with google wave.

u guys can check the videos from youtube to use google wave both for developer and end users

in reference to: orkut - my orkut (view on Google Sidewiki)

Wednesday, April 28, 2010

android

is there anyone to help me to teach android and help me to make application i will pay for that

in reference to: Google (view on Google Sidewiki)

Saturday, April 17, 2010

yes google is the best

yes you are right,,

i m not ever finded the search engin like google..
it cant be compairable to others

in reference to: Google (view on Google Sidewiki)