Questions tagged [struts-validation]

Use this tag for questions related to validation of data for struts.

Struts Framework provides the functionality to validate the form data. It can be use to validate the data on the users browser i.e. client side as well as on the server side.

For Server side validation of form we can sub class any FormBean with DynaValidatorForm class and for client side validation we can do it using validation-rules.xml with javascript functions enclosed.

146 questions
0
votes
2 answers

jsp property

I need to pass the value from jsp file property in a loop. Here is the code <% for (int i = 0; i < value.size(); i++) {
User
  • 135
  • 2
  • 4
  • 13
0
votes
1 answer

Struts File Upload identify correct extension instead of .tmp

I am new to Struts and working on File Upload using Struts. Client: It is Java Program which hits my Strut app by using apache HttpClient API and provides me File. Client as per need sometime gives me .wav file and sometime .zip file and sometime…
Jayesh
  • 6,047
  • 13
  • 49
  • 81
0
votes
1 answer

html-el:checkbox gets checked after a Struts validation error display

I have a very simple issue. Below is my JSP code , where I display multiple check boxes in rows. By default all checkbox are checked, and if user wants to ignore certain row, he unchecks that row's checkbox. My issue is, if a row's checkbox is…
JavaKB
  • 438
  • 1
  • 3
  • 18
0
votes
1 answer

How to return values to jsp when validation fails

I have this form that allows user to modify a bean saved in DB:
Titolo
Pagine
0
votes
0 answers

how to implement the struts project into my own project?

As a trainee I have been working on a project, a java web application. Till now i have used javascript and jquery for validations but now I also know struts 1.x and struts 2 and want to apply that instead of javascript... So I have to copy all the…
nr5
  • 4,228
  • 8
  • 42
  • 82
0
votes
1 answer

How to perform validations on the select items using Javascript or Struts1.3.8?

I'm using Struts 1.3.8. In my JSP there is a select option with dynamically populated items in it. How do I perform validations on the select option when the user doesn't select any item? The required rule is not working. Any idea or suggestions?…
Mr.Chowdary
  • 517
  • 1
  • 6
  • 18
0
votes
1 answer

Unable to display Struts2 fieldError

I have created the index.jsp which send action request After completing this the request is forwarded to radio.jsp. In this one i am showing country, state list etc.. (so i am…
Daya
  • 724
  • 3
  • 14
  • 32
-1
votes
1 answer

Struts javascript vaidation

Hi friends I want to validate password with confirm password in struts through declarative javascript validation but its not working please helpme.
Nilesh Shukla
  • 309
  • 2
  • 5
  • 12
-1
votes
1 answer

struts2 Login Application using jsp with mysql database

Not going on to success page. Please tell me where I'm going wrong. 1.xml:
dpk12
  • 95
  • 2
  • 16
-1
votes
2 answers

Struts Validation Not Working [strange]

I think I get a strange condition in struts validation, because sometimes it works and sometimes do not work. I using maven. On the first install, i get it work. But after maven clean, it never work again. When I install my project (maven…
Mahadi Siregar
  • 615
  • 3
  • 17
  • 38
-2
votes
1 answer

ValidatorException exception struts validation framework

I am getting the following error while submitting my form using struts validation frame work Exception Stack Trace org.apache.commons.validator.ValidatorException: Unknown field Axles Spacing Distance in testForm Please help us in resolving this…
user2777452
  • 37
  • 1
  • 1
  • 4
1 2 3
9
10