To connect database with Microsoft SQL 2000 and Tomcat 6 via JNDI Datasource.
-Â Requirement:
To connect database with Microsoft SQL 2000 and Tomcat 6 via JNDI Datasource.
-Â Requirement:
When using Struts, you can easily validate datas before excute. So many way to validate the form with Struts, you can use JavaScripts, XML validator…many, many way to validate them…This article is not a new way for this, but it’s simple to use if you’re not sure about use javascript or other way.
Before use validating, you must sure that you can create the Struts form. If not, read following article, it’s a tutorial how to Create Basic Struts Form.
Before read this article, be sure you know What is the Strusts Framework?
So, this article will explaint how to build an simple Web Struts Application?. It has many programs support easily-build-int Struts such as: MyEclipse, NetBean … But, the basic guide for building Struts is very helpful for new to Struts and Java programming. This example will help you understand Struts in detail. I’ll create new user interface to accept Name and Email address from user-input. In this case, form input was create with a basic JSP template called input.jsp and the success page will be success.jsp. Action class is just forwarding it to the sucess.jsp.