struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anil Guntgatti" <anilg...@us.ibm.com>
Subject Problem with JoinStruts Example
Date Fri, 16 Mar 2001 19:39:17 GMT
Hi ,
I am new to struts, so need your help.
I have installed Apache Tomcat test environment v3.1 on VAJ 3.5.
I am using struts email examples which comes as part of the joinStruts.zip
to understand how all the struts
components work.
Have imported all the required parsers.
I can get the joinMVC.jsp page, but when I click on submit, it gives me
HTTP 400 - Bad Request error.

Relevant console output is given below:

New org.apache.struts.action.ActionMapping
Set org.apache.struts.action.ActionMapping properties
New org.apache.struts.action.ActionForward
Set org.apache.struts.action.ActionForward properties
Call
org.apache.struts.action.ActionMapping.addForward(ActionForward[success])
Pop org.apache.struts.action.ActionForward
Call
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/join,
type=web.mailinglist.JoinAction])
Pop org.apache.struts.action.ActionMapping

<JASPER_LOG> Fri Mar 16 13:56:55 EST 2001 JspEngine -->
/web/joinMVC.jsp</JASPER_LOG>
<JASPER_LOG> Fri Mar 16 13:56:55 EST 2001       ServletPath:
/web/joinMVC.jsp</JASPER_LOG>
<JASPER_LOG> Fri Mar 16 13:56:55 EST 2001          PathInfo:
/web/</JASPER_LOG>
<JASPER_LOG> Fri Mar 16 13:56:55 EST 2001          RealPath: D:\Program
Files\IBM\VisualAge for
Java\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\joinStruts\web\joinMVC.jsp</JASPER_LOG>

<JASPER_LOG> Fri Mar 16 13:56:55 EST 2001        RequestURI:
/joinStruts/web/joinMVC.jsp</JASPER_LOG>
<JASPER_LOG> Fri Mar 16 13:56:55 EST 2001       QueryString:
null</JASPER_LOG>
<JASPER_LOG> Fri Mar 16 13:56:55 EST 2001    Request Params: </JASPER_LOG>
<JASPER_LOG> Fri Mar 16 13:56:55 EST 2001 Classpath according to the init
parameter is:
</JASPER_LOG>
<JASPER_LOG> Fri Mar 16 13:56:55 EST 2001 Package name is: web</JASPER_LOG>
<JASPER_LOG> Fri Mar 16 13:56:55 EST 2001 Class file name is: D:\Program
Files\IBM\VisualAge for
Java\ide\project_resources\Apache_Tomcat_Test_Environment\work\localhost_8080%2FjoinStruts\_0002fweb_0002fjoinMVC_0002ejspjoinMVC.class</JASPER_LOG>

<JASPER_LOG> Fri Mar 16 13:56:55 EST 2001 Package name is: web</JASPER_LOG>
<JASPER_LOG> Fri Mar 16 13:56:55 EST 2001 Class file name is: D:\Program
Files\IBM\VisualAge for
Java\ide\project_resources\Apache_Tomcat_Test_Environment\work\localhost_8080%2FjoinStruts\_0002fweb_0002fjoinMVC_0002ejspjoinMVC.class</JASPER_LOG>

<JASPER_LOG> Fri Mar 16 13:56:56 EST 2001 Class name is:
_0002fweb_0002fjoinMVC_0002ejspjoinMVC_jsp_0</JASPER_LOG>
Context log path="/joinStruts" :action: Processing a POST for /web/join
Context log path="/joinStruts" :action: Setting locale 'en_US'
Context log path="/joinStruts" :action:  No mapping available for path
/web/join


Relevant contents of struts-config.xml is shown below:

    <global-forwards>
        <forward   name="logon"     path="/logon.jsp"/>
        <forward   name="success"   path="/mainMenu.jsp"/>
    </global-forwards>


    <!-- ========== Action Mapping Definitions
============================== -->
    <action-mappings>
        <!-- add user to mailing list -->
        <action  path="/join"
                 name="joinForm"
                 type="web.mailinglist.JoinAction"
                scope="request"
                input="/joinMVC.jsp"
             validate="true">
            <forward  name="success"  path="/welcome.html"/>
        </action>

Would appreciate any help.
AAG.


Mime
View raw message