Posts tagged as:

servlet

Daily del.icio.us for May 2nd through May 4th

May 4, 2008

Pearware Blog : Improving Java web site performance with asset caching - In this post, I’ll be talking about a solution I developed at my day job to improve the performance of our web site by allowing the browser to cache JavaScript, CSS, and image files Who Will Tell the People? - New York Times - We need a president who is tough enough to tell the truth to the American people. Any one of the candidates can answer the Red Phone at 3 a.m. in the White House bedroom. I’m voting for the one who can talk straight to the American people on national TV The All-White Elephant in the Room - New York Times - Mr. Hagee is not a fringe kook but the pastor of a Texas megachurch. On Feb. 27, he stood with John McCain and endorsed him over the religious conservatives’ favorite, Mike Huckabee, who was then still in the race. Headius: The Power of the JVM - The future is definitely looking awesome for dynamic languages on the JVM. And languages like Groovy and JRuby are proving it. How Has Functional Programming Influenced Your Coding Style? - Functional programming languages are enjoying a renaissance. Even if not intending to use a functional language for daily work, learning such a language can improve one's programming style Sleep deprivation is not a badge of honor - (37signals) - Forgoing sleep is like borrowing from a loan shark. Sure you get that extra hours right now to cover for your overly-optimistic estimation, but at what price? The shark will be back and if you can’t pay, he’ll break your creativity, morale, and good-m Java Persistence 2.0 Early Draft Available - Linda DeMichiel's Blog - We've just released the Early Draft of the Java Persistence 2.0 specification, so I thought it would be a good time to report on some of the work we've been doing in the JSR 317 Expert Group. InfoQ: Flex, AIR and AS3 Flex Gain Code Coverage Utilities - Last month Joe Berkovitz announced the initial experimental release of Flexcover, an open-source code coverage tool suite for Flex, AIR and AS3 For all you know, it's just another Java library - David Pollak's Blog - Bottom line… to anyone other than the folks with hands in the code and the folks who have to recruit and manage them, "For all you know, it's just another Java library." Common Solutions for T-SQL Problems - Home - Some of the Moderators, Answerers, and MVPs have gotten together to create a new resource to supplement the Forums; it's called SQLExamples. We just started it a few weeks ago so it's still very much in its infancy
Tags: air, as3, bestpractices, bytecode, cache, caching, code, compiler, database, development, elections, emma, filter, flex, functional, globalization, groovy, health, J2EE, java, javascript, jpa, jpa2.0, jruby, jvm, jython, lifehacks, media, microsoft, obama, optimization, ORM, performance, persistence, politics, productivity, programming, scala, servlet, sleep, SQL, sqlserver, tools, tsql, web, work

Related posts

{ 0 comments }

Daily del.icio.us for March 22nd through March 25th

March 25, 2008

