• 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

getting stuck with stuck-config.xml

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I am trying to build up a simple login app using struts1. but every time i am clicking on login button i am getting http 404 requested resource (/login) not found. I have tried by googling and do some changes in xml files (both web.xml and struts-config.xml) but could not getting through.

The requested resource (/login) is not available.

Can any body take a look on files and let me know what i am doing wrong ?

strust-config.xml is as follows :-




and web.xml is



login.jsp :




LoginAction.java:-




Thanks,
Manish
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mavi,

Where is LoginForm class ?
 
berender mavi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pyla,

Here is the LoginForm.java

 
Pyla Rao
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mavi,

In login.jsp remove "/" in form action tag.Then code look like as below.


That's wise your action class is not called.It may be solution for your problem.


Regards,
Pyla.
 
If you believe you can tell me what to think, I believe I can tell you where to go. Go read this tiny ad!
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!