You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dave Newton <DN...@hibbertgroup.com> on 2007/01/25 15:49:27 UTC
[OT] RE: Error : request.getReader()
From: Marcello Savino
> I really don't undestand what you mean.
> Can you explain with a little example ?
http://www.phptr.com/articles/article.asp?p=26119&seqNum=7&rl=1
http://java.sun.com/developer/Books/javaserverpages/cservletsjsp/index.h
tml has a link (PDF) to the chapter about creating custom tags which
might also help.
In a nutshell, look at the tag's doAfterBody method (this is from the
first link):
public class FilterTag extends BodyTagSupport {
public int doAfterBody() {
BodyContent body = getBodyContent();
String filteredBody =
ServletUtilities.filter(body.getString());
//...etc.
body.getString() gives you the rendered contents of the tag's body.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org