This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes getting stuck with stuck-config.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "getting stuck with stuck-config.xml" Watch "getting stuck with stuck-config.xml" New topic
Author

getting stuck with stuck-config.xml

berender mavi
Ranch Hand

Joined: Feb 18, 2011
Posts: 31
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
Pyla Rao
Ranch Hand

Joined: Jul 10, 2012
Posts: 50
Hi Mavi,

Where is LoginForm class ?
berender mavi
Ranch Hand

Joined: Feb 18, 2011
Posts: 31
Hi Pyla,

Here is the LoginForm.java

Pyla Rao
Ranch Hand

Joined: Jul 10, 2012
Posts: 50
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.
 
wood burning stoves
 
subject: getting stuck with stuck-config.xml
 
Similar Threads
when iam running my struts application following error comes please help me
problem with the web.xml
web portal in struts and nothing is working at all
please help me error comes on my struts application see the source code for details
How is a request handled within struts framework