Mar 13, 2010

What's AJAX ?

AJAX (Asynchronous JavaScript and XML) is a newly coined term for two powerful browser features that have been around for years, but were overlooked by many web developers until recently when applications such as Gmail, Google Suggest, and Google Maps hit the streets.

======================
Find your friends... Free!
http://saalram.com

======================

Asynchronous JavaScript and XML, or Ajax (pronounced "Aye-Jacks"), is a web development technique for creating interactive web applications using a combination of  XHTML (or HTML) and CSS for marking up and styling information. (XML is commonly used, although any format will work, including preformatted HTML, plain text, JSON and even EBML).
The Document Object Model manipulated through JavaScript to dynamically display and interact with the information presented
The XMLHttpRequest object to exchange data asynchronously with the web server. In some Ajax frameworks and in some situations, an IFrame object is used instead of the XMLHttpRequest object to exchange data with the web server.
Like DHTML, LAMP, or SPA, Ajax is not a technology in itself, but a term that refers to the use of a group of technologies together. In fact, derivative/composite technologies based substantially upon Ajax, such as AFLAX, are already appearing.
Ajax applications are mostly executed on the user's computer; they can perform a number of tasks without their performance being limited by the network. This permits the development of interactive applications, in particular reactive and rich graphic user interfaces.
Ajax applications target a well-documented platform, implemented by all major browsers on most existing platforms. While it is uncertain that this compatibility will resist the advent of the next generations of browsers (in particular, Firefox), at the moment, Ajax applications are effectively cross-platform.
While the Ajax platform is more restricted than the Java platform, current Ajax applications effectively fill part of the one-time niche of Java applets: extending the browser with portable, lightweight mini-applications.

Ajax isn't a technology. It's really several technologies, each flourishing in its own right, coming together in powerful new ways. Ajax incorporates:
* standards-based presentation using XHTML and CSS;
* dynamic display and interaction using the Document Object Model;
* data interchange and manipulation using XML and XSLT; * asynchronous data retrieval using XMLHttpRequest;
* and JavaScript binding everything together.





What are the different scope values for the ?


The different scope values for <jsp:useBean> are:
  • page
  • request
  • session
  • application

========================
Publicize Yourself... Free!
http://saalram.com
=======================



Why are JSP pages the preferred API for creating a web-based client program?

Because no plug-ins or security policy files are needed on the client systems(applet does). Also, JSP pages enable cleaner and more module application design because they provide a way to separate applications programming from web page design. This means personnel involved in web page design do not need to understand Java programming language syntax to do their jobs.
 
************************************
Publicize Yourself... Free!
http://saalram.com
************************************



What is difference between custom JSP tags and beans?

Custom JSP tag is a tag you defined. You define how a tag, its attributes and its body are interpreted, and then group your tags into collections called tag libraries that can be used in any number of JSP files. Custom tags and beans accomplish the same goals — encapsulating complex behavior into simple and accessible forms. There are several differences:

=============================
Publicize Yourself... Free!
http://saalram.com
=============================

  • Custom tags can manipulate JSP content; beans cannot.
  • Complex operations can be reduced to a significantly simpler form with custom tags than with beans.
  • Custom tags require quite a bit more work to set up than do beans.
  • Custom tags usually define relatively self-contained behavior, whereas beans are often defined in one servlet and used in a different servlet or JSP page.
  • Custom tags are available only in JSP 1.1 and later, but beans can be used in all JSP 1.x versions.






What are the implicit objects? List them.

Certain objects that are available for the use in JSP documents without being declared first. These objects are parsed by the JSP engine and inserted into the generated servlet. The implicit objects are:

==========================
Publicize Yourself... Free!
http://saalram.com
==========================

  • request
  • response
  • pageContext
  • session
  • application
  • out
  • config
  • page
  • exception


What’s the difference between forward and sendRedirect?

When you invoke a forward request, the request is sent to another resource on the server, without the client being informed that a different resource is going to process the request. This process occurs completely with in the web container And then returns to the calling method. When a sendRedirect method is invoked, it causes the web container to return to the browser indicating that a new URL should be requested.

====================
Publicize Yourself... Free!
http://saalram.com
====================

 Because the browser issues a completely new request any object that are stored as request attributes before the redirect occurs will be lost. This extra round trip a redirect is slower than forward.





How is JSP used in the MVC model?

JSP is usually used for presentation in the MVC pattern (Model View Controller ) i.e. it plays the role of the view. The controller deals with calling the model and the business classes which in turn get the data, this data is then presented to the JSP for rendering on to the client.

===========================
Bring your business high... Free!
http://saalram.com
===========================


What is a translation unit?

JSP page can include the contents of other HTML pages or other JSP files. This is done by using the include directive. When the JSP engine is presented with such a JSP page it is converted to one servlet class and this is called a translation unit, Things to remember in a translation unit is that page directives affect the whole unit, one variable declaration cannot occur in the same unit more than once, the standard action jsp:useBean cannot declare the same bean twice in one unit.
 
============================
Publicize Your Business... Free!
http://saalram.com
============================


What are the lifecycle phases of a JSP?

JSP page looks like a HTML page but is a servlet. When presented with JSP page the JSP engine does the following 7 phases.

====================
Publicize Yourself... Free!
http://saalram.com
====================

  1. Page translation: -page is parsed, and a java file which is a servlet is created.
  2. Page compilation: page is compiled into a class file
  3. Page loading : This class file is loaded.
  4. Create an instance :- Instance of servlet is created
  5. jspInit() method is called
  6. _jspService is called to handle service calls
  7. _jspDestroy is called to destroy it when the servlet is not required.






What is JSP? Describe its concept.

JSP is a technology that combines HTML/XML markup languages and elements of Java programming Language to return dynamic content to the Web client, It is normally used to handle Presentation logic of a web application, although it may have business logic.

======================================
Publicize Yourself... Free!
http://saalram.com
======================================


Mar 9, 2010

Re: can you please advertise my website?

Hi Sergios,

Ya sure!

You can place two kind of adds in http://saalram.com.

1.  First one is page peel, corner side ads on saalram.com. You have to send me your Ad in "jpg" and it will be placed for $0.0 cost.
     Please check http://saalram.com/free_ads.jsp link to make an efficient and attractive Ads.

2. Second one is "Ads PopUp" box and will be popped up automatically (100% Visibility) once page gets loaded. Text Ads (150 charecters) only will be placed here for $2.00/day. Just like how saalram is posted its message.

Please choose your plan and send us your Ad as soon as possible. Your Ad will be placed on Saalram.com website from 10Mar2010 9.00PM to 11Mar2010 9.00 PM.

Regards,
Saalram.com


2010/3/8 Sergios Charalambous <charalambous7@hotmail.com>
i writing to you because i have a website for programming and making websites http://www.programmer.hostzi.com and i want to make an advertisment. do you accept to make to place my add in your website? what should i send you?
 


Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now.



--
====================
Publicize yourself ... Free!
http://saalram.com
====================

Saalram
Publicize yourself ...
http://saalram.com

Free !!!


Place your Ad here - Free!!!
just drop us a mail ... saalram.service@gmail.com

Free !!!