TechnoBuzz

A Techno Blog, mainly about Java

web 2.0 conference

In Raleigh, I got a chance to attend IBM’s technical briefing on web 2.0 .

For now, will just list various bits of info that I will organize later.

QEDWiki (Quick and easy design) . Assembly : “QEDWiki is a unique Wiki framework in that it provides both Web users and developers with a single Web application framework for hosting and developing a broad range of Web 2.0 applications.”

Damia . Feeds: “provides easy-to-use tools that developers and IT users alike can use to quickly assemble data feeds from the Internet and a variety of enterprise data sources. The benefits of this service include the ability to aggregate and transform a wide variety of data or content feeds, which can be used in enterprise mashups.”

Mashup Hub. Tag : “Mashup Hub provides two broad areas of support: feed generation for enterprise data sources and a catalog of feeds and user interface (UI) widgets.”

Info 2.0

Many eyes

Baby name wizard

gather.com

second life

strike iron

gold corp

zoho

zoot

September 14, 2007 Posted by | AJAX, Blogging, J2EE, NC, Open Source, SOA, Web/Tech | Leave a comment

Speak Dojo

what is dojo?

Dojo is an Open Source JavaScript UI toolkit. It makes writing JavaScript easier, building great interfaces faster, and deploying dynamic UIs at scale much easier. The foundation of Dojo is “Dojo Base”, a single tiny library which contains Ajax, event handling, effects, blazing fast CSS queries, language utilities, and a lot more. On top of this Base, the rest of Dojo Core adds high-quality facilities for Drag and Drop, extended forms of Ajax and I/O, JSON-RPC, internationalization, and back-button handling.

You can use the div tag to define widget locations and Dojo will place the widget there either during page load or in response to events.

dojo book 0.4APIreference documentationDojo jot wikidojo toolkit home

JavaPassion PDF has 86 pages of info.

What is JSON?

(Using Dojo and JSON to Build Ajax Applications article ) – JSON is a Java library that helps convert Java objects into a string representation. This string, when eval()ed in JavaScript, produces an array that contains all of the information that the Java object contained. JSONObject class , JSONArray class “- Dojo provides an abstraction layer for invoking JSON-RPC requests”

json over xml?

IBM Paper: “JSON is built on two structures:

  1. A collection of name/value pairs. In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array.
  2. An ordered list of values. In most languages, this is realized as an array, vector, list, or sequence

JSON-RPC is a lightweight remote procedure call protocol in which JSON serializes requests and responses

The request is a single object with three properties:

  • method – A string containing the name of the method to be invoked.
  • params – An array of objects to pass as arguments to the method.
  • id – The request ID. This can be of any type. It is used to match the response with the request that it is replying to.

When the method invocation completes, the service must reply with a response. The response is a single object with three properties:

  • result – The object that was returned by the invoked method. This must be null, in case there was an error invoking the method.
  • error – An error object if there was an error invoking the method. It must be null, if there was no error.
  • id – This must be the same ID as the request it is responding to.

A notification is a special request that does not have a response. It has the same properties as the request object with one exception:

id – Must be null

Using Dojo and JSON to Build Ajax Applications article: Dojo libraries are organized in packages just like Java code. For this example, we will need to import two packages.

The dojo.io package contains classes that allow us to make HTTP requests using protocols such as XMLHTTPTransport.

The dojo.event package is designed to provide a unified event system for DOM and programmatic events.

The dojo.event.connect() method allows you to associate a handler for the onclick event for myButton:

function onLoad() {

   var buttonObj = document.getElementById("myButton");

   dojo.event.connect(buttonObj, "onclick",

          this, "onclick_myButton");

  }  function onclick_myButton() {

   var bindArgs = {

    url: "welcome.jsp",

    error: function(type, data, evt){

     alert("An error occurred.");

    },

    load: function(type, data, evt){

     alert(data);

    },

    mimetype: "text/plain",

    formNode: document.getElementById("myForm")

   };

   dojo.io.bind(bindArgs);

  }

The magical dojo.io.bind() function is where the power lies. It takes as argument bindArgs, an array of name/value pairs. In this example, we specify five pairs:

  1. url: The URL to make the request to.
  2. mimetype: The response type expected.
  3. load: Code to execute upon success.
  4. error: Code to execute upon error.
  5. formNode: The ID of the form whose fields to submit as parameters to the URL.

Once the call to dojo.io.bind(bindArgs) is made,depending on whether the request encountered any errors, either the load or error code is executed. Both load and error take three arguments:
type
: The type of function; it will always be set to load for load() and error for error().
data
: The response received. If mimetype is specified as text/plain, data contains the raw response. If, however, text/json is used, data contains the value of eval('(' + responseReceived + ')'), where responseReceived is what the call returned.

evt: The event object.

July 21, 2007 Posted by | AJAX | Leave a comment

Design choices and Tools roundup

softarc – the anti- experienced Coding Architect

Using NetBeans Open Source Toolbox , and More Netbeans

You are doing more modeling than you think

