Posts

Showing posts from May, 2018

Struts 2.x program

 web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">   <display-name>Jtc1</display-name>   <welcome-file-list>     <welcome-file>index.jsp</welcome-file>   </welcome-file-list>     <filter>   <filter-name>struts2</filter-name>   <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>   </filter>     <filter-mapping>   <filter-name>struts2</filter-name>   <url-pattern>/*</url-pattern>   </filter-mapping> </web-app> login.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1"  ...

Struts 1.x program

 Struts-config.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"> <struts-config>     <form-beans>         <form-bean name="loginform" type="com.jtcindia.struts1.LoginForm" />     </form-beans>     <action-mappings>         <action path="/loginSubmit" name="loginform"             type="com.jtcindia.struts1.LoginAction" validate="true" input="/Login.jsp">             <forward name="home" path="/Home.jsp" />             <forward name="login" path="/Login.jsp" />         </action>  ...