This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Servlets and the fly likes struts hello world Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

struts hello world

J.B. White

Joined: Jun 11, 2009
Posts: 2
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">

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.


David Newton

Joined: Sep 29, 2008
Posts: 12617

This should be in the Struts forum, and please UseCodeTags.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63341

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.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: struts hello world
jQuery in Action, 3rd edition