• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Validate problem in addition to resetting chosen values?

 
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Problem #1: I have a problem with my validation. When I initially submit the form for the first time both html:select and html:file are flagged by the validation if they are left blank. My problem is if I submit one more time and leave all fields blank both html:select and html:file are not flagged
<html:select name="HtmlFileForm" property="itemType">
<html ptions collection="itemlists" property="id" labelProperty="description"/>
</html:select>
<html:file property="file"/>
Problem #2:If I select a value for both html:select and html:file and submit the form with mandatory fields left blank once the form is submitted
and the form is desplayed again with the validation errors the values I selected are no longer visible.
Thank you all for your time
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is your form session scoped?
 
john mattucci
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have tried both session and request and I still get the same outcome
reply
    Bookmark Topic Watch Topic
  • New Topic