vikas sharmaa wrote:i have not written reset or validate method in the LoginForm class. is it ok? and also, i have not entered input tag for action class in the struts-config.xml file. is it ok?
as per my knowledge, these are optional, but am asking this after reading below lines from the webpage :
execute() method of an action class is not called if ActionForm.validate() returns non-empty ActionErrors object. Instead, control is directly routed to the URI defined in "input" attribute of action mapping.
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
vikas sharmaa wrote:I have developed a very basic struts application. but my action class in not getting called. Please check below the web.xml, struts-config.xml files, and LoginAction.java files:
Please let me know, whats the problem in above code. if you require, i will copy LoginForm.java and welcome.jsp files also.
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
vikas sharmaa wrote:the problem is fixed now! i was mistakenly using older version of struts.jar where execute method was not defined in the Action class.
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Don't get me started about those stupid light bulbs. |