Two Laptop Bag*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts 1.3 hello world