Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blogs by topic: Web Applications

• Accessibility • Ajax • Blogging • Business • Community 
• Databases • Deployment • Distributed • Eclipse • Education 
• EJB • Extreme Programming • Games • GlassFish • Grid 
• GUI • IDE • Instant Messaging • J2EE • J2ME 
• J2SE • Jakarta • JavaFX • JavaOne • Jini 
• JSP • JSR • JXTA • LDAP • Linux 
• Mobility • NetBeans • Open Source • OpenSolaris • OSGi 
• P2P • Patterns • Performance • Porting • Programming 
• Research • RMI • RSS Feeds • Search • Security 
• Servlets • Struts • Swing • Testing • Tools 
• Virtual Machine • Web Applications • Web Design • Web Development Tools • Web Services and XML 


Servlets

Prior to Servlet 3.0, a servlet may need to wait for a long operation to complete and can cause thread starvation in web container. In Servlet 3.0, asynchronous processing is introduced to handle this situation. There is a lot of information about asynchronous processing in Servlet 3.0. In this blog, we will take a look at two aspects of startAsync. When will javax.servlet.AsyncListener#...
on Sep 8, 2011

Web Applications

I'm trying to get the first snapshot of JSF 2.2 published and I've just scanned through the svn logs and arrived at the following text, from which I'll derive the "Changes between 2.1 and 2.2" content. * Deprecate the CURRENT_COMPONENT and CURRENT_COMPOSITE_COMPONENT attributes   http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-784* Fix incorrect VDLDoc http://java.net/jira/browse/...
on Jun 16, 2011
Two Thursdays ago, I called for the community to vote for their top five issues, you responded with 186 votes, the results of which are captured in JIRA filter JSF_2_2_VOTED_ISSUES and in the following chart. You can see that JSF+CDI and multi-component validtion are the two big winners, followed by resource handler improvements and a feature that seems like taking the composite components to...
on Apr 25, 2011
No, I'm not talking about implementing a Logo JSF RenderKit. I'm talking about a little image that can be used to represent the JSF specification on slides, web-sites, T-Shirts and such. JSF has been around for ten years now and still doesn't have a logo. As Dan Allen has repeatedly said, it's past time for that to change. This blog entry announces a contest to make a logo for JSF. The winner...
on Apr 19, 2011
In GlassFish, when no error page is specified for a given web application, a default error page will be displayed. In some use cases, it is desirable to turn off the default error page. In this blog, we will summarize different ways to achieve this. In a Virtual Server One can turn off the default error page in a given virtual server by specifying a property with name <b>errorReportValve...
on Apr 18, 2011
Yesterday I facilitated the JSF 2.2 BOF at the CON_FESS 2011 conference. After years of having, but not using my slideshare account, I decided to upload the slides there, at <http://www.slideshare.net/edburns/jsf-2-2bof>. The slides set expectations for JSF 2.2 and give pointers for how to get involved at various levels of interest. After the meeting we held the kick off meeting for the...
on Apr 14, 2011
As mentioned earlier and elsewhere, JSF 2.2 is getting started right now. This blog entry is a call for serious, committed participation in the JCP Expert Group dedicated to delivering that specification. Ever since Oracle acquired Sun Microsystems and Java, there has been criticism of their handling of community and JCP. Some have gone so far as to say that Java is no longer free as in speech...
on Apr 5, 2011
Somebody once said that the best ideas are the most simple ones. Here comes one I had this morning when asked for example of page using this or that paragraph in Magnolia: select * from nt:base where mgnl:template = 'stkTeaser' Login to Admin Central, go to the JCR Queries, set target repository to website, limit result types to mgnl:content and type in the query above. Of course, also...
on Mar 23, 2011
I'm trying to provide transparency into Mojarra development practices and increase Mojarra code quality. To that end, this blog entry summarizes the current state of the Hudson jobs for Mojarra. Continuous integration is the layer of the software safety net that ties together the other two layers: version control mastery and a comprehensive automated test library. Mojarra has been developed...
on Mar 15, 2011
GlassFish supports the preseving of HTTP session data across the redeployment of web application. Prior to GlassFish 3.1, one can achieve this through the command line as follows: &nbsp;&nbsp;asadmin redeploy <b>--properties keepSessions=true</b> --name ${APP_NAME} ${A_WAR} In GlassFish 3.1, web sessions, Stateful Session EJB instances and persistently created EJB timers can...
on Mar 9, 2011

