This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

struts hello world

 
J.B. White
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am learning Struts 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




 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
This should be in the Struts forum, and please UseCodeTags.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64185
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic