Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Error validation and exception handling in portlets, using the Struts Portlet Framework

Rajender Sriramoju (rajender@sbcglobal.net), Portal Architect, Freelance Developer
Author photo
Rajender Sriramoju works as a portal architect. He has worked with IBM Websphere Portal server since V4.0, and he has an extensive background in architecture, design, development, and implementation of large scale J2EE and portal applications. He works primarily on portal architecture, design, and integration with various enterprise systems. When he is not working, Rajender listens to Bluegrass and country music, and plays guitar.

Summary:  Having a good design and implementation for error validation and exception handling enables applications to respond gracefully in abnormal conditions. This article tells how you can leverage error validation and exception handling features, which are built into the WebSphere Portal Struts Portlet Framework, in your portlet applications.

Date:  11 Jul 2005 (Published 24 Nov 2004)
Level:  Intermediate

Activity:  2349 views
Comments:  

Having a good design and implementation for error validation and exception handling enables applications to respond gracefully in abnormal conditions. This article tells how you can leverage error validation and exception handling features, which are built into the WebSphere Portal Struts Portlet Framework, in your portlet applications.

Most portlet applications accept input from users. The input can come in many forms, such as input text fields, dropdown lists, radio buttons, or check boxes. Sometimes users do not provide appropriate input. An application might expect specific date and phone number formats, require certain input fields, and need other specific forms of data. Therefore, the application needs to validate the input.

Websphere Portal V5.0 provides the Struts Portlet Framework, which supports deployment of Struts applications as portlets. You can leverage the error validation and exception handling features which are built into this framework. This article describes options for server side error validation and exception handling in Struts-based portlets.


Downloads

DescriptionNameSizeDownload method
Article in PDF format0411_sriramoju-ErrorValidationSPF.pdf.5MBFTP|HTTP
Error handling examplesStrutsExample1.zip1.9MBFTP|HTTP

Information about download methods          Get Adobe® Reader®


Biography

Author photo

Rajender Sriramoju works as a portal architect. He has worked with IBM Websphere Portal server since V4.0, and he has an extensive background in architecture, design, development, and implementation of large scale J2EE and portal applications. He works primarily on portal architecture, design, and integration with various enterprise systems. When he is not working, Rajender listens to Bluegrass and country music, and plays guitar.

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=WebSphere
ArticleID=31936
SummaryTitle=Error validation and exception handling in portlets, using the Struts Portlet Framework
publish-date=07112005
author1-email=rajender@sbcglobal.net
author1-email-cc=