SaveTheDevelopers.org :: Making The Web A Better Place - Say no to IE 6! Our current campaign focuses on assisting users in upgrading their Internet Explorer 6 web browser. This campaign will result in former IE 6 users having a more enjoyable experience on the web while (hopefully) creating a less stressful an Save the Developers! Stop Using Internet Explorer 6 - There is a scourge on the Web. It is called Internet Explorer 6. Even though IE7 has been around for more than two years, IE6 still represents 31% of all browsers out there (versus only 22 % for IE7 and 36.5 % for Firefox). Amazon's cloud computing service fuels startup's launch | InfoWorld | News | 2008-03-25 | By Jon Brodkin, Network World - A startup called Elastra is launching Tuesday with software that helps customers build database management systems and other applications that can be deployed on top of Amazon's EC2 cloud computing service. Gartner Says Worldwide PC Shipments to Grow 11 Percent in 2008, Market Could Fall Victim to Weaker Global Economy - Worldwide PC shipments are forecast to total 293 million units in 2008, up 10.9 percent from 2007 shipments of 264 million units, according to Gartner, Inc. However, analysts warned that growth could fall into single digits if global economic headwinds st Microsoft partners with open source Jaspersoft, Sourcesense | Open Source | ZDNet.com - Microsoft and Jaspersoft are working together to ensure that Jasper’s business intelligence software suite runs well on the latest editions of Windows and SQL Server. The ’80s Video That Pops Up, Online and Off - New York Times - For rickrolling, the duck was replaced with the 20-year-old Astley video, and in the last year it has become a hugely successful “meme,” the Internet’s word for an idea repeated across the Web. The video from yougotrickrolled.com has been viewed mor Roundtable: The state of open source | InfoWorld | News | March 24, 2008 | By Jason Snyder - Any endeavor rooted in community is bound to spark passionate debate. After all, without contention, how else to determine the best way forward? Since its emergence, open source has embodied this spirit. Part defiant, part self-reliant, and often outspoke ETL for Free-Form Data - SQL Server Central - Would you like to learn a handy little process for extracting, transforming and loading data fields from a free-form source like a web page or word processing document into something structured like a staging table? Asynchronous HTTP and Comet architectures - Java World - In this article, Gregor Roth takes a wider view of asynchronous HTTP, explaining its role in developing high-performance HTTP proxies and non-blocking HTTP clients, as well as the long-lived HTTP connections associated with Comet. Ext.ux.grid.RowActions - RowActions Plugin for Ext 2.x - Beta1 by Saki - RowActions plugin allows you to add icons in a grid that you want to bind actions to: delete row, edit row, whatever. It displays an icon and fires two events: beforeaction (return false to cancel) and action (here you put the action you want to execute) Coding Horror: Paul Graham's Participatory Narcissism - Loved this comment :) - I hadn't realized how unhappy I was until I watched Office Space and my wife said, "That seems like your job". I soon switched jobs
Tags: adobe, air, ajax, amazon, analysis, asynchronous, browser, browsers, business, calendar, campaign, comet, computer, data, database, datawarehouse, developer, development, ec2, etl, ext, extension, extjs, firefox, flash, flex, flex3, fortify, gartner, gears, GMail, google, googlegears, grid, guide, howto, httpclient, Humor, ibm, ide, ie, ie6, ie7, jasperreports, java, javascript, Linux, microsoft, mobile, mysql, offline, opensource, optimization, outlook, pc, plugin, pocketpc, reports, ria, rickrolled, s3, saas, sales, science, servlet, software, sqlserver, ssis, standards, sync, teamwork, tools, tutorial, ubuntu, video, web, Web2.0, webdesign, webdev, windows, xensource, xml, xsd, xsl

Related posts

{ 0 comments }

Daily del.icio.us for March 9th through March 10th

March 10, 2008

BEA JRockit Mission Control - JRockit Mission Control for Eclipse is a set of plug-ins for the Eclipse IDE designed to help develop, profile and diagnose applications running in the BEA JRockit ® JVM. GridGain - Open Source Grid Computing For Java - GridGain is focused on doing one thing and doing it better than any other product – providing the best grid computing platform for Java that is fun, simple and productive to use. Ajaxian » Mozilla Prism update makes it easy to create wrappers - Create Prism applications directly from Firefox - Refractor creates a Prism web application from within Firefox. Users can manually create web applications using "Tools > Convert Website to Application". Open Source and Enterprise Architecture: JVM Performance Tuning - I was able to achieve an over 3x improvement in my EJB 3 application, of which fully 60 to 70% of that was due to using large page memory with a 3.5GB heap OAuth — An open protocol to allow secure API authentication in a simple and standard method from desktop and web applications. - An open protocol to allow secure API authentication in a simple and standard method from desktop and web applications. Data Portability, Authentication, and Authorization - We will take a detailed look at the right and wrong ways to request user data from social hubs large and small, and outline some action items for developers and business people interested in data portability and interoperability done right. The world's 50 most powerful blogs | Technology | The Observer - Blogging has never been bigger - It can help elect presidents and take down attorney generals while simultaneously celebrating the minutiae of our everyday obsessions Simplifying Web Service development with JSR-181 - JSR 181 or Web Services Metadata for the Java Platform is a Java Specification Request that defines an annotated Java format that uses Java Language Metadata (JSR 175) to enable easy definition of Java Web Services in a J2EE container InfoQ: Architecture as Language: A story - As you develop the architecture, evolve a language that allows you to describe systems based on this architecture. Based on my experience in a number of real-world projects, this makes the architecture tangible and provides an unambiguous description of t Hello, OSGi, Part 1: Bundles for beginners - Java World - The Open Services Gateway Initiative (OSGi), also known as the Dynamic Module System for Java, defines an architecture for modular application development. Similar to the Java Servlet and EJB specifications, the OSGi specification defines two things: a se
Tags: ajax, ajaxian, architect, authentication, BEA, developers, development, ejb, enterprise, grid, infoq, J2EE, java, ORM, osgi, servlet, tuning

Related posts

{ 0 comments }

Daily del.icio.us for Dec 04, 2007 through Dec 06, 2007

December 6, 2007

