Thanks for your response.
I have put System.out in the very first line of action class.
Code snippet:
JSP:
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html>
<head>
<title>Web JSP</title>
</head>
<body>
<html:errors/>
<html:form action="/submit.do">
Lastname <html:text property="lastname"/>
Address <html:textarea property="address"/>
Married <html:checkbox property="married"/>
<html:submit/>
</html:form>
</body>
</html>
Struts Config :
<action path="/submit"
type="web.WebAction"
name="webForm"
input="/web.jsp"
scope="request"
validate="true">
<forward name="success" path="/index.jsp"/>
<forward name="failure" path="/error.jsp"/>
</action>
Action class :
public ActionForward execute(ActionMapping mapping,HttpServletRequest request, ActionForm form,HttpServletResponse response){
System.out.println("enter action");
WebForm webform=(WebForm)form;
String lastname=webform.getLastname();
request.setAttribute("lastname",lastname.toUpperCase());
return(mapping.findForward("success"));
}