File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes struts 1.3 hello world Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts 1.3 hello world" Watch "struts 1.3 hello world" New topic
Author

struts 1.3 hello world

J.B. White
Greenhorn

Joined: Jun 11, 2009
Posts: 2
I am learning Struts 1.3 and writing a hello world app. I want to submit an html form

<form action="/login" method="post">
<input type="submit">
</form>

and have it handled by



with a struts-config.xml entry:


<action path="/login" type="net.jimserver.loginaction" >
<forward name="success" path="/pages/login.jsp"/>
</action>

this is not working. Any hints as to where I am going wrong?
this approach gives error 404 The requested resource (/login) is not available.

Thanks,
Jim




michell o'brien
Ranch Hand

Joined: Jun 09, 2009
Posts: 37
Hi White

I am a starter too. U'r code looks flawless to me. Just a friendly suggestion

1. Try using struts html tags like <html:form>, <html:submit> instead of normal html tags
2. put input in

<action path="/ABC" type="abc.abc.abc.abc" input="/Login.jsp">

Good Luck

Adam LaFaye
Greenhorn

Joined: Apr 14, 2009
Posts: 21
what server are you using? can you go into the admin console of your server and see if your classes are deployed? if so launch your application from the admin server console.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: struts 1.3 hello world
 
Similar Threads
404 Error
Hi 'm strugling lot to run a simple hello world prgm
javax.servlet.jsp.JspException: No getter method for property: "id" of bean: "Login.LoginForm"
deployment errors
struts hello world