Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts 1.3 hello world

 
J.B. White
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic