Friday 26 December 2008

How to use tag with tag for dynamic variables

I had a specific requirement in my new project. The business functionality is to develop a simple screen with only 2 set of fields. One field with city name and other a drop down which will have list of country name and the default name in the drop down should be the country in which the city is displayed. The catch is the combination of cities are dynamic and the list of countries are static with almost 500 in the list. We can consider the city name & list of countries as a single row in the screen. I mean there will be that many combination of city and drop down country, be there as many products .

Example:

City Name Country Name
-----------------------------------------------------------------
Toronto Canada(this is the default from the list of 500)
London UK(this is the default from the list of 500)
.................etc

For this I have used the following

JSP code
----------------------------------------------------------------------------














-----------------------------------------------------------------------------

in the form there will be 2 arraylists. citiesArrayList and arrayListOfVOs and getter and setter along with the indexed getter for retrieving the countyVO from the arraylist.

I found this very useful because there is not even a single javascript in the code.
Hope this article will be useful for people who are hesitate to use javascript in their code.

Wednesday 19 November 2008

How to use tiles ?

Adding Tiles to Your Application

Here are the steps necessary for adding Tiles to your Struts application:

1. Add the Tiles Tag Library Descriptor (TLD) file to the application.
2. Create layout JSPs.
3. Update existing JSPs to use layouts.
4. Create a tiles-defs.xml file.
5. Update forward definitions in and add the Tiles plug-in to the struts-config.xml file.
6. Repackage and run the updated application.

how to start with struts in your project?

http://www.java-tips.org/other-api-tips/struts/how-to-use-struts-framework.html

CSS in table

What does the Table Option Tag td class do

class="xxxx">;>;

Indicates that the table cell can be styled with a CSS rule targeting the ".xxxx" selector.

visit  http://www.w3c.org/Style/CSS/


Friday 14 November 2008

JVMDG217: Dump Handler is Processing a Signal - Please Wait.

I am getting the following error while starting my application.

JVMDG217: Dump Handler is Processing a Signal - Please Wait.
JVMDG303: JVM Requesting Java core file
JVMDG304: Java core file written to C:\Program Files\IBM\Rational\SDP\6.0\javacore.20081113.172339.652.txt
JVMDG215: Dump Handler has Processed Exception Signal 11.

Trying to resolve the issue. I will post the resolution once I solve the issue.

Thursday 13 November 2008

Travel Tips and Details

Please visit site http://members.virtualtourist.com/m/ce3e8/

Travel Tips and Details

Please visit site

Wednesday 12 November 2008

Banned products



 


Dangerous Shampoo!!!
Banned By Dubai Government!!


www.FunAndFunOnly.net

www.FunAndFunOnly.net

www.FunAndFunOnly.net

www.FunAndFunOnly.net



www.FunAndFunOnly.net

www.FunAndFunOnly.net
Sodium Laureth Sulfate
 

SLS

CLEAR
 , FRUCTIS ,
Vo5
PalmolivePaul Mitchell,L'OrealBody Shop

All these Shampoos use a chemical called SLS which is actually 
a floor cleaner. They are used so as to produce more foam. 

Imagine what a floor cleaner can do to you hair and scalp. It will damage the very roots of your scalp.
Check out for SLS in toothpaste too!!! 
Use the ones which are free from this extremely harmful chemical.
Type in 'SLS Free Shampoo' or 'SLS Free Toothpaste' in Google.Com to get a list of companies selling safe products



Attention please.....


Don't eat Kurkure because it contains high amount of plastic if U don't believe burn Kurkure n U can see plastic melting. Please forward to all!!!!!!!!!!! 
Inform all whom you think requires this message as they eat Kurkure. 

News report from Times of India

Avoid these tablets they are very dangerous 
§ D Cold 
§ Vicks Action- 500 
§ Actifed 
§ Coldarin 
§ Cosome 
§ Nice 
§ Nimulid 
§ Cetrizet-D 


They contain 
Phenyl- Propanol -Amide PPA.Which causes strokes, and these tablets are banned by FDA in U..S.

 


Cotton Ear Buds... (Must read it)

Please do not show sympathy to people selling buds on roadside or at signals.....
Just wanted to warn you people not to buy those packs of ear buds you get at the roadside. It's made from cotton that has already been used in hospitals. 
They take all the dirty, blood and pus filled cotton, wash it, bleach it and use it to make ear buds. So, unless you want to become the first person in the world to get Herpes Zoster Oticus (a viral infection of the inner, middle, and external ear) of the ear and that too from a cotton bud, DON'T BUY THEM! 


Please forward to all. This may be helpful for someone..........

Satyam layoff again

India's major IT sector satyam computers laying off more employees. This has been reported by few of my friends in hyderabad. However there has not been any offical information on this. The expected or target number is 10,000. 

Wednesday 29 October 2008

viswanathan anand retains the world champion title. The 11th game ended in a draw which took him an unbeaten lead of 6.5-4.5 in the 12 game games. congratulation anand. we all are proud of you.

Saturday 22 March 2008

tennis: Is this end of Roger's Era?

the world number one again lost! it's disappointing for Federer as well as fans. In pacific open le lost to mardy fisd(6-3,6-2)

Tuesday 8 January 2008

ICC's new rules......

ICC Amendments to the cricket rule book:

(1) Ricky Ponting (THE TRULY GENUINE CRICKETER OF THE CRICKET ERA AND WHOSE INTEGRITY SHOULD NOT BE DOUBTED) should be considered as the FOURTH UMPIRE. As per the new rules, FOURTH UMPIRE decision is final and will override any decisions taken by any other umpires. ON-FIELD umpires can seek the assistance of RICKY PONTING even if he is not on the field.

This rule is to be made, so that every team should understand the importance of the FOURTH UMPIRE.

(2) While AUSTRALIAN TEAM is bowling, If the ball flies anywhere close to the AUSTRALIAN FIELDER(WITHIN 5 metre distance), the batsman is to be considered OUT irrelevant of whether the catch was taken cleanly or grassed. Any decision for further clarification should be seeked from the FOURTH UMPIRE. This is made to ensure that the cricket is played with SPORTIVE SPIRIT by all the teams.

(3) While BATTING, AUSTRALIAN players will wait for the ON-FIELD UMPIRE decisions only (even if the catch goes to the FIFTH SLIP as the ball might not have touched the bat). Each AUSTRALIAN batsman has to be out FOUR TIMES (minimum) before he can return to the pavilion. In case of THE CRICKETER WITH INTEGRITY, this can be higher.

(4) UMPIRES should consider a huge bonus if an AUSTRALIAN player scores a century. Any wrong decisions can be ignored as they will be paid huge bonus and will receive the backing of the AUSTRALIAN team and board.

(5) All AUSTRALIAN players are eligible to keep commenting about all players on the field and the OPPONENT TEAM should never comment as they will be spoiling the spirit of the AUSTRALIAN team. Any comments made in any other language are to be considered as RACISM only.

(6) MATCH REFREE decisions will be taken purely on the AUSTRALIAN TEAM advices only. Player views from the other teams decisions will not be considered for hearing. MATCH REFEREES are to be given huge bonus if this rule is implemented.

(7) NO VISITING TEAM should plan to win in AUSTRALIA. This is to ensure that the sportive spirit of CRICKET is maintained.

(8) THE MOST IMPORTANT RULE: If any bowler gets RICKY PONTING -THE UNDISPUTED CRICKETER WITH INTEGTIRY IN THE GAME OF CRICKET more than twice in a series, he will be banned for the REST OF THE SERIES. This is to ensure that the best batsman/Captain plays uninterrupted to break records and create history in the game of CRICKET.