This seems like the kind of thing that is crying out for a custom tag -- and I don't say that lightly. I mean, a scriptlet could do it, but scriptlets are from the devil. A custom tag would be a better solution, especially since this is a pretty general problem. jk
On Mon, Jun 22, 2009 at 11:37 AM, Stefano Tranquillini < stefano.tranquill...@gmail.com> wrote: > Hi all. > there's a possibility inside a jsp to display only the first 100 chars > or the first 10 words of a string? > if i have a long string, can i display only the first 100 chars > directly in a jsp without modification in action or something like > that? > thanks > -- > Stefano > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Jim Kiley Senior Technical Consultant | Summa [p] 412.258.3346 http://www.summa-tech.com