I found this site http://www.java-samples.com while searching for free sample code for sending SMS using Java. When I browsed through the site, I found simple tutorials and sample code for J2ME applications at http://www.java-samples.com/j2me
Hope it helps someone else out there.
See Servlet tutorials for JSP Servlet tutorials
A very simple servlet example Servlet Example
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.