error http status-500 invalid path was requested

error http status-500 invalid path was requested

I am using netbeans 6.8 + struts 1.3 + glassfish v3.I am not able to open add.jspx which contains add form.please help.

index.jsp [code] <%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> [/code]

struts-config.xml
[code]
<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
          "http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd">


<struts-config>
    <form-beans>
     <form-bean  name="pointForm"
    type="org.apache.struts.validator.DynaValidatorForm">
    <form-property  type="int"
    name="id"  initial="-1"/>
    <form-property  type="double"
    name="x"  initial="0"/>
    <form-property  type="double"
    name="y"  initial="0"/>
    <form-property  type="java.lang.String"
    name="color"  />
    </form-bean>
    </form-beans>

    <global-exceptions>

    </global-exceptions>

    <global-forwards >
        <forward name="add" path="/Add.do" />
        <forward name="welcome"  path="/Welcome.do"/>
    </global-forwards>

    <action-mappings>
       <action path="Add" forward="add.jspx"/>
       <action path="/Welcome" forward="/welcomeStruts.jsp"/>
    </action-mappings>

    <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>

    <message-resources parameter="com/myapp/struts/ApplicationResource"/>

    <!-- ========================= Tiles plugin ===============================-->
    <!--
    This plugin initialize Tiles definition factory. This later can takes some
    parameters explained here after. The plugin first read parameters from
    web.xml, thenoverload them with parameters defined here. All parameters
    are optional.
    The plugin should be declared in each struts-config file.
    - definitions-config: (optional)
    Specify configuration file names. There can be several comma
    separated file names (default: ?? )
    - moduleAware: (optional - struts1.1)
    Specify if the Tiles definition factory is module aware. If true
    (default), there will be one factory for each Struts module.
    If false, there will be one common factory for all module. In this
    later case, it is still needed to declare one plugin per module.
    The factory will be initialized with parameters found in the first
    initialized plugin (generally the one associated with the default
    module).
    true : One factory per module. (default)
    false : one single shared factory for all modules
    - definitions-parser-validate: (optional)
    Specify if xml parser should validate the Tiles configuration file.
    true : validate. DTD should be specified in file header (default)
    false : no validation

    Paths found in Tiles definitions are relative to the main context.
    -->
    <plug-in className="org.apache.struts.tiles.TilesPlugin" >
        <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />      
        <set-property property="moduleAware" value="true" />
    </plug-in>

    <!-- ========================= Validator plugin ================================= -->
    <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
        <set-property
            property="pathnames"
            value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
    </plug-in>

</struts-config>
[/code]

add.jspx
[code]
<?xml version="1.0" encoding="UTF-8"?>
<!--
    Document   : add
    Created on : Mar 4, 2012, 7:00:38 PM
    Author     : Administrator
-->
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
          xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
          xmlns:c="http://java.sun.com/jsp/jstl/core"
          xmlns:html="http://struts.apache.org/tags-html"
          xmlns:fn="http://java.sun.com/jsp/jstl/functions"
          xmlns:bean="http://struts.apache.org/tags-bean" version="2.0">
    <jsp:directive.page  contentType="text/html" pageEncoding="UTF-8"/>
    <html:xhtml/>
    <html:html >
        <head>
            <title>
               <bean:message key="add.title"/>
             </title>
         </head>
        <body>
            <h1>  
                <bean:message key="global.heading"/>
                <jsp:text></jsp:text>
             <bean:message key="add.heading"/>
             </h1>
             <html:errors/>
             <html:form  action="/add">
                 <table class="addedit" >
                     <tr>
                         <td>
                             <fmt:message key="pointForm.prompt.x"/>
                          </td>
                          <td><html:text name="pointForm" property="x"/></td>
                      </tr>
                      <tr>
                          <td>
                             <fmt:message key="pointForm.prompt.y"/>
                          </td>
                          <td><html:text name="pointForm" property="y"/></td>
                      </tr>
                      <tr>
                          <td>
                              <fmt:message key="pointForm.prompt.color"/>
                           </td>

                         </tr>
                         <tr>
                           <td>
                               <html:submit>
                                   <fmt:message  key="pointForm.add.submit"/>
                               </html:submit>
                           </td>
                         </tr>

                    </table>
            </html:form>

        </body>
    </html:html>
