Hi Higginson,
Thank you for replying
Am not getting what exactly you were telling .Againi i tried this program now am getting error like..lee/lookup resource is not available
am putting all my files hav a look on that
this is my login.jsp
<html>
<head> <h1>
Struts application </h1></head>
<body>
<form action="lookup" name="lookupform"/ >
<input type="text" name="username" />
<input type="text" name="password"/>
<input type="submit" name="submit" value="login"/>
</form>
</body>
</html>
This is web.xml
<web-app>
<display-name>Struts Blank Application</display-name>
<!-- Standard Action
Servlet Configuration -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- Standard Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- The Usual Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
and this is my struts-config.xml file
struts-config>
<form-beans>
<form-bean name="lookupform" type="LoginForm"/>
</form-beans>
<action-mapping>
<action path="/lookup" name="lookupform" type="LoginAction" input="login.jsp" >
<forward name="success" path="/enter.jsp"/>
<forward name="fail" path="/welcome.jsp"/>
</action>
</action-mapping>
</struts-config>
is there any thing that i have to do..