Comments
|
Posted By madhusudhan On 01-Dec-09 07:04:22 AM
sir in this example, in struts.xml under register action, you have specified the result "input". but in the actionclass, the execute method is not returning the "input" rather it is having the success.. plz explain me sir..
|
|
Posted By Srikanth Pragada On 01-Dec-09 02:39:20 PM
input string in action configuration specifies the page to be displayed if any validation errors occur. So in the example, if execute() method returns success it goes to registered.jsp, if any validation occurs it goes to register.jsp.
|
|
Posted By srinivasu namburi On 02-Dec-09 09:59:01 AM
I came to understand from above topic is, validations in struts 2.0 is bit simpler when compared to 1.x version and no need to add extra plugins as like in 1.x version.Thx for the example.
|
|
Posted By jay On 21-Jan-10 12:24:18 PM
Superb!!! I m new to struts 2.0! I know to give validation without using validate() function...Thanks a lot
|
|
Posted By Raaz Nagulapalli On 03-Mar-10 10:28:43 PM
sir i am one of the regular visitor of your website for learning and updating my knowledge in java and j2ee applications. The stuff you are provided for visitor's is really good and useful to us.
|
|
Posted By ganesh On 14-Jun-10 04:11:44 PM
Am gettin the error struts-tags not found.Do i have to copy this from somewhere .if so from i can get it n to where i ve to copy that.
|
|
Posted By radhika On 08-Sep-10 03:53:28 PM
Hi i seem to have some problem here. The password and confirm password equality message is not getting displayed. I have added actionerror tag in the jsp. Please let me know where am i going wrong
|
|
Posted By Venkat On 18-Feb-11 03:23:59 PM
could you please us an example for password and confirm password matching. If two password do not match , it should us error message.
Thank you.
|
|
Posted By praveenkumar On 18-Jul-11 06:16:42 PM
dis is praveen new to struts
i m unable to use :::
import com.opensymphony.xwork2.ActionSupport;
can u pls suggest me how i can use xwork
|
|
Posted By Durga On 19-Mar-12 03:11:39 PM
The above example is very simple and easy to understand tnq.
|
|
Posted By deepak On 01-May-12 02:50:27 PM
I am using netbeans so where to put this registeraction-validation.xml file in directory .
|
|
Posted By ram On 14-May-13 10:17:30 AM
thanks for your example.i am done validations according to my program using struts2 but i am getting exceptions like there is no name space for action.
but i am providing result tag for both input and success.but in my jsp im using normal form.is there any problem with out using struts2 from.thanks in advance....
|
|
Posted By Ashwanth On 10-Oct-13 09:30:04 AM
It is good example for the beginners
|