ciao a tutti
ho creato il bean:

public class StringFormat {
...
public boolean isValidEmailAddr(String email) {
boolean valido = false;
if (email!=null && email.indexOf("@")!=-1 && email.indexOf(".")!=-1) {
valido = true;
}
return valido;
}
...
}


ed il bean:

public class Docente {
...
public String getEmail() {
return this.email;
}
...
public void setEmail(String value) {
this.email = value;
}
...
private String email;
}


nel file controllo.jsp, importo i 2 beans:

<jsp:useBean id="formattazione" scope="page" class="StringFormat" />
<jsp:useBean id="docente" scope="request" class="Docente" />
<jsp:setProperty name="docente" property="email" />


voglio controllare se la mail inserita è effettivamente una mail:

<c:choose>
<c:when test='${formattazione.isValidEmailAddr(${docente.e mail})} == true'>
OK
</c:when>
<ctherwise>
NO
</ctherwise>
</c:choose>


MA NON FUNZIONA!
Cosa sbaglio?

L'errore che mi da è il seguente:


tag = 'when' / attribute = 'test': An error occurred while parsing custom action attribute "test" with value "${formattazione.isValidEmailAddr(${docente.email} )} == true": Encountered "(", expected one of ["}", ".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||"]


c'è qualche anima pia che può aiutarmi?
grazie
cawa