Hi,
i wonder if there is a way of storing and accessing variables inside an array.
To make things a little more clear, i used coding PHP and the following construct has been one of my favourite ones:
So "name" and "street" are variable-names, which i can access by ${"$value"}.
This was a wonderful way, of checking if forms have been completely filled out.
Is there any possibility doing this in java/jsp?
Thanks in advance,
Daniel
i wonder if there is a way of storing and accessing variables inside an array.
To make things a little more clear, i used coding PHP and the following construct has been one of my favourite ones:
Code:
$checkarray=array("name", "street");
foreach($checkarray as $value) {
if(trim(${"$value"})=="") {
${"error_"."$value"}="Error";
$error++;
} // end if
} // end foreach
So "name" and "street" are variable-names, which i can access by ${"$value"}.
This was a wonderful way, of checking if forms have been completely filled out.
Is there any possibility doing this in java/jsp?
Thanks in advance,
Daniel