Linux Today: Linux News On Internet Time.

developerWorks: Import Content to Your Web Site

Aug 27, 2003, 07:00 (0 Talkback[s])
(Other stories by Brett McLaughlin)

"The last installment of JSP best practices was a crash-course introduction to the JSTL. I showed you how to load JSTL on your Web container and convert a JSP file to use JSTL tags. While we were at it, I briefly introduced the c:import tag. Like jsp:include, c:import uses parameters to intelligently move content around on your Web site. But unlike the include directive, c:import doesn't limit its reach to local files.

"This time I'll show you how to convert jsp:params to c:params, so that you can use the import tag to pass parameters and manipulate local content just like you did with the include tag. On top of this basic functionality, you'll also learn how to use c:import to pull in content from other Web sites. After you've got a file on your site, it's easy enough to wrap it in your site's look and feel, which makes importing an easy way to build up your site in a hurry..."

Complete Story

Related Story:
developerWorks: JSP Best Practices: Intro to Taglibs(Aug 11, 2003)