July 2, 2007 Posted by | J2EE, SW Tools | 1 Comment

CM is made of what?

http://devlicio.us/blogs/derik_whittaker/archive/2007/05/09/questions-every-candidate-should-ask-a-potential-new-employer.aspx

June 25, 2007 Posted by | Uncategorized | Leave a comment

Just Say No

“I am suggesting that there are those around us who are “serial committers” – they always say yes and rarely say no, even when they should.  These individuals become so engulfed by the shear number of commitments that they have made that it becomes impossible for them to execute on any of them, at least not effectively.”

http://cjhemp.wordpress.com/2007/04/28/promise-based-management/

June 25, 2007 Posted by | Uncategorized | Leave a comment

Practices are way to Go

http://drdobbs.com/dept/architect/198000264: “”

June 25, 2007 Posted by | Uncategorized | Leave a comment

Agile Software Process

AMIS on Deliver valuable software: “Other posts about the AGILE Principles soon to come:
1. Our highest priority is to satisfy the customer through early and continuous delivery of valuable software. (This one).
2. Welcome changing requirements, even late in development. Agile processes harness change for the customer’s competitive advantage.
3. Deliver working software frequently, from a couple of weeks to a couple of months, with a preference to the shorter timescale.
4. Business people and developers must work together daily throughout the project.
5. Build projects around motivated individuals. Give them the environment and support they need, and trust them to get the job done.
6. The most efficient and effective method of conveying information to and within a development team is face-to-face conversation.
7. Working software is the primary measure of progress.
8. Agile processes promote sustainable development. The sponsors, developers, and users should be able to maintain a constant pace indefinitely.
9. Continuous attention to technical excellence and good design enhances agility.
10. Simplicity–the art of maximizing the amount of work not done–is essential.
11. The best architectures, requirements, and designs emerge from self-organizing teams.
12. At regular intervals, the team reflects on how to become more effective, then tunes and adjusts its behavior accordingly.

Forget those fancy tools, and try just enough information in requirement gathering.

June 8, 2007 Posted by | Patterns & UML, SW Tools, Web Design | Leave a comment

thats why they call it work

The Furious Purpose has a good outline on what makes an ideal software job.

  • The Team
  • The Process
  • The Company
  • The Product
  • The Technology
  • The Location (i.e. work at home)

For me, having a software quality plan in place is what you would like to see. Just saw this free (without customizations) for managing the software development process.

Also, collaboration is key for a job where people share knowledge and experiences so that you don’t have to reinvent the wheel everytime. Like this here wiki.

May 31, 2007 Posted by | SW Tools | Leave a comment

Struts Next

More info On Struts2

Tutorial

I few months back I experimented with Struts2 and WebWorks

and then some

Here is a wiki entry i created on site.

http://cwiki.apache.org/confluence/display/S2WIKI/Sample+Applications+with+Java+1.4.x

May 29, 2007 Posted by | Struts | Leave a comment

Jasper Soft Open Source News

Business Intelliegence Tool  JasperETL – “JasperETL will be available in Open Source and Professional editions, and was developed through a technology partnership with Talend. Led by a team of veteran data integration industry experts, Talend is the first open source software provider for data integration tools.”

ETL is an essential tool that guarantees consistency and fluidity of information in increasingly diverse IT systems. At the center of the decision- making process, ETL allows organizations to move, cleanse, standardize and transform data according to their business needs. JasperETL can be used for both analytic decision support system tasks such as updating data warehouses or marts, as well as for operational solutions such as data consolidation, duplication, synchronization, quality, migration, and change data capture. Performance tests indicate performance up to 50% faster than other leading commercial ETL tools.

JasperETL Open Source edition is available immediately direct from JasperSoft

January 31, 2007 Posted by | Open Source, SW Tools | Leave a comment

Brightcove

It seems the video hosting service that AOL uses has a bunch of tecnology based presentations:

Technorati Profile

January 16, 2007 Posted by | Web/Tech | Leave a comment

Happy New Year

Wow, I am glad to see 2007 here.

As always, New Years Day consists of a lot of  football.

January 1, 2007 Posted by | Sports | Leave a comment

Tech in Politics

John Edwards announces . That’s a first.

On of the first memories I have from my childhood is  when Nixon stepped down and Ford took the reigns. I did not know about the UNC connection with Gerald Ford til recently. I always heard that Ford was some sort of good athlete.

December 31, 2006 Posted by | Current Affairs | Leave a comment

Castor similar to jaxB

http://www.castor.org/ and get full download where i placed it here

C:/java/castor-1.0.5

C:\java\castor-1.0.5\src>ant jar

put castor jars from C:\java\castor-1.0.5\dist and place in C:/java/castor-1.0.5/lib

C:/java/castor-1.0.5/src/examples/SourceGenerator

test.bat

http://www.castor.org/javadoc/org/exolab/castor/builder/SourceGeneratorMain.html

%JAVA% -cp %CP% org.exolab.castor.builder.SourceGeneratorMain -i invoice.xsd -f -binding-file bindingInvoice.xml

JavaDoc

Marshalling – is the process of traversing a content tree and
writing an XML document that reflects the tree’s content.
org.exolab.castor.xml.Marshaller

Unmarshalling –  is the process of reading an XML document and constructing a content tree of Java content objects.org.exolab.castor.xml.Unmarshaller

example

It has been a while since I got a chance to look at Struts 2 . At the time I was interested in how to get jars going with JDK 1.4.2.

December 25, 2006 Posted by | XML | Leave a comment

links for 2006-12-13

December 12, 2006 Posted by | Uncategorized | Leave a comment

Spring Experience in Blogs

Looks as if I missed a great place to attend a Java conference known as the Spring Experience

The Spring Experience  schedule looks pretty good.

Related: whats-new-and-cool-in-spring-20

December 11, 2006 Posted by | Spring | Leave a comment

links for 2006-11-30

November 29, 2006 Posted by | Uncategorized | Leave a comment

EL

jstl provides use of the EL.

JSP 2.0 includes EL (Expression language) : "Personally I use the EL
extensively in all my JSP projects and I’ll never go back to custom tags or
scriptlets for showing the value of a request-scoped variable."
http://weblogs.java.net/blog/jfalkner/archive/2003/10/blarg_3_about_t.html

November 28, 2006 Posted by | Web Design | Leave a comment

links for 2006-11-27

November 26, 2006 Posted by | Uncategorized | Leave a comment

Struts2 Samples

I downloaded Struts2 (2.0.1) for first time after experimenting with webworks.

My experience at this point with struts2/webworks is limited.

I figured I would start from scratch rather than migrating some old code.

C:\java\struts2\struts-2.0.1\apps
The sample apps they have are
struts2-blank-2.0.1.war
struts2-mailreader-2.0.1.war
struts2-portlet-2.0.1.war
struts2-showcase-2.0.1.war

User List

Contents of  struts2-blank-2.0.1 war (folders in bold):

src
example
— ExampleSupport.java:    ExampleSupport extends com.opensymphony.xwork2.ActionSupport
— HelloWorld.java: HelloWorld extends ExampleSupport
– struts.properties: struts.devMode = true
                                  struts.enable.DynamicMethodInvocation = false

– struts.xml:  <!DOCTYPE struts PUBLIC
                     "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
                     "http://struts.apache.org/dtds/struts-2.0.dtd"&gt;
                   
… <include file="example.xml"/>

– example.xml: <!DOCTYPE struts PUBLIC
                     "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
                     "http://struts.apache.org/dtds/struts-2.0.dtd"&gt;
                   
<package name="example" namespace="/example" extends="struts-default">
                        

<action name="HelloWorld" class="example.HelloWorld">
                            <result>/example/HelloWorld.jsp</result>
                        </action>
                       <action name="Login!*" method="{1}" class="example.Login">
                            <result name="input">/example/Login.jsp</result>
                           <result type="redirect-action">Menu</result>
                      </action>
                      <action name="*" class="example.ExampleSupport">
                            <result>/example/{1}.jsp</result>
                    </action>
WebContent
WEB-INF

-lib

— commons-collections-3.1

— freemarker-2.3.4

— spring-aop-1.2.8

— spring-context-1.2.8

— spring-web-1.2.8

— struts2-core-2.0.1

— commons-logging-1.0.4

— ognl-2.6.7

— spring-beans-1.2.8

— spring-core-1.2.8

— struts2-api-2.0.1

— xwork-2.0-beta-1
example

The Struts 2  home page states the Struts 2 requires  Java 5. However, an alternate set of jars for  Java 1.4.x are available.  The challenge here is for people using Java 1.4.X is that the sample apps  come with the Java 5 jars.The java 4 jars can be found here.  I extracted them to here:

C:\java\struts2\struts-2.0.1\j4\

But, the only file I needed from here was struts2-extras-j4-2.0.0.jar .

copy C:\java\struts2\struts-2.0.1\j4\struts2-extras-j4-2.0.0.jar
C:\java\eclipse\workspace\struts2-blank-2.0.1\WebContent\WEB-INF\lib

as I got the backport files from the nightlies:

http://people.apache.org/builds/jakarta-struts/nightlies/2.0.x/java-1.4/backport/

which i copied to

C:\java\eclipse\workspace\struts2-blank-2.0.1\WebContent\WEB-INF\lib

Then i modified the translate.bat as follows:

java -jar retrotranslator-transformer-1.0.8.jar -srcjar struts2-core-2.0.1.jar -destjar struts2-core-j4-2.0.1.jar
java -jar retrotranslator-transformer-1.0.8.jar -srcjar struts2-api-2.0.1.jar -destjar struts2-api-j4-2.0.1.jar 
java -jar retrotranslator-transformer-1.0.8.jar -srcjar xwork-2.0-beta-1 -destjar xwork-2.0-j4.jar

