need help for java program

Hi,

I need help with my web application. When i tried to run it using

localhost:8080

it's giving me error that

signup.do file is not available.

can someone tell me what could be wrong with my code?

I want to know what is .do file and what needs to do to have remove the error

I have also used struts config file.

Please help me.

Message was edited by:

star4588

[432 byte] By [star4588a] at [2007-11-27 4:52:22]
# 1
signup.do is not a file but an form action.This error means that you have no struts action (server side) that handles the web form actionlook at web.xml and in struts-config.xml and search signup.doby the way, are you developing a struts application ?
java_2006a at 2007-7-12 10:06:22 > top of Java-index,Java Essentials,New To Java...
# 2
yes i m developing a struts application.thanx for your reply.i will try to check my code.
star4588a at 2007-7-12 10:06:22 > top of Java-index,Java Essentials,New To Java...
# 3

See struts documentation here http://struts.apache.org/1.2.9/userGuide/building_controller.html#action_mapping_example

you should have something like that :

<action-mappings>

<action

path="/signup"

type="org.apache.struts.webapp.example.SignupAction"

name="signupForm"

scope="request"

input="/signup.jsp"

unknown="false"

validate="true" />

..........

</action-mappings>

in your struts-config.xml.

Hope That Helps

java_2006a at 2007-7-12 10:06:22 > top of Java-index,Java Essentials,New To Java...
# 4
Hi,I checked in my web.xml and struts-config file and added the code requiredbut now i m getting error that "Servlet action is not available"can anyone tell me what could be problem?please help me
star4588a at 2007-7-12 10:06:22 > top of Java-index,Java Essentials,New To Java...