On your form make sure you have....

<html:form action="/login" focus="name">
...

Then define the following forward in your struts-config

<forward name ="login" path="/login.do" />
...

If this does not work, try including your form code so people can help you
better.

Rick Hightower
Director of Development
eBlox, Inc.

Check out our new website!
www.eblox.com

Contact Info:
eBlox Tucson
phone: 520-615-9345 x103
fax: 520-529-5774

Rick's stuff:
http://www.eblox.com/people_detail.php?id=52
http://www.geocities.com/rick_m_hightower/
http://www.brainbench.com/transcript.jsp?pid=2351036


-----Original Message-----
From: Debasish Ghosh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 7:08 PM
To: [EMAIL PROTECTED]
Subject: newbie question


Hi all -

I am facing a weird problem, which I could not solve
in the last couple of hours. I checked up the
mail-archive but could not locate any solution to
this.

The application has a login screen (login.jsp), which
validates a user. There is an ActionForm (LoginForm)
with appropriate get and set methods.

The struts-config.xml looks like :

  <form-beans>

    <!-- Logon form bean -->
    <form-bean      name="loginForm"
                    type="com.anshin.LoginForm"/>

  </form-beans>

    <!-- Process a user logon -->
    <action    path="/login"
               type="com.anshin.LoginAction"
               name="loginForm"
               validate="true"
               input="login.jsp">

             <forward name="success"
path="/login.jsp"/>
     </action>

When I execute the application (invoke login.jsp), I
get a 404 error on the page "login.do". I gave
debugging statements and I find that the get methods
of the ActionForm gets executed, but nothing else
happens. It does not even enter the LoginAction class.
But from the Tomcat startup messages, I find that the
mappings have been identified and loaded by Tomcat.

I have struts.jar in WEB-INF/lib. I am really banging
my head over this problem. The other applications like
struts-example etc. are running fine ..

Pls. help.

Regards.

- Debasish

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Reply via email to