Mini Tutorial
http://www.theserverside.de/webservice-in-java/
- if you get the error
javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
Delete the xml files in tomcat\common\endorsed\ (source)
- if you get the error
Struts
JSP tags: http://struts.apache.org/1.x/struts-taglib/index.html
"The Apache Struts group encourages the use of the standard tags over the Struts specific tags when possible." (Sun's JSTL) JSTL example:
<!--some taglib import--> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <!--example array: --> <% request.setAttribute( "array", new String[]{"one","two","three"} );%> <html> <body> <p> <!--display Array:--> <c:forEach items="${array}" varStatus="loop"> [${loop.index}]: ${array[loop.index]}<br/> </c:forEach> <!--display Array in a different way:--> <c:forEach items="${array}" var="item"> ${array}<br/> </c:forEach> </p> </body> </html>