The key thing is after the translate takes place to remove the following files:

  • struts2-core-2.0.1.jar
  • struts2-api-2.0.1.jar
  • xwork-2.0-beta-1

Again, a Java 5 version of struts2-extras-j4-2.0.0.jar was not in the struts2-blank-2.0.1 war.
In Summary, my lib folder contains the following jars for 1.4.x:

— commons-collections-3.1
—commons-beanutils-1.6
— commons-digester-1.6
— commons-logging-1.0.4

— freemarker-2.3.4

— spring-aop-1.2.8

— spring-context-1.2.8

— spring-web-1.2.8

— retrotranslator-runtime-1.0.8
— retrotranslator-transformer-1.0.8

— ognl-2.6.7

— spring-beans-1.2.8

— spring-core-1.2.8

— struts2-core-j4-2.0.1

— struts2-api-j4-2.0.1

— xwork-2.0-j4
—struts2-extras-j4-2.0.0
— backport-util-concurrent
— translate.bat

Refer to this issue here

November 24, 2006 Posted by | Struts | Leave a comment

links for 2006-11-23

November 22, 2006 Posted by | Uncategorized | Leave a comment

Apache

I just downloaded the Apache Server on Windows which I have done a while ago alongside IBM’s websphere where they call it Http Server.

I ran the download program that pretty much self installs it. The executable for the Server can be found  here
C:\Program Files\Apache Software Foundation\Apache2.2\bin

It appears a bunch of the configuration for server can be found here

C:\Program Files\Apache Software Foundation\Apache2.2\conf

httpd.txt: This is the main Apache HTTP server configuration file.  It contains the
configuration directives that give the server its instructions.

Documentation gives details on the meaning of the information in the config file.

November 21, 2006 Posted by | SW Tools, Web Design | Leave a comment

links for 2006-11-20

November 19, 2006 Posted by | Uncategorized | Leave a comment

Football Weekend

MITCH ALBOM on Bo: A true Blue legend

Should Mike Shula be shown the door? or what about Chuck?

The Miami Dolphins Phinsider is here.

November 18, 2006 Posted by | Sports | Leave a comment

Trying out Webworks

I have been reading up about Struts 2.

I figured checking out the webworks framework first might be a good idea.

API – http://www.opensymphony.com/webwork/api/allclasses-frame.html

Config Files – http://wiki.opensymphony.com/display/WW/Configuration+Files

C:\java\webworks\webwork-2.2.2\webapps>ant build -Dwebapp=shopping-cart
Buildfile: build.xml

build:
   [delete] Deleting directory C:\java\webworks\webwork-2.2.2\webapps\tmp
    [mkdir] Created dir: C:\java\webworks\webwork-2.2.2\webapps\tmp
     [copy] Copying 58 files to C:\java\webworks\webwork-2.2.2\webapps\tmp
    [javac] Compiling 13 source files to C:\java\webworks\webwork-2.2.2\webapps\
tmp\WEB-INF\classes
     [copy] Copying 1 file to C:\java\webworks\webwork-2.2.2\webapps\tmp\WEB-INF
\classes
      [war] Building war: C:\java\webworks\webwork-2.2.2\webapps\dist\shopping-c
art.war
      [war] Warning: selected war files include a WEB-INF/web.xml which will be
ignored (please use webxml attribute to war task)

BUILD SUCCESSFUL

copy C:\java\webworks\webwork-2.2.2\webapps\dis
t\shopping-cart.war c:\java\apache-tomcat-5.5.17\webapps\

http://localhost:8080/shopping-cart/

learntechnology.net has a basic Webworks example (WAR).

Snippet from xworks.xml:

<default-interceptor-ref name="paramsPrepareParamsStack"/>
        <action name="index" class="net.vaultnet.learn.action.EmployeeAction" method="list">
            <result name="success">/jsp/employees.jsp</result>
            <!– we don’t need the full stack here –>
            <interceptor-ref name="basicStack"/>
        </action>
        <action name="crud" class="net.vaultnet.learn.action.EmployeeAction" method="input">
            <result name="success" type="redirect-action">index</result>
            <result name="input">/jsp/employeeForm.jsp</result>
            <result name="error">/jsp/error.jsp</result>
        </action>

  1. ActionMapper – mapping between HTTP requests and action invocation requests and
    vice-versa; may return null if no action invocation request maps,
    or it may return an ActionMapping.
  2. Filter Dispatcher (com.opensymphony.webwork.dispatcher.FilterDispatcher) – filter and its mapping are located in web.xml and defines what requests will be intercepted. Before executing an Action, it loooks through stack of interceptors.

    Webworks Interceptors (defined in webwork-default.xml)can be invoked before and after your action is executed. paramsPrepareParamsStack- This is useful for when you wish to apply parameters directly to an object that you wish to load externally.

  3. <%@ taglib prefix="ww" uri="/webwork" %> : access to the tag library

November 18, 2006 Posted by | Struts | Leave a comment

links for 2006-11-18

November 17, 2006 Posted by | Uncategorized | Leave a comment

web 2.0 to 3.0

