Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Struts2 Request resource is not found

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Location
    Bangalore
    Posts
    20
    My Mood
    Fine
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Struts2 Request resource is not found

    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


    HTML 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>
    i am getting error message of request resource()is not available
    Please, help me
    Last edited by freakycoder; December 4th, 2012 at 01:13 AM. Reason: forget to write error messege


  2. #2
    Junior Member
    Join Date
    Jun 2012
    Location
    Bangalore
    Posts
    20
    My Mood
    Fine
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Struts2 Request resource is not found

    Please , replay

Similar Threads

  1. Struts2 without execute method
    By tcstcs in forum Web Frameworks
    Replies: 3
    Last Post: May 29th, 2013, 07:24 AM
  2. STRUTS2 with JSON
    By karthikkarnati in forum Web Frameworks
    Replies: 1
    Last Post: May 9th, 2012, 09:53 AM
  3. struts2 is better or spring?
    By the light in forum Web Frameworks
    Replies: 0
    Last Post: June 26th, 2011, 11:10 AM
  4. MultiLevel Combobox in Struts2
    By tcstcs in forum Web Frameworks
    Replies: 0
    Last Post: May 23rd, 2011, 06:47 AM
  5. Plugin the struts2 framework
    By kalees in forum Web Frameworks
    Replies: 1
    Last Post: January 15th, 2010, 01:19 AM