struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Problems when not using html:form
Date Mon, 02 Feb 2004 15:10:51 GMT
Hi folks,

For a variety of reasons, I can't use the struts HTML tags in my jsps.  To
get things started, I got it working using html:form, but now I have to
remove that tag.  So, I'm trying to figure out how to specify the form to
correctly call my action.  The jsp gets displayed correctly, but when I
click the submit button, I get an invalid path error.

Here's what my jsp looks like...

   <!-- html:form action="Login" focus="userName" -->
   <form name="LoginForm" method="post" action="" focus="userName">
      <table border="0" width="100%">
      <!-- input fields removed for brevity... -->
         <td align="right">
            <input type="submit" name="Login" property="Login" value="Log
In" >
         <td align="left">
            <input type="submit" name="Reset" property="Reset" value
="Reset" >

And here's the relevant portion of my struts-config file...

    <action path="/Login" type
="com.edgil.TransactionMgr.Actions.LoginAction" name="LoginForm" scope
="request" input="/jsp/Login.jsp">
      <forward name="Main" path="/jsp/Main.jsp" redirect="false"/>

When I click submit, here's what I get:

Apache Tomcat/4.0.6 - HTTP Status 400 - Invalid path /jsp/Login was
type: Status report
message: Invalid path /jsp/Login was requested
description: The request sent by the client was syntactically incorrect
(Invalid path /jsp/Login was requested).

I suspect that /jsp/... is coming from the fact that the jsp is found in a
directory, called jsp, which is at the same level as WEB_INF.

So, what do I need to specify in the form to trigger the action correctly?


Mike Boucher        
Edgil Associates    

"Don't take life too seriously, you'll never get out of it alive!"

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message