aspose file tools*
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting stuck with stuck-config.xml