R: [OT] RE: Error : request.getReader()

2007-01-25 Thread Marcello Savino
I've read what you suggested but the problem is that i need a submit tag in 
other words, i need to process the request content after the user press a 
specific button (the others are handled in a LookupDispatchAction subclass).
I think i need some more info to built this kind of tag. Do you know where i 
can get more information to obtain the result ?

Thanks


Marcello Savino
ALDEBRA S.p.A. 
tel.  0461302441

-Messaggio originale-
Da: Dave Newton [mailto:[EMAIL PROTECTED] 
Inviato: giovedì 25 gennaio 2007 15.49
A: Struts Users Mailing List
Oggetto: [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=26119seqNum=7rl=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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



R: [OT] RE: Error : request.getReader()

2007-01-25 Thread Marcello Savino
Very interesting approach, thanks  a lot


Marcello Savino
ALDEBRA S.p.A. 
tel.  0461302441

-Messaggio originale-
Da: Dave Newton [mailto:[EMAIL PROTECTED] 
Inviato: giovedì 25 gennaio 2007 15.49
A: Struts Users Mailing List
Oggetto: [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=26119seqNum=7rl=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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]