jen franzke

Greenhorn
+ Follow
since Mar 13, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by jen franzke

What is the best way to handle validation of the business rules using Struts 1.1? Also, what is the best way to handle validation that can't be done using regular expressions in validation.xml?
Thanks!
-Jen
20 years ago
jblocks.data.CountryCode is the class where the data resides. CountryCode.getCountryCodes returns a List of CountryCodes. So the data is in a class, not in a database.
client-side (?). It is in the head of a .jsp file.
I need to populate a drop-down list in a form with a list of Country Codes that can be obtained by calling CountryCode.getCountryCodes(), which returns a List. I am trying to use a JavaScript function to do this, but it doesn't seem to be working. I have included the code below. I am still new to JS, so please be kind.

<script language="JavaScript1.2">
import jblocks.data.CountryCode;
function loadCountryCodes() {
countryCodes = new Array(CountryCode.getCountryCodes().size());

for (i = 0; i < countryCodes.length; i++) {
countryCodes[i] = CountryCode.getCountryCodes().get(i);
}

document.Table2FORM.nationality.options = countryCodes;
}
</script>
...and right before the <form> tag...
<script language="JavaScript1.2">loadCountryCodes();</script>

Any help that can be offered would be much appreciated!
-Jen
I am working on an application that usess the Struts framework. We want to remove the search parameters from the URL when a user does a search by clicking on a link (no forms involved). Does this need to be done in the Action, or is there another way to do it?
Thanks!
21 years ago