Security

Cross-site request forgery (CSRF) is a malicious attack exploiting the trust of a site from a user's browser. As an example, an user may be tricked to invoke a url to do a bank transaction by either clicking on the url or accessing the url through <img>. In GlassFish 3.1.1, there is a CSRF prevention filter, org.apache.catalina.filters.CsrfPreventionFilter, which is based on Tomcat 7. The...
on May 31, 2011

Programming

It's been a long time, well long in Internet-years, since my last blog on JavaFX. Now I'm approaching JavaFX 2.0 by porting the JavaFX 1.x programs that I had written and blogged about here. These new ports will allow me to evaluate the evolution of the platform. Has the wait been worth it? Porting from JavaFX 1 For my first port I’ve picked JavaFX Balls. (But this blog is not about...
on May 28, 2011

Web Services and XML

For the purpose of creating a nice API for my new project Caligo (more on this in a future blog post), I was looking for a simple solution to access REST web service in Scala. My requirement was simple: access an HTTP web service, and exchange data with him using the JSON format. You can read the full story here and get the gist of the basic implementation: http://aloiscochard.blogspot.com/2011...
on May 16, 2011

Databases

Accessing MySQL from Embedded GlassFish .ln { color: rgb(0,0,0); font-weight: normal; font-style: normal; } .s0 { color: rgb(128,128,128); } .s1 { } .s2 { color: rgb(0,0,255); } .s3 { color: rgb(128,128,128); font-weight: bold; } .s4 { color: rgb(255,0,255); } .s5 { color: rgb(0,0,128); } Using MySQL database with GlassFish is nothing new. However I just wanted to share a small note on how I...
on Apr 4, 2011

Education

Many web developers are not aware of the Java Script exceptions handling mechanism that allows us to handle excepetions using try and catch blocks, as in other programming languages. The following video clips provide more explanations. You can find more info about the Java Script Programming professional course I teach at www.xperato.com. The community version is available for free personal...
on Mar 21, 2011
Many of the famouse Java Script libraries (such as ExtJS, jQuery and Sencha Touch) are based on the possibility to change the CSS of the HTML elements displayed on screen. The following video clips provide more information about this possibility.   You can find more info about my Java Script Programming professional course at www.xperato.com. You can find the community version available...
on Mar 21, 2011
Most web developers are not aware of the possibility to interact with our cookies using code written in Java Script executed within the web browser. This technical possibility is an innovation trigger that leads to new possibilities. The Facebook Java Script SDK is just one example. The Java Script Programming course that I deliver at www.xperato.com covers this technical possibility. The...
on Mar 21, 2011
The new version of the professional Java Script Programming course I deliver via www.xperato.com includes four new topics. One of the new topics is Image Map. We can create images the user can interact with. We can set separated touchable areas and assign each one of them with a URL address or with a specific function in Java Script. The following video clip explains how to develop an image map...
on Mar 21, 2011
I have recently completed to update the professional Java Script Programming course I deliver via www.xperato.com. One of the new added topics is a detailed coverage of the available Java Script debuggers in today most popular web browsers: Firefox, Internet Explorer and Chrome. The following three video clips explain how do we use these debuggers. You can find the community version of my Java...
on Mar 21, 2011

JSR

JSON JSR(pre JCP filed draft) As announced earlier, Oracle wants to include a Java API for JSON in the Java EE platform. I have circulated the Java API for JSON JSR draft internally in Oracle. If you have any feedback, let me know. I will also reach out to few people(who worked on Java implementations for JSON) to support this JSR. The planned scope for this API is: Produce and consume JSON...
on Mar 15, 2011