Roller: free and open source Java blog software - Apache Roller 4.0 has been released and is now available for download. This is a major new Roller release which includes easier blog theme customization, a much more simple installation/upgrade process, infrastructure improvements and other small fixes. infinitest - Google Code - Infinitest is a continuous JUnit test runner designed to facilitate Test Driven Development. Infinitest helps you learn TDD by providing feedback as you work, and helps you master TDD by reducing your feedback cycle from minutes to mere seconds dev2dev: Using Asynchronous Servlets to Deal with Hung Threads - BEA WebLogic Server 9.2 and later versions expose an Abstract Asynchronous Servlet class, which allows you to decouple receiving a servlet request from sending its response. The class also provides a Future Response Servlet, which lets the server handle s Yahoo! Flash(R) Blog » Blog Archive » YUI Got a Little More Flashy Today! - Yahoo! releases version 2.4.0 of the YUI Library and they have been working with the Flash team to help them introduce a new component that leverages the power of Flash Player. The experimental YUI Charts widget brings the Yahoo! Astra Flash Charts Yahoo! Developer Network - Flash Developer Center - ASTRA Flash Components - Charts - Charts is a set of visualization components that represent two-dimensional data structures (tables, arrays of values, etc.) in a variety of ways (bars, graphs, pie charts, etc.) Yahoo! UI Library: Charts - The YUI Charts Control visualizes tabular data on a web page in several possible formats including vertical columns, horizontal bars, lines, and pies. Features include support for the DataSource Utility, customizable serie, axes, mouse-over datatip Ext JS LiveGrid Component - The Ext JS LiveGrid Component is a user extension that's build upon the wonderful Ext JS Framework. The component allows to read chunks of data from an underlying storage (common use case: a database) without the need of paging. Means: You can virtually d Ext JS Blog - » Ext 2.0 Final Released - The Ext team is proud to announce that the official release of Ext v2.0 is available for download. Ext 2.0 is a dramatic step forward from all previous versions of Ext, providing increased performance, ease of configurations, flexibility and UI capabiliti Adobe Debuts Flash Media Server 3 - Slashes Price - The Flash Media Interactive Server includes the debut of streaming HD video. FMS3 will offer H.264 video streaming, as well as support for High Efficiency AAC (HE-AAC) audio that can be streamed to Flash player, AIR applications, or Adobe's Media Player a NetBeans Magazine - To coincide with the launch of 6.0, this latest issue of NetBeans Magazine features 62 pages of in-depth articles. NetBeans IDE 6.0 features Ruby/JRuby/Ruby on Rails support, enhancements for improved Swing development, a new Visual Game Designer, updated
Tags: adobe, ajax, astracharts, asynchronous, charts, development, ext, extjs, flash, flex, framework, graph, grid, ide, java, javascript, jms, library, magazine, mdb, media, netbeans, programming, Ruby, server, servlet, software, streaming, video, visualization, Web2.0, webdev, WebLogic, yahoo, yui

Related posts

Daily del.icio.us for Oct 16, 2007 through Oct 20, 2007

October 20, 2007

InfoQ: Setting out for Service Component Architecture - SCA is an enhancement to frameworks that offer programming models for components and connectivity abstractions. Those frameworks may be standard offerings, but may also be proprietary technologies, such Remote Function Calls (RFC), SQL stored proc etc. Ignite Realtime: Ignite Realtime Video Podcasts: Actionscript, Javascript, and the Future of Webapps - In this video, Jive Software's David Smith talks about Actionscript, Javascript, and the future of webapps as they relate to his work on Spark. Eric Traut talks (and demos) Windows 7 and MinWin - istartedsomething - Microsoft?s distinguished engineer Eric Traut gave a presentation at the University of Illinois about Microsoft?s virtualization technology and also mentioned Windows 7 - the next version of Windows after Vista Cairngorm:Cairngorm2.2.1:Release Notes - Adobe Labs - The Cairngorm Microarchitecture is a lightweight yet prescriptive framework for rich Internet application (RIA) development. Alfresco Makes Leading Java Implementation JLAN Shared File Drive Interface Available via GPL - Alfresco JLAN is a unique implementation of an embedded virtual file system that offers the only Java client and server implementation of Microsoft Window?s CIFS protocol, allowing content, and rows in a database to appear as a shared drive. 1-800-GOOG-411 - Google's new 411 service is free, fast and easy to use. Give it a try now and see how simple it is to find and connect with local businesses for fre Adopting Struts 2.0 - Java World - Struts 2.0 carries much of the power of its predecessor but is simpler for developers to use. In this article, S. Sangeetha and S. V. Subrahmanya outline the changes in Struts 2.0 and offer migration pointers for developers familiar with Struts Improve Your Photos 60 Seconds at a Time - If you are tired of reading long explanations and confused by tricky photo techniques, here you can have it short and sweet. Arranged by topics, each subject takes less than 60 seconds to read. InfoQ: IntelliJ IDEA 7.0 Adds Spring/Hibernate Support, Eclipse Interoperability, and Maven Integration - Jetbrains has released IntelliJ IDEA 7.0. This version rounds out support for many popular Java technologies while adding support for languages such as Groovy and Ruby. Among its highlights: Spring and Hibernate Support, Ruby/Rails Support, Groovy/Grails IntelliJ IDEA Blog » Blog Archive » IntelliJ IDEA: The Magnificent Seven - JetBrains is proud and happy to tell you that IntelliJ IDEA 7.0 is now available! This release is focused on further upgrading performance, usability, and enhancing the user experience with the efficient support for new features, technologies, and tools.
Tags: actionscript, Alfresco, apache, architecture, caching, CIFS, confluence, development, ecm, ehcache, filters, flex, framework, google, gwt, history, ide, idea, intellij, iphone, J2EE, java, javascript, jcache, jCIFS, jira, jive, JLAN, jsf, JSR107, microsoft, minwin, NFS, oscache, plugin, presentation, project, redirect, ria, SCA, service, servlet, SOA, video, virtualization, webdev, windows, windows7