November 14, 2006 Posted by | Uncategorized | Leave a comment

Its a Tech Tuesday

After being a fan of Flickr for quite a while, and learning of the background of this product, i finally signed up for my own account . Thus, I am ready for the intro , should i be worried?

Another tool of note I enjoy is ITunes, not to be confused with M$FT ‘s Zune . I have not had this experinece with it. Here is one tip that I probably wont try,  as I am more interested in setting up my playlists, as I have plenty of Podcasts on my  player I listen to these but have not had a use for any .Podcast Tools or lessons on how to podcast . Listening to podcasts  via a phone.

Update: Why Microsoft’s Zune music player has little or no chance of denting Apple’s iPod juggernaut [more]

November 14, 2006 Posted by | Web/Tech | Leave a comment

Its here: Sun’s Java Platform on Open Source

OPEN JDK:"Santa Clara-based Sun said it is making nearly all of Java’s source
code — excluding small pockets of code that aren’t owned by Sun —
available under the GNU General Public License. The same type of
license also covers the distribution of the core, or kernel, of the
popular open-source operating system Linux" [q&a]

Why its good : "Java under the GPL means that they can now much more readily cross-leverage each other"

Sutor: "The most widely used license is the GNU General Public License (GPL).
While it is hard to quantify, it appears likely that approximately 70%
of all open source projects use the GPL. Code that uses the GPL is
referred to as “free software.”By its nature, the GPL makes new code that incorporates older GPLed
code also use the GPL. That is, the GPL is somewhat self-propagating as
code that uses it is picked up and re-used elsewhere. This is exactly
as the authors intended.The GNU/Linux operating systems use the GPL. You cannot charge
others for a license to use GPLed software and you must make your
source code available.

Another commonly used license is from the Apache Software
Foundation
. This is an open source license that does allow direct use
of the source code within commercial products. Unlike the GPL, the Apache License
allows “defensive termination”: if you sue someone because you claim
that the software infringes on one of your patents, then you lose the
right to freely use the patents of others that are implemented in the
software.

In other words, you stop having the right to use the software if you
are trying to stop others from using it. Much of the open source
software that implements the standards of the World Wide Web is covered
under the Apache license."

freeopen-vs-closed-software

Details of what is available:

The first pieces of source code are available today:

   

* Java HotSpot technology (JVM)
   
* Java programming language compiler (javac)
   
* JavaHelp software
   
* Sun’s feature phone Java ME implementation
* Java ME testing and compatibility kit framework

Later in 2006, Sun will release these pieces:

   

* An advanced operating system phone implementation
   
* The framework for the Java Device Test Suite

Finally, in the first quarter of 2007 the move to free software will be completed as Sun provides these pieces under the GPL:

   

* A buildable Java SE Development Kit (JDK)
   
* Project GlassFish (in addition to CDDL)

Duke  Open Sourced.

IBM’s take is one of dissapointment  but one    opinion: "What IBM holds back for its clients only gives it an advantage over
everyone else, especially among the large accounts that can afford its
overhead.The Apache license accepts this reality. The GPL does not. Behind
IBM’s mild complaint is a scream of pain, an acknowledgement that Sun
has cleverly kicked it in the shins."

 

November 13, 2006 Posted by | J2EE | Leave a comment

web 2.0 one year later

about this time last year I started exploring the buzz word web 2.0

the Web 2.0 Summit was just held this past week [pod].

Now there is talk of the Web 3.0  : "Back to Web 3.0. There will be one, and it has been associated at this point with concepts of the semantic Web". 

Nova Spivack defined the semantic Web

The Semantic Web is a set of technologies which are
designed to enable a particular vision for the future of the Web – a
future in which all knowledge exists on the Web in a format that
software applications can understand and reason about. By making
knowledge more accessible to software, software will essentially become
able to understand knowledge, think about knowledge, and create new
knowledge. In other words, software will be able to be more intelligent
– not as intelligent as humans perhaps, but more intelligent than say,
your word processor is today.

The blog readwriteweb.com had a nice  web2.0 roundup :

web 2.0 vs 1.0

Here is a link to many of the web 2.0 tools .

I personally like netvibes.com a whole lot.


November 13, 2006 Posted by | Web/Tech | Leave a comment

google code search

in google i put: pserver:guest@cvs.dev.java.net: /cvs dwr

which gave me this url

cvs.dev.java.net/cvs/dwrApacheJavaMore from dwr »

November 11, 2006 Posted by | Open Source | Leave a comment

AJAX Roundup

AJAX: It enhances user interaction by targeting updates from the server
to specific areas of the web page, known as "In-page replacement" . DWR is easy AJAX for Java

Introduction where I learned of Jesse James Garrett  from  web site Adaptivepath.com is the person who is behind the technology.

AJAX w Java

Google Maps mania

AJAXIAN

Relevance has Demo from Ajax presentation at Java in Action .

Sun Tip on AJAX

AJAX Talk notes

Eclipse AJAX Toolkit Framework project