</jsp:root>
[/code]

web.xml
[code]
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <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>
        <init-param>
            <param-name>debug</param-name>
            <param-value>2</param-value>
        </init-param>
        <init-param>
            <param-name>detail</param-name>
            <param-value>2</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <jsp-config>
        <taglib>
            <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
        </taglib>
        <taglib>
            <taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
        </taglib>
    </jsp-config>
</web-app>
[/code]
View Answers









Related Tutorials/Questions & Answers:
error http status-500 invalid path was requested
error http status-500 invalid path was requested  I am using... Foundation//DTD Struts Configuration 1.3//EN" "http...;forward name="add" path="/Add.do" /> <forward name="welcome" path
error http status-500 invalid path was requested
error http status-500 invalid path was requested  I am using... Struts Configuration 1.3//EN" "http://jakarta.apache.org/struts/dtds..." path="/Add.do" /> <forward name="welcome" path="/Welcome.do"/>
Advertisements
error http status-500 invalid path was requested
error http status-500 invalid path was requested  I am using... Foundation//DTD Struts Configuration 1.3//EN" "http...;forward name="add" path="/Add.do" /> <forward name="welcome" path
error http status-500 invalid path was requested
error http status-500 invalid path was requested  I am using... Foundation//DTD Struts Configuration 1.3//EN" "http...;forward name="add" path="/Add.do" /> <forward name="welcome" path
Error is: Generated keys not requested.
Error is: Generated keys not requested.   Hi, Following error is coming in my program. Error is: Generated keys not requested. You need to specify Statement.RETURNGENERATEDKEYS to Statement.executeUpdate
chown error invalid user
chown error invalid user  I'm getting the following error on buliding the app in XCode. Can anyone explain me why this error occurred?   Error chown: MYDOMAIN\domain users: Invalid argument Command /usr/sbin/chown
runtime error:Invalid column name
runtime error:Invalid column name  Hello, Can anyone please help me on this query? Programatically it is showing run time error. But in sql query...; } } Console Output: Getting Results! java.sql.SQLException: Invalid column name
Error in context path
Error in context path   I Tried a Struts2 Login application having... = request.getContextPath(); System.out.println("Context Path " + contextPath...; } else{ this.addActionError("Invalid Credentails
defined actions in struts config still getting a HTTP 404 - Struts
, I am getting an Invalid Path requested error. Heres the code snippet from... I get this error HTTP Status 404 - Invalid path /pages/tiles/AddNewCurrency.../AddNewCurrency was requested description The requested resource (Invalid path
http 404 resource not found error
http 404 resource not found error   Sir, I have downloaded your... in tomcat manager. But when I try to run I am getting http 404 requested resource not found error. Kindly advise. ss
error "HTTP Status 500"
error "HTTP Status 500"  How to solve this error "HTTP Status 500
Getting File path error - JSP-Servlet
Getting File path error  I have a requirement where i need to get certain properties on application login page start itself. I an currently using String str = request.getRealPath("/")+"a" + System.getProperty( "file.separator
Error : http status 500?
Error : http status 500?  hello sir, am using netbeans6.7.1 version i implemented one program i.e web application ..when am excuting this one i got one error http status 500...please solve this error ..when did i mistakn
invalid configuration
#noconfig for more info. **ERROR***org.hibernate.MappingException: invalid...invalid configuration  hello I create hibernate.cfg.xml file Like... excute project show this error: log4j:WARN No appenders could be found for logger
Struts 2 : Http Status Error 404 - Struts
Struts 2 : Http Status Error 404  Hi All, I'm facing the below... --------------------------------------------------------------------------- ERROR(404) : "The requested... --------------------------------------------------------------------------- I started the tomcat server and typed http://localhost
how to ignore http 500 error?
how to ignore http 500 error?  In XML data parsing while connecting to many server through URL if one does not connect gives the error. Is there any process to ignore that URL connection and get data from other connection which
java http 404 status error - JSP-Servlet
java http 404 status error  I have tried to call a servlet from html page.. but it is showing http 404 status error.. and the description is "The requested resource is not available". I hav tried in all ways.. Plz give me
Still getting the http 404 error - Java Beginners
is userid? Anyway, whatever I do, I still receive the http 404 error...saying...Still getting the http 404 error  Dear experts, I refer... couldn't find the servlet. There is a problem in path. It is better to put the servlet
ModuleNotFoundError: No module named 'memect-http-error'
ModuleNotFoundError: No module named 'memect-http-error'  Hi, My... named 'memect-http-error' How to remove the ModuleNotFoundError: No module named 'memect-http-error' error? Thanks   Hi, In your
hibernate session invalid in jpa
hibernate session invalid in jpa  hibernate session invalid in jpa
invalid class exception
invalid class exception  Wondering why invalid class exception occurs
ModuleNotFoundError: No module named 'invalid-scraper'
'invalid-scraper' error? Thanks   Hi, In your python... named 'invalid-scraper' error will be solved. Thanks...ModuleNotFoundError: No module named 'invalid-scraper'  Hi, My
HTTP Status 404 - /web/login/showLogin.action Error in Struts 2 - Struts
HTTP Status 404 - /web/login/showLogin.action Error in Struts 2  Hi... the doLogin action . when I click on the link I get the following error type Status report message /web/login/showLogin.action description The requested
invalid cursor state - JSP-Servlet
invalid cursor state  what is Invalid cursor state in java and how...=res1.getString("VCHNAME"); here the spelling mistake makes the error thanks..." with "VCHUNAME" For more information on jdbc visit to : http
Getting HTTP 404 error in Spring web MVC with Hibernate Integration
Getting HTTP 404 error in Spring web MVC with Hibernate Integration   Hi, i am Getting HTTP 404 error in Spring web MVC with Hibernate Integration...;Please visit the following links: http://www.roseindia.net/struts/hibernate-spring
Invalid console appender in JBoss console
Invalid console appender in JBoss console  "ERROR: invalid console appender config detected, console stream is looping" The above is the error i am getting while starting the server after deploying the ear file into the jboss. I
ModuleNotFoundError: No module named 'odoo8-addon-web-invalid-tab'
the ModuleNotFoundError: No module named 'odoo8-addon-web-invalid-tab' error? Thanks... 'odoo8-addon-web-invalid-tab' error will be solved. Thanks...ModuleNotFoundError: No module named 'odoo8-addon-web-invalid-tab'  
ModuleNotFoundError: No module named 'invalid-pic-detector'
: No module named 'invalid-pic-detector' error? Thanks   Hi..., ModuleNotFoundError: No module named 'invalid-pic-detector' error...ModuleNotFoundError: No module named 'invalid-pic-detector'  Hi
error of HTTP Status 404 while running servlet on apache tomcat server
error of HTTP Status 404 while running servlet on apache tomcat server ... and have set classpath properly. on typing "http://localhost:8080" i do get... here, the browser responds "HTTP Status 404 - /java_mail/hello" wht could
path classpath
path classpath  EXPLAIN PATH AND CLASSPATH ? DIFF send me ans plz..., Path is system wide variable that tells where to find your commands. Lets... be in path. While Classpath is Enviroment Variable that tells JVM or Java Tools where
ModuleNotFoundError: No module named 'odoo10-addon-sale-procurement-group-by-requested-date'
-by-requested-date'  Hi, My Python program is throwing following error... 'odoo10-addon-sale-procurement-group-by-requested-date' error? Thanks...;odoo10-addon-sale-procurement-group-by-requested-date' error will be solved
ModuleNotFoundError: No module named 'odoo10-addon-sale-procurement-group-by-requested-date'
-by-requested-date'  Hi, My Python program is throwing following error... 'odoo10-addon-sale-procurement-group-by-requested-date' error? Thanks...;odoo10-addon-sale-procurement-group-by-requested-date' error will be solved
ModuleNotFoundError: No module named 'odoo10-addon-sale-procurement-group-by-requested-date'
-by-requested-date'  Hi, My Python program is throwing following error... 'odoo10-addon-sale-procurement-group-by-requested-date' error? Thanks...;odoo10-addon-sale-procurement-group-by-requested-date' error will be solved
ModuleNotFoundError: No module named 'odoo9-addon-sale-procurement-group-by-requested-date'
-by-requested-date'  Hi, My Python program is throwing following error...;odoo9-addon-sale-procurement-group-by-requested-date' error? Thanks...;odoo9-addon-sale-procurement-group-by-requested-date' error will be solved
installation error
installation error  Error : Invalid path, "C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -g -classpath "C:\Documents and Settings\Admin\My Documents" -d "C:\Documents and Settings\Admin\My Documents" "C:\Documents and Settings
installation error
installation error  Error : Invalid path, "C:\Program Files\Java\jdk1.6.0\bin\javac.exe" -g -classpath "C:\Documents and Settings\Admin\My Documents" -d "C:\Documents and Settings\Admin\My Documents" "C:\Documents and Settings
error
error  how do i set jdk home path in jcreator le
error
error  whats the error.............. import java.util.Scanner...; default :System.out.println("invalid choice"); break; } } }  ...; default :System.out.println("invalid choice"); break
error
servlets which is given at your link http://www.roseindia.net/servlets/ServletUserEnquiryForm.shtml getting an error given below SQLException caught: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error please suggest
http status 500 error in tomcat 6 while using eclipse helios
http status 500 error in tomcat 6 while using eclipse helios   package com.lala.servlets; import javax.servlet.*; import javax.servlet.http.... The server encountered an internal error () that prevented it from fulfilling
http status 500 error in tomcat 6 while using eclipse helios
http status 500 error in tomcat 6 while using eclipse helios   package com.lala.servlets; import javax.servlet.*; import javax.servlet.http.... The server encountered an internal error () that prevented it from fulfilling
http status 500 error in tomcat 6 while using eclipse helios
http status 500 error in tomcat 6 while using eclipse helios   package com.lala.servlets; import javax.servlet.*; import javax.servlet.http.... The server encountered an internal error () that prevented it from fulfilling
http status 500 error in tomcat 6 while using eclipse helios
http status 500 error in tomcat 6 while using eclipse helios   package com.lala.servlets; import javax.servlet.*; import javax.servlet.http.... The server encountered an internal error () that prevented it from fulfilling
http status 500 error in tomcat 6 while using eclipse helios
http status 500 error in tomcat 6 while using eclipse helios   package com.lala.servlets; import javax.servlet.*; import javax.servlet.http.... The server encountered an internal error () that prevented it from fulfilling
error
HelloWorld Deployment Error for module: HelloWorld: Error occurred during... [HelloWorld]. TargetNamespace.1 : Espace de noms "http://java.sun.com/xml/ns/j2ee" attendu mais l'espace de noms cible du document de sch�©ma est 'http
invalid cursor state - JSP-Servlet
invalid cursor state  Dear sir here my query is executing properly but i can't able to get the value of strUserid1 in while loop.when I am running...] Invalid cursor state   Hi friend, Please give Database
path - Java Beginners
meaning of path and classpath  what is the meaning of path and classpath. How it is set in environment variable.  Path and ClassPath in in JAVAJava ClassPath Resources:-http://www.roseindia.net/java/java-classpath.shtml
error
error  while iam compiling iam getting expected error
Error-
Error-   Hello, I would like to know about XSD file. I try to print XML file but I am getting error SAXException-- says Content is not allowed in prolog. Please help me
error
error  i have 404 error in my program plz tell me yhe solution about

Ads