Related posts

Daily del.icio.us for Sep 20, 2007 through Oct 05, 2007

October 5, 2007

Icahn further raises BEA stake to 13.22 percent | News | Mergers/Acquisitions | Reuters - Billionaire investor Carl Icahn further boosted his stake in BEA Systems Inc (BEAS.O: Quote, Profile, Research) to 13.22 percent, according to a regulatory filing. If wishes were iPhones, then beggars would call [dive into mark] - Buy it for what it is, or don?t buy it at all. Your choices don?t get any more granular than that. Apple has been unwaveringly clear that the iPhone is theirs. Adobe - Developer Center : What's new in Flex 3 Beta 2 - this article has been updated throughout to reflect Flex 3 Beta 2. However, you can see a summary of interesting changes near the bottom of this article. Technology Review: Gibson's Self-Tuning Guitar - A new line of instruments from Gibson Guitar now promises to banish this scenario to the dark ages with high-tech self-tuning technology built into the company's flagship electric-guitar models. Google Web Toolkit Blog: GWT Application Development for the iPhone - In our not-so-humble opinions, we think that the Google Web Toolkit (GWT) and the Apple iPhone are two very cool technologies. Our approach was to build an application that primarily targets the iPhone and to use that as a test-bed for new ideas. IntelliJ IDEA Plugins Contest - IntelliJ IDEA has inspired many Java developers to write plug-ins from J2EE and code editing tools to games. Now it has a robust plugin ecosystem with 413 available plugins and new ones appearing nearly every week Redirect after POST filter - RedirectAfterPostFilter lets you easily implement Redirect after POST pattern in your web applications. You can map this filter to your controllers processing POST requests and after the processing filter will redirect the original request to the url Caching Solutions in Java - Even though caching improves performance and makes your architecture work, it can, in fact, complicate design and introduce such complexities as concurrent code and cluster-wide synchronization. Daemon : Procrun - Daemon - Procrun is a set of libraries and applications for making Java applications to run as Windows services. It can convert any application to run as a service. The Connector released for Microsoft Project / JIRA Integration - The Connector allows users of JIRA to use Microsoft Project for doing planning and scheduling and provides an easy way to synchronize the information in Microsoft Project with the issues in JIRA
Tags: apache, architecture, caching, confluence, development, ehcache, filters, google, gwt, ide, idea, intellij, iphone, J2EE, java, jcache, jira, jsf, JSR107, microsoft, oscache, plugin, project, redirect, service, servlet, windows

Related posts

Daily del.icio.us for Mar 17, 2007

March 17, 2007