Paul Graham : "Basically, what "Ajax" means is "Javascript now works." And that in turn means
that web-based applications can now be made to work much more like desktop ones.

Similarly, RMH tunes in about AJAX

 

Google Maps

Stu Halloway : "predicts Ajax will be part of nearly all web applications within the next year."

Google Web Toolkit (GWT) this API  &samples Designer  Tool

Software Development in the Real World: The Complete List of Ajax Tools
(tags: ajax)

November 11, 2006 Posted by | AJAX | Leave a comment

webtest canoo

I downloaded webtest to c:/java/webtest and started the install . Note that manual for webtest. I believe it makes use of clover the coverage tool.

webtest -buildfile installTest.xml

installTest.xml:

..

<target name="checkWebTest">

        <echo message="webtest.home is ${webtest.home}"/>
        <testSpec name="check calling and parsing a local file">
            <config
                host=""
                port="0"
                basepath="/"
                summary="false"
                saveresponse="false"
                haltonfailure="true"
                protocol="file"/>
            <steps>
                <invoke
                    description="get local file"
                    url="${basedir}/testfile.html"/>
                <verifyTitle
                    description="check the title is parsed correctly"
                    text="Test File Title"/>
            </steps>
        </testSpec>
    </target>

testfile.html:
<html><head>

<title>Test File Title</title>
</head>
<body>
empty
</body>
</html>

November 10, 2006 Posted by | SW Tools | Leave a comment

Servlet Filters

Servlet Filters [ link ] — are not Servlets and they are not responsible for
creating a response.

They are preprocessors of requests before they
reach a Servlet and postprocessors of responses after leaving a
Servlet.

Servlet filters can:

  • Intercept a Servlet’s invocation before the Servlet is called

  • Examine a request before the destination Servlet is invoked

  • Modify request headers and request/response data by subclassing the HttpServletRequest object and wrapping the original request

  • Intercept a Servlet’s invocation after the servlet is called

The designers of Servlet Filters identified the following examples for their use:
Authentication Filters, Logging and Auditing Filters,Image conversion Filters, Data compression Filters, Encryption Filters, Tokenizing Filters, Filters that trigger resource access events, XSL/T filters, Mime-type chain Filter

web.xml:

<filter>
      <filter-name>My Filter</filter-name>
      <filter-class>com.myproject.MyFilter</filter-class>
      <init-param>
         <param-name>enable</param-name>
         <param-value>yes</param-value>
      </init-param>
</filter>

<filter-mapping>
      <filter-name>My Filter</filter-name>
      <servlet-name>action</servlet-name>
</filter-mapping>

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
public class MyFilter implements Filter
{
    boolean _enable = false;

    public void init(FilterConfig fc) throws ServletException
    {
        String enable=fc.getInitParameter("enable");
        if ("yes".equals(enable))
            _enable=true
    }
    public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
                  throws IOException, ServletException
    {
        HttpServletRequest  request = (HttpServletRequest) req;
        HttpServletResponse response = (HttpServletResponse) res;
       
        if (! _enable)
        { // proceed with request
            chain.doFilter(request, response);
            return;
        }
       doIt();
        chain.doFilter(request, response);
        //After
FilterChain.doFilter() returns, the filter can do more processing if it
chooses;      
        doINextt();
}

public void destroy()
    {
    }
}

 

November 5, 2006 Posted by | Web Design | Leave a comment

Breadcrumb Taglib

  • Trail Taglib allows a dynamic breadcrumbs trail to be built up and records a user’s movements for the entire session, while providing a normalized version to display to the user.
    (tags: taglib)

"Basic approach is that pages push themselves onto a trail-stack, and
a normalized version is maintained for showing on a page. ie)

In addition to the normalized user version, a full trail is also
maintained, which could be emailed or stored instead of access logs on
session expiry.

Normalization occurs whenever an element is repeated in a trail, its
http-referer is repeated in a trail [ie sneaky users used the back button]
or possibly when the trail:pop tag is used, though I’ve not had a need to
use that yet."

November 4, 2006 Posted by | Web Design | Leave a comment

One Year Out

Stu Halloway : "predicts Ajax will be part of nearly all web applications within the next year."

Tapestry: "component based framework"

Instantiations

November 4, 2006 Posted by | Web Design | Leave a comment

Struts 2

After the release of WebWork 2.2.2, the WebWork and Struts communities began a merge that will eventually produce Struts 2. This merger combines these two "action based" frameworks  as it is told .

Compared to SpringMVC,
you sacrifice some cleanliness but there is a lot more work done in
certain areas, for example client-side validation, a strong Interceptor
framework and a nice graphical flow
designer – this latter is also a strong area, with WebWork being one of
the pioneer adopters of the freshly unbundled RIFE Continuations package.

Continue reading

November 2, 2006 Posted by | Struts | Leave a comment

AJAX Reference

October 31, 2006 Posted by | Web Design | Leave a comment

MoneyBall Writer on Parcells

October 30, 2006 Posted by | Sports | Leave a comment

