To do something like that, you would have to use JSTL functions because the DOT notation you have written is interpreted as: attachBean.getAttachMimeType().getStartsWith(<--- error So, each DOT is referencing a property of the JavaBean. I would recommend checking out Sun's JSP/JSTL documentation. Or taking a closer look at the examples application that is included with Jakarta's Standard Taglibs. -----Original Message----- From: Caroline Jen [mailto:jiapei_jen@yahoo.com] Sent: Thursday, July 01, 2004 2:50 PM To: struts-user@jakarta.apache.org Subject: What Is Wrong With This Tag? It seems that I have problems to get JSTL tags right.... error message: 74: tag = 'if' / attribute = 'test': An error occurred while parsing custom action attribute "test" with value "${attachBean.attachMimeType.startsWith('image/')}": Encountered "(", expected one of ["}", ".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||"] __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org