my dog learned polymorphism
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: 63221

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: struts hello world
jQuery in Action, 3rd edition