NetVibes Firefox 2

October 28, 2006 Posted by | Web/Tech | Leave a comment

media wiki

2     User:
3     User_talk:
4     Project:
5     Project_talk:
6     Image:
7     Image_talk:
8     MediaWiki:
9     MediaWiki_talk:
10     Template:
11     Template_talk:
12     Help:
13     Help_talk:
14     Category:
15     Category_talk:

October 27, 2006 Posted by | Web/Tech | Leave a comment

framework fungo

October 23, 2006 Posted by | J2EE | Leave a comment

Java Tour

October 20, 2006 Posted by | J2EE | Leave a comment

Buckner wore Cubs Glove ’86

October 19, 2006 Posted by | Sports | Leave a comment

You Tube Tools

October 17, 2006 Posted by | Television | Leave a comment

Web Test

October 16, 2006 Posted by | SW Tools | Leave a comment

In Print

October 14, 2006 Posted by | Books | Leave a comment

Corey Lidle Loss

October 12, 2006 Posted by | Sports | Leave a comment

Security Server

RACF is now
called "Security Server"
[1]
Putting Latest Security Features to work [redbook]
RACF schema
What is RACF:


            RACF stands for Resource Access Control Facility.  RACF is a software security product that protects information
            by controlling access to it.  RACF also controls what the user can do and protects all of the operating system’s
            resources.  RACF provides this security by identifying and verifying users, authorizing users to access protected
            resources and recording and reporting access attempts.


            RACF helps meet the needs for security by providing the ability to:
            

  • Identify and verify users
                 
  • Authorize users to access the protected resources
                 
  • Control the means of access to resources
                 
  • Log and report various attempts of unauthorized access to protected resources
                 
  • Administer security to meet the goals of security

RACF mag

LDAP integrate

example operation

[1]
[2]

October 10, 2006 Posted by | SW Tools | Leave a comment

Techno Links of Day

October 6, 2006 Posted by | Web/Tech | Leave a comment

Flickr Tools

October 5, 2006 Posted by | Art | Leave a comment

tool tip and tech commentary

October 3, 2006 Posted by | Web Design | Leave a comment

startups and blogging

September 29, 2006 Posted by | Blogging | Leave a comment

java tips

September 18, 2006 Posted by | J2EE | Leave a comment

NFL week 1

In Reggie Bush’s first game:
58 yards of revieving, 61 yards rushing
Kellen Winslow playing in first game since injury
1TD, 63 yards receiving
Saints and Falcons lead NFC South as Bucs and Panthers begin season in loss column.
It seemed that Bucs OL being banged up resulted in Simms bad play with 3 picks.
Caddilac Williams had only 22 yards eof rushing mainly due to Ravens strong D.
McNair had a decent first game and seemed like he will has found a favorite target in Mason.
The Panthers just could not solve Vick and Dunn combination. Panthers lacked big play
they usually can count on in Steve Smith. Laverneus Coles hooked up with passes from Pennington quite well today

September 10, 2006 Posted by | Sports | Leave a comment

links for 2006-08-26

August 25, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-08-17

August 16, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-08-12

August 11, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-08-11

August 10, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-08-10

August 9, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-08-08

August 7, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-08-06

August 5, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-08-05

August 4, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-08-03

August 2, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-08-01

July 31, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-07-31

July 30, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-07-30

July 29, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-07-29

July 28, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-07-23

July 22, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-07-22

July 21, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-07-19

July 18, 2006 Posted by | Uncategorized | Leave a comment

news item

link : "Motricity, a
leading global provider of mobile marketplace management solutions, has
acquired GoldPocket Wireless, a leader in mobile interactivity and
marketing solutions for media and entertainment companies. The
acquisition gives Motricity an unmatched customer footprint and
positions the company as the most complete supplier of on-deck and
off-deck solutions for mobile operators and media and entertainment
companies."

July 17, 2006 Posted by | Mobile | Leave a comment

links for 2006-07-17

July 16, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-07-15

July 14, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-07-14

July 13, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-07-13

July 12, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-07-12

July 11, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-07-11

July 10, 2006 Posted by | Uncategorized | Leave a comment

collaboration tool

wiki

July 3, 2006 Posted by | Web Design | Leave a comment

links for 2006-06-28

June 27, 2006 Posted by | Uncategorized | Leave a comment

BIRT

Autuate BIRT (Business Intelligence and Reporting Tools)

Reporting and Business Intelligence for Java using Eclipse and RAD

Crystal Reports has dominated Business Reporting in Java until now.   
It has even been distributed by IBM with WebSphere and RAD.   

That is about to change.  On June 30, Eclipse will release
version  3.2 and Callisto.  Later this year, IBM will release RAD 7 including
Eclipse 3.2, and also supporting BIRT.

June 27, 2006 Posted by | SW Tools | Leave a comment

Using SVN

Here is a nice reference link to some of the commands.

svn update brings changes from the repository into your working copy
   A – added
   G – merged
   U – updated
   C – conflict

