Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Struts error http status-500 invalid path was requested

Have Programming Question? Ask it here!
 
 
 


raj shah
error http status-500 invalid path was requested
0 Answer(s)      2 years and 4 months ago
Posted in : Struts


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]

Advertisement
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... Foundation//DTD Struts Configuration 1.3//EN" "http...;forward name="add" path="/Add.do" /> <forward name="welcome" path
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... Struts Configuration 1.3//EN" "http://jakarta.apache.org/struts/dtds..." path="/Add.do" /> <forward name="welcome" path="/Welcome.do"/>
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 "HTTP Status 500"
error "HTTP Status 500"  How to solve this error "HTTP Status 500
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 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
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
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
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
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
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
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
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
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
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
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
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
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
HTTP Status 404 -
HTTP Status 404 -   HTTP Status 404 - type Status report message description The requested resource () is not available. Apache Tomcat/5.5.31 how to rectify the above error
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
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
HTTP 500 Internel server error in Custom tag program on Weblogic 8.1 - Java Beginners
HTTP 500 Internel server error in Custom tag program on Weblogic 8.1  Dear sir, Please attend my problem... I face the Error 500 Internel server error when I run the custom tag program on weblogic 8.1. My program Structure
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 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
File Upload in struts2 - Invalid field value for field
File Upload in struts2 - Invalid field value for field   Hi I am also getting following error while trying to upload a file using struts file tag : Invalid field value for field "upload". My webContents->Web-Inf->lib
JMeter HTTP request example
JMeter HTTP request example  Concerning: http://www.roseindia.net/jmeter/using-jmeter.shtml how do I set path? also what do i need to do to get the helloworld servlet work? Thanks in advance
Path was not found
Path was not found  The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path
HTTP Protocol
the Http methods to which the thing at the requested URL can respond. 7) PUT Method...HTTP Protocol          HTTP Protocol stands for Hyper Text Transfer Protocol
Attribute dojoType invalid for tag iterate according to TLD - Ajax
Attribute dojoType invalid for tag iterate according to TLD   Attribute dojoType invalid for tag iterate according to TLD what...   Hi friend, Read for more information about dojo at http
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
HTTP Status 500 -
HTTP Status 500 -   Hi, I am new to jsp... Installed Tomcat 5.5.... wrote. i can see these errors... HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented
path problem - Java Beginners
path problem  I dont know how to set the path. What path should we...-FINAL-20081019.jar in jdk's lib folder. I entered path as "C:\Program Files\Java\jdk1.6.0_07\lib" , is this correct? Becoz even after this path compilation
userregistration code -- http://www.roseindia.net/jsp/user-registration-form-using-jsp.shtml
userregistration code -- http://www.roseindia.net/jsp/user-registration-form-using-jsp.shtml  While running this application on netbeans7.0 , i am getting the following error: message /userregister/ description The requested
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
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
error
error  whats the error.............. import java.util.Scanner...; default :System.out.println("invalid choice"); break; } } }  ...; default :System.out.println("invalid choice"); break
if there is an invalid entry in html:file control then form is not submitting. - Struts
if there is an invalid entry in html:file control then form is not submitting..." and submit - form will submit without any problem Problem is here -- 4)enter invalid... details with source code and visit to : http://www.roseindia.net/struts
Error - Java Beginners
Error  How to rectify requested resource()not found . HTTp-404 error
path setting - JSP-Servlet
give folder name only it shows error as cannot find the specified path. I ghad...path setting   Hello friends, I download file uploading coding from the following url: http://www.roseindia.net/jsp/file_upload/Sinle
Advertisements
 

 

 

DMCA.com