Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

struts 1.3 hello world

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">

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.


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="" input="/Login.jsp">

Good Luck

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.
Story like this gets better after being told a few times. Or maybe it's just a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic