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 profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

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:  3204 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



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=

My developerWorks community

IBM SmartCloud trial. No charge.

IBM PureSystems on a kaleideoscope background

Unleash the power of hybrid cloud computing today!


Special offers