RE: String manipulation

2009-02-27 Thread Richard Gundersen
dName="accountFileFileName") Silly mistake I know. If I run into any more problems with it though I'll use your suggestion - thanks -Original Message- From: David Harland [mailto:harlander3...@yahoo.com] Sent: 27 February 2009 11:04 To: Struts Users Mailing List Subject: RE:

RE: String manipulation

2009-02-27 Thread David Harland
ctionError("File type not allowed"); return; } Remove |(xls) if you dont want to allow xls files --- On Fri, 2/27/09, Richard Gundersen wrote: > From: Richard Gundersen > Subject: RE: String manipulation > To: "Struts Users Mailing List" >

RE: String manipulation

2009-02-27 Thread Richard Gundersen
To: Struts Users Mailing List Subject: RE: String manipulation Oh, got it @FieldExpressionValidator(expression="(accountFileFileName.endsWith('.cs v')", message="", key="validate.invalidFilename", fieldName="accountFileFileName") Forgo

RE: String manipulation

2009-02-27 Thread Richard Gundersen
sage- From: Richard Gundersen [mailto:r.gunder...@salford.ac.uk] Sent: 27 February 2009 10:16 To: Struts Users Mailing List Subject: String manipulation Hi I'm trying to validate that a filename has a .csv extension. I would like to use @FieldExpressionValidator on the field but I can'

String manipulation

2009-02-27 Thread Richard Gundersen
Hi I'm trying to validate that a filename has a .csv extension. I would like to use @FieldExpressionValidator on the field but I can't get the syntax right, and searching the docs I can't find much on String manipulation in OGNL. Could anyone help me out

RE: JSTL String manipulation

2004-11-03 Thread Lowery, Mat
Jakarta string taglib might be an option: http://jakarta.apache.org/taglibs/doc/string-doc/intro.html -Original Message- From: andy wix [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 03, 2004 4:43 AM To: [EMAIL PROTECTED] Subject: JSTL String manipulation Hi, I iterate through a

Re: JSTL String manipulation

2004-11-03 Thread Adam Hardy
You would be able to do something using the JSTL functions like split() but I don't think it will be very stable. I think you would be better off manipulating the file names before you get to the JSP or you could make a taglib, using tokenize() for example, and using a few lines of code. I have

JSTL String manipulation

2004-11-03 Thread andy wix
Hi, I iterate through a collection and the following line yeilds the full path of a file: where messages is a Map and MSG1 is the key. The issue is that I would like only to display the file name, not the full path. Can this be done with JSTL or should I revert to good old fashioned Java? Rega