svn revert reverts any local changes to a file or directory and resolves any conflicted states.

svn log Display commit log messages

svn merge Merging is where you submit your code in one release and you want it prop’d to another.
   svn commit ….
    Committed revision 1001.
 
svn merge –dry-run -r 1000:1001 /usr/svn/product1/trunk/main/product1a
svn merge -r 1000:1001 /usr/svn/product1/trunk/main/product1a

June 26, 2006 Posted by | SW Tools | Leave a comment

links for 2006-06-18

June 17, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-06-17

June 16, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-06-13

June 12, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-06-12

June 11, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-06-10

June 9, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-06-06

June 5, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-06-03

June 2, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-06-02

June 1, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-05-31

May 30, 2006 Posted by | Uncategorized | Leave a comment

Seam

I couple months ago I heard the podcast with Gavin King about Seam. I came across this blog posting talking about Seam. I do see alot more people using EJBs than what was done in the past now that with JPA and IoC all in one. I do not see Spring going away though.

May 28, 2006 Posted by | Hibernate & ORM, IoC, Spring | Leave a comment

links for 2006-05-26

May 25, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-05-25

May 24, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-05-24

May 23, 2006 Posted by | Uncategorized | Leave a comment

technology

ATG:

Tables

7.0 API Java DOC

Create Catalogs

Catologs and Products

Catologs, Categories, Skus

sku

er diags

Repository Guide

Repository API

Repository – data store.
Represents a collection of RepositoryItems. the interface

MutableRepository – The interface defines functions for four operations: creating, adding, updating, and removing repository items.

RepositoryItem : like a JavaBean that is similar to a row in a table that is made up of properties. Each repository item must have an identifier, which is called a repository ID.

MutableRepositoryItem
RepositoryItem that can be updated as specified by the interface

RepositoryItemDescriptor –  Each item type is described by a Repository item descriptor (also called a RepositoryView) interface . Gives a name to the type, and also describes the properties for that type.

ItemDescriptorImpl – implements RepositoryItemDescriptor

atgrepositorypropertieschanged : When a repository item is modified, its item descriptor broadcasts locally a PropertiesChangedEvent. In addition to its type, a PropertiesChangedEvent contains the following:- A Map in which the keys are RepositoryPropertyDescriptors and the values are the new property values.- The item that is changed.- The repository ID of the item that is changed.- The item that is changed.-The item descriptor of the item that is changed. If you have a component that you want to be notified when repository item properties change, it can implement the atg.repository.PropertiesChangedListener interface. You can add your PropertiesChangedListener implementation to the atg.repository.ItemDescriptorImpl returned by the repository.getItemDescriptor() method, using the method ItemDescriptorImpl.addPropertiesChangedListener.

RepositoryPropertyDescriptor

Property files in ATG

Generic Service

ATG Mocks

Component
– storage, personalization, biz logic, jsps references component props
Repository
– data and data access
Profile
– attributes about individual visiting a web site

Targeting
– based on profiles. applying tagged content
SCenario
– sequence events over liftetime (multiuser) , and applicable actions taken (email or personalized content)

DAF- Dynamo App Framework
DAS – Dyname App Server
DPS – Dynamo Personalization Server
DSS- Dynamo Scenario Server

/usr/java/ATG7.0/DAS/taglib/dspjspTaglib/1.0
  /lib/dspjspTaglib1_0.jar
  /tld/dspjspELTaglib1_0.tld
/tld/dspjspTaglib1_0.tld

<%@ taglib uri="http://www.atg.com/taglibs/daf/dspjspTaglib1_0&quot; prefix="dsp" %>
<%@ taglib uri="http://www.atg.com/taglibs/daf/dspjspELTaglib1_0&quot; prefix="dspel" %>

SQL Repository
– Java view of elements in database

Repository Item
– repositoryId
– zero or more properties specified by item descriptor

Item Descriptor
– Logical (Repository Item) to Physical (Tables)

Item Type ~ Item Descriptor

GSA
– Generic SQL Adapter

May 23, 2006 Posted by | Web Design | Leave a comment

Official First Day

online sessions
JavaOne begins by Matt Raible
Sporar on Day one

Burnette [1] [2] [3] [4] [5] [6]

Post in Links

Debian News

Portal Open Source

Lastly    code.google.com/webtoolkit/

May 17, 2006 Posted by | Uncategorized | Leave a comment

Day 1 Blogs

The Aquarium NetBeans Day Roundup

Why Not?

Burnette

More Netbeans

Mary,Mary

May 15, 2006 Posted by | J2EE | Leave a comment

A Protocol

WAP  [wiki]

WAP with JAVA

Comparison to SMS

WAP School is in session.

May 15, 2006 Posted by | Mobile | Leave a comment

Java One 2006

Java One is early this year. Last year  it was in June.

Here is a rundown of some of the blogs I will be following.

RollerWebLogger
Bruce Snyder
Inside Scoop
BeJug
Raible

May 15, 2006 Posted by | J2EE | Leave a comment