Thursday, July 26, 2012

How DWR sends engin.js & Util.js to clent browser?

1. When We are using DWR framework  we include engine.js , Util.js and our application specific js files in JSPs like this

Ex:

<%-- DWR script : added in center tile as these scripts are generated at run time--%>
       
       
       
<%-- DWR script --%>


2. if you look at our WEB-INF folder or WAR file we dont see engine.js or utils.js

3. These files are inside dwr.jar file which we calls DWR frawework. DWRServlet serves these JS files from JAR when request comes from browser

4. when browser requested engins.js ,  request goes into DWR Servlet


Web.xml



   
        dwr-invoker
        /dwr/*
   

   





Browser Request:

https://www.mysite.com/MYWEBAPP/dwr/engine.js




5. We can look at src code of DWR Frawework




package org.directwebremoting.servlet;

/**
 * A Handler that supports requests for engine.js
 * @author Joe Walker [joe at getahead dot ltd dot uk]
 */
public class EngineHandler extends BaseEngineHandler
{
    // File is served without additions so all code is in superclass
}










**
 * A Handler that supports requests for engine.js
 * @author Joe Walker [joe at getahead dot ltd dot uk]
 */
public class BaseEngineHandler extends FileJavaScriptHandler
{
    /**
     * Setup the default values
     */
    public BaseEngineHandler()
    {
        super(DwrConstants.PACKAGE_PATH + "/engine.js", DwrConstants.PACKAGE_PATH + "/copyright.txt");
    }
...
}




6. Obviously calculator.js is generated at run time by DWR Servlet and serves to browser


So Don't worry about engine.js / util.js in your web application folder

Sunday, July 22, 2012

Zodic signs - Rashulu

BIRTHSTAR - SIGN TABLE
Group of birth stars
Sign / Raasi
Aswani, Bharani & krithika 1st charan
ARIES / MESHA
Krithika 2,3,4 charans, Rohini & Mrugasira 1,2 charanas
Mrugasira 3,4 charanas, Arudra & Punarvasu 1,2,3 charanas
Punarvasu 4th charana, Pushyami & Aslesha
Magha, Purva phalguni& Uttara 1st charana
Uttara 2,3,4 charana, Hastha & Chittra 1,2 charana
Chittra 3,4 charana, Swathi & Vishaka 1,2,3 charanas
Vishaka 4 charana, Anuradha & Jyesta
Moola , Purvashada & Uttarasada 1 st charana
Uttarashada 2,3,4 charana ,Sravanam& Dhanitshta 1,2 charana
Dhanitshta 3,4 charana, Satabhisham& Purvabhadra 1,2,3 charana
Purvabhadra 4th charana, Uttarabhadra & Revathi
BIRTHDAY - SIGN TABLE
Birth Date & month
SIGN or RASI
MARCH 21 to APRIL 20
APRIL 21 to MAY 21
MAY 22 to JUNE 21
JUNE 22 to JULY 23
JULY 24 to AUGUST 23
AUGUST 24 to SEPTEMBER 23
SEPTEMBER 24 to OCTOBER 23
OCTOBER 24 to NOVEMBER 23
NOVEMBER 24 to DECEMBER 22
DECEMBER 23 to JANUARY 22
JANUARY 23 to FEBRUARY 20
FEBRUARY 21 to MARCH 20
PISCES / MEENA