• 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

Bypassing Required Validation when first entering a page

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am linking to a page which has some required form fields. The first time I am on the page though I don't want it to run the action or validate the fields. When I put in the actual location of the JSP though, not that I wanted to do it this way anyway, the images are all broken. In what way can I link to the page to stop this?
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use absolute URLs.
 
Gran Roguismo
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, that's what I meant by saying that I put in the actual location of the JSP. it's screwing up the images though because it does not know where to find them. Not exactly sure why that is, but again, that wasn't the way I wanted to go about it anyway.

So fer this is what I'm doing: I have a conditional in the form that will check to see if the user is valid. This was the previous problem that I was having. Then it will check for a dirty bit that I have also placed as a hidden field in the page. Initially the bit is set to true. But when the page is loaded it's switched and it can go to the second part of the conditional where the error messages are being displayed.
Because I still wish it to halt running the action on the first I have actually given it a blank error to display.
What do you think of this solution? Good/bad. Better way to do it?
 
My first bit of advice is that if you are going to be a mime, you shouldn't talk. Even the tiny ad is nodding:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic