File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 63865

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] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: struts hello world
It's not a secret anymore!