Win a copy of Head First Android this week in the Android forum!

Ryan White

Greenhorn
+ Follow
since Feb 20, 2008
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 Ryan White

Nevermind, fixed the problem. I mistakenly had validate set to true on the action for adding that email to the list.
13 years ago
Is there a way to perform validation only on the submit action and not on other page actions? I have a button to add an item to a list in the form, but the page is performing validation on the whole form upon click of this button.

Because one of the page validation rules is that this list be populated with at least one item, it will not let me add any items to the list.
13 years ago
I can't do that because then it is required for the main form on the page. This is another form within the main form. The e-mail field has an add-email button that adds whatever is in that field to a text box with a list of multiple e-mail addresses. So when the user goes to submit the main form, they should have added the email in the email field to the multi e-mail text box therefore making the email field blank upon final submission.
13 years ago
I have a form that has 2 e-mail fields. One is the entry field with an "add-email" button next to it that, when clicked, adds the e-mail to a CSV list in the other (locked) e-mail field. this is part of an overall form. Apparently, the built in Struts e-mail validator doesn't handle a null condition because it is allowing me to submit a null with the add-email button. I can't set it as required or the main form won't let me submit without an e-mail in that field which should be empty upon final form submission. The user should have clicked add-email to populate whats in the e-mail field to the CSV list of e-mails.

What can I do here? the Struts e-mail validator works in ensuring the correct format (xxx@xxx.xxx) but somehow it interprets nothing as being a correct e-mail too...

Thanks
~Ryan
13 years ago
Whenever I try to edit anything in a JSP, MyEclipse crashes with this error:



Any ideas?
Does anyone have any help on this? Or at least a direction to point me in?
13 years ago
Hello, I'm relatively new to Struts and JSP and am having some difficulty figuring out my problem here. I am trying to pass attributes to a JSP from an Action Class. I'm following the example of existing code but there must be something that I forgot to change in order to make it work. I keep getting the following error:



Is there something in the struts-config file that needs to indicate that attributes are being passed? Like I said I have one ActionClass and JSP that work and I'm trying to add an additional page. I thought I duplicated all of the essential functionality but obviously I'm missing something.

13 years ago