This week's book giveaway is in the Agile and Other Processes forum. We're giving away four copies of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java and have Dr. Raoul-Gabriel Urma & Richard Warburton on-line! See this thread for details.
Hi, I got some problem about this task hope who know can help me!!!thanks 1st!!
i use the following code to identifier when select single radio then display it content else is multiple content
so my problem is in the Validate And Submit
it validate account Number, cheque Number,cheque Number From,cheque Number To and reason.
But the thing different between single and double is when i click single it display cheqye Number,else display cheque Number From and cheque Number To!!
so when i click single it suppose validate cheque Number only but it prompt out need fill in cheque Number From and cheque Number To .
so anyone can help me?
I believe one reason that nobody has responded as yet, is that this is some truly horrible code to understand.
That whole msg* thing you have going is hard to understand.
When you call the validate method with seemingly random permutations of them, that just screams to me of trouble waiting to happen.
However, on a bit of a closer look, the problem can be nutted down to this:
If you think about the JSP lifecycle, the java code executes, outputs an HTML page, and stops running.
View source on your generated HTML, and take a look at the validate method. Does it show what you want it to?
It will either produce the validation code for a single field. Or for the two fields.
if should be something like
Plus don't forget to validate this stuff on the server side as well :-)
posted 8 years ago
Sorry make you inconvenient about reading this code.
Actually my question is if select single it need validate single field else validate double field.
So how can i get the single Radio Button Selected and validate Single Field .Validate Single Field is put in the script? But i am using function show and hide!!!