File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Need Help on struts.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Need Help on struts...." Watch "Need Help on struts...." New topic
Author

Need Help on struts....

lokesh rajarathnam
Ranch Hand

Joined: May 17, 2007
Posts: 35
Hello all

Im new to struts,(using struts1.3) I need help....

I writen ActionForm and ActionServlets for an loginform...
after running my code i getting following error.....

The content of element thype "action-mappings" must match "(action)*"


Strutshome.jsp




LoginActionServlet



LoginForm



web.xml



struts-config.xml


Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30293
    
150

Lokesh,
In your struts config file, the XML is malformed. You must have matching opening and closing tags. Also note that the action should be within an action-mappings tag. See section 5.3.3 for an example.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ashimashi Kabashi
Ranch Hand

Joined: Sep 11, 2006
Posts: 84
you mite want to nest the forward tags inside the action tags
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need Help on struts....