Even after putting lots of effort i am not able to get the error in this code
this is my Struts.xml file
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" "http://struts.apache.org/dtds/struts-2.3.dtd"> <struts> <constant name="struts.enable.DynamicMethodInvocation" value="false"/> <constant name="struts.devmode" value="false"/> <constant name="struts.devMode" value="false" /> <package name="loginmodel" extends ="struts-default"> <action name ="emplogin" class ="action.Empaction"> <result name = "input">/Registration/empregistration.jsp</result> </action> </package> </struts>
my web.xml file is
HTML Code:<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:javaee="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" id="WebApp_ID" version="2.4"> <display-name>Vsource</display-name> <welcome-file-list> <welcome-file>/Registration/empregistration.jsp</welcome-file> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> </web-app>
and my jsp page is
i am getting error message of request resource()is not availableHTML Code:<%@ page language ="java" contentType ="text/html; charset=ISO-8859-1" pageEncoding ="ISO-8859-1"%> <%@ taglib uri ="/struts-tags" prefix = "s" %> <html> <head><title> Vsource </title></head> <body> <s:form action="emplogin.action" method="post"> <s:textfield name="firstname" label="Employee Firstname"/> </s:form> </body> </html>
Please, help me


LinkBack URL
About LinkBacks
Reply With Quote