SXC - Simple XML Compiler - SXC (Simple XML Compiler) allows you to created optimized parsers and writers for XML. Through a declarative API you're able to tell SXC what type of XML to expect and what actions to associate with it. On the Stre@m - Flex has become more accessible - The Flex module for Apache and IIS provides web-tier compilation of MXML and ActionScript files on Apache and IIS web servers. Assessing the Survivors of the Java IDE Wars - For enterprise development, I'd say IDEA wins out with its rich support for both J2EE and Java EE 5, followed closely by NetBeans (which also does an impressive job here), and last is Eclipse/MyEclipse (mostly due to their current lack of support for Java An XQuery Servlet for RESTful Data Services - This paper shows how to use XQuery for data integration, and how to expose an XQuery as a RESTful data service using a Java servlet Control.Tabs : Projects : LivePipe - Control.Tabs is a javascript library for creating accessible, flexible & unobtrusive tabbed interfaces in your applications or pages.
Tags: adobe, ajax, apache, compiler, css, eclipse, flex, ide, idea, iis, intellij, java, javascript, netbeans, plugin, programming, prototype, rest, servlet, tabs, webdesign, webservices, xml, xmlbeans, xpath, xquery

Related posts

Servlet Filters: Part II

April 26, 2004

Earlier in the month, I blogged about Servlet Filters and how I see them as Aspects in the AOP world. Based on the blog entry, I've gotten tons of email from people that wanted to know more about Servlet Filters, how to use them and how to use the simple Authentication filter I used as an example. I also got quite a few emails from people that wanted to know what other filters I used and so I am including some resources that I find very helpful along with a few servlet filters that I use every day.

Servlet Filter Tutorials

Servlet Filter Apps

If you know of any other Servlet Filters that are useful, drop me an email or send me trackback.

Tags: AOP, aspectj, authentication, development, filters, J2EE, java, servlet, web

Related posts

Servlet Filters as poor man's AOP

March 25, 2004

I was just discussing this idea of Servlet Filters with a friend and I was trying to explain to him how Filters work and how they are really aspects in the AOP world. I think filters are really incredibly helpful and yet very few developers know about them and even fewer developers implement them. So my thought was that if we started using buzzwords like AOP around filters, suddenly Filters become sexy and everyone's jumping over to implement Filters. :-)

The filter API was introduced in the Servlet 2.3 specification and is defined by the Filter, FilterChain, and FilterConfig interfaces in the javax.servlet package. You define a filter by implementing the Filter interface. A filter chain, passed to a filter by the container, provides a mechanism for invoking a series of filters. A filter config contains initialization data. The most important method in the Filter interface is the doFilter() method, which is the heart of the filter. Filters intercept request to your web application based on the url-pattern specified in the web.xml, where the filters are defined.

I have used Filters extensively and have a few Filters ready to go when I am called into debug applications in production that are misbehaving or just broken. One of the filters I use quite often is a simple authentication filter that makes is easy to ensure consumers of the web application is authenticated. Here's a simple snippet:

[code lang="java"]
/**
* The doFilter() method performs the actual filtering work. In its doFilter() method, each filter
* receives the current request and response, as well as a FilterChain containing the filters that still must be
* processed.
*

* This filter is just used to capture and log information about the user being passed in to the login servlet
* for tracking purposes.
*
* @param request Servlet request object
* @param response Servlet response object
* @param chain Filter chain
* @exception IOException
* @exception ServletException
*/
public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
throws IOException, ServletException {

if (req != null) {
HttpServletRequest request = (HttpServletRequest) req;
//could pass in false in the getSession() to return null for new session.
HttpSession mySession = request.getSession();
String loginStatus = (String) mySession.getAttribute("LOGIN");

if ((loginStatus != null) && (loginStatus.equals(Boolean.TRUE.toString()))) {
log.debug("FOUND A LOGGED IN USER - PASSING THRU");
//Logged in - Let's pass thru the user
chain.doFilter(req, res);
} else {
log.debug("FOUND A NEW USER - CHECKING STATUS");
if ((request.getRequestURI().indexOf("login") != -1) ||
(request.getRequestURI().indexOf("index.jsp") != -1) ||
(request.getRequestURI().indexOf("images") != -1) ||
(request.getRequestURI().indexOf("ipo.css") != -1)) {
//User is going to or being redirected to login page or loading images - Let's pass thru the user
log.debug("NEW USER -> LOADING CSS, IMAEGS or BEING REDIRECTED TO THE INDEX OR LOGIN PAGE");
log.debug("request.getRequestURI() = " + request.getRequestURI());
chain.doFilter(req, res);
} else {
log.debug("NEW USER - LET's FORWARD TO THE INDEX JSP AGE");
log.debug("request.getRequestURI() = " + request.getRequestURI());
RequestDispatcher ds = ctx.getRequestDispatcher("/index.jsp?timeout=true");
ds.forward(request, res);
}
}
}
}
[/code]

Here's a copy of the original documented Filter java class.

Tags: AOP, development, filters, J2EE, java, servlet, web, WebLogic, xml

Related posts


You are viewing a mobilized version of this site...
View original page here

Mobilized by Mowser Mowser