Mock tests, Interview questions, Tutorials and Tech news
 
 

Archive

Posts Tagged ‘jsp’

Mixed Case URL in link

May 14th, 2010 Vinay No comments

Programmers when creating url and page name sometimes create mixed case URL for eg

http://www.skill-guru.com/skill/login/testDetails/12/testName/SCJP-6-Mock-Practice-Test

Now this may be a good programming practice but it is not a good practice from user perspective.  Mixed case URLs are an absolute no-no, as Unix and Linux servers are case sensitive. Having mixed case URLs drastically increases the possibility of typos . It is always difficult for users to remember the url (if they can).

So try to keep all your url’s in lower case.

Categories: Programming / tutorials Tags: , ,

Invoking browser functions with JavaScript

May 14th, 2010 fanand 2 comments

Browser functionality can be disabled using the JavaScript. JavaScript has the ability to capture and handle the key events. We will look at couple of examples on how to trigger browser functionality using Java script.

Disabling new page event and ctr key event in browser

Following is the example which shows how to disable the ctrl + N (new page event) and back button in the browser.

<html>

<body onkeydown=”return
fnDisableNewPage(event)” >

<p>Test</p>

<script> Read more…

Selenium – Web application testing tool

May 12th, 2010 fanand 9 comments

What is Selenium ?

Selenium is an open source, robust set of tools that supports rapid development of test automation for web-based applications. This tool is primarily developed in Java Script and browser technologies and hence supports all the major browsers on all the platforms. Most of the time, we will not need to change our scripts for them to work on other platforms. Selenium provides a record/playback tool for authoring tests without learning a test scripting language.

Selenium Components

There are three variants of Selenium, which can be used in isolation or in combination to create complete automation suite for the web applications. Each one has a specific role in aiding the development of web application test automation.

Categories: Programming / tutorials Tags: , ,

Are the browsers ready for HTML 5 ?

May 12th, 2010 Vinay No comments

We have heard a lot about HTML5 in last couple of weeks. Apple does not want to go with flash technology and are adopting HTML5 as the new standard.  Scribd has ditched flash in favor of HTML5.

Sounds pretty exciting huh !!

So let us dump what we have and start developing in HTML5.

Nope not so fast . Hold on to your hour horses. Yes it is true that HTML5 is becoming the new standard . But at this stage neither all the browsers are ready for HTML5 , nor the clients would be ready with new browsers. So you might have a new website/application built in HTML 5 , using new tags but the clients are still with IE6 !!

You do not want to land in this situation.

Aditya Yadav’s  interview on Info q Deploying HTML 5, talks about some of issues around this new standard and he has put together an excellent table detailing compatibility level of each browser with HTML5 features.

Categories: Technology Tags: ,

Introduction to JavaFX

April 29th, 2010 fanand 5 comments

Overview

JavaFX is a rich client platform for building cross-device applications and content. Designed to enable easy creation and deployment of rich internet applications (RIAs) with immersive media and content, the JavaFX platform ensures that RIAs look and behave consistently across diverse form factors and devices.

The JavaFX1.2 platform release includes the following components:

  • JavaFX SDK which includes the JavaFX compiler and runtime tools, graphics, media, web services, and rich text libraries to create RIAs for the desktop, browser and mobile platforms.
  • NetBeans IDE for JavaFX which provides a sophisticated integrated development environment for building, previewing, and debugging JavaFX applications. The editor features a drag-and-drop palette to quickly add JavaFX objects with transformations, effects and animation. This IDE also comes with its own set of Building Block samples and the JavaFX Mobile Emulator, a mobile phone simulator.
  • JavaFX Production Suite is a suite of tools and plugins that enable designers to export graphical assets to JavaFX applications.  (Example:: JavaFX Plugin for Adobe Photoshop and JavaFX Plugin for Adobe Illustrator)

JavaFX Vs Swing Read more…

Categories: Programming / tutorials Tags: , ,

Firebug cheat Sheet

April 20th, 2010 Vinay No comments

Some very helpful shortcuts and commands when working with firebug. Thanks to Duvet-Dayez for creating this cheat sheet.

Firebug cheat sheet

Categories: Programming / tutorials Tags: ,

JQuery Validation Tutorial

April 18th, 2010 fanand 11 comments

This JQuery CSS validation tutorial explain how to do client-side validation using jQuery’s validation plugin. This is how the validation snapshot of the validation page. The link to download the code is at end of this tutorial.

snapshot

Read more…

Categories: Programming / tutorials Tags: , , ,

Difference between RequestDispatcher forward method and HttpServletResponse sendRedirect method

April 15th, 2010 Vinay No comments

resonpse.sendRedirect() will forward the request to a new location. You can see the new location in the url of the browser. resonpse.sendRedirect() will direct the request to new location.

for eg resonpse.sendRedirect(“http://www.yahoo.com”) will take you to www.yahoo.com and you can see this address change on your browser address bar.

Another example is in Skill-Guru.com If we do <%response.sendRedirect(“login/homepage.faces”);%> in index,jsp, the request will be directed a new page and the url will change to

http://www.skill-guru.com/skill/login/homepage.faces

The sendRedirect method of HttpServletResponse actually modifies response header and tells the browser (the client) that the requested page is relocated and header also contains the new location of the page Read more…

Categories: Programming / tutorials Tags: ,
Get Adobe Flash playerPlugin by wpburn.com wordpress themes