wood burning stoves
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts 1.3 hello world" Watch "struts 1.3 hello world" New topic

struts 1.3 hello world

J.B. White

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">

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"/>

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.


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

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
It's not a secret anymore!