question: public static String createWebXmlSource ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" ) ; sb . append ( "<web-app xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" ) ; sb . append ( "xmlns=\"http://java.sun.com/xml/ns/javaee\"\n" ) ; sb . append ( "xmlns:web=\"http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd\"\n" ) ; sb . append ( "xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee\n" ) ; sb . append ( "http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd\" version=\"2.5\">\n" ) ; sb . append ( "\t<!-- TODO: Add <servlet> tags for each servlet here. -->\n" ) ; sb . append ( "\t<!-- TODO: Add <servlet-mapping> tags for each <servlet> here. -->\n" ) ; sb . append ( "\t<!-- TODO: Optionally add a <welcome-file-list> tag to display a welcome file. -->\n" ) ; sb . append ( "</web-app>\n" ) ; return sb . toString ( ) ; }
target:  Generate the source for a web.xml file with placeholders for the servlet, servlet-mapping, and welcome-file-list tags.