RE: R: R: Error : request.getReader()

2007-01-30 Thread Dave Newton
From: Christopher Schultz > I'm starting to think that Dave Newton was on the right track, > although it seemed like a hideous hack ;) Pretty much any time I'm on the right track it's a hideous hack. I start off meaning well then it all goes cow's legs up. > I think this is best done with a filte

Re: R: R: Error : request.getReader()

2007-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcello, Marcello Savino wrote: > The reason i need the request body is that the action i should take > is to analyze the html generated. (ie.: syntax checking, finding img > without alt attributes, reading meta-information ...). More: this job > mus

Re: R: R: Error : request.getReader()

2007-01-30 Thread Craig McClanahan
On 1/29/07, Marcello Savino <[EMAIL PROTECTED]> wrote: The reason i need the request body is that the action i should take is to analyze the html generated. (ie.: syntax checking, finding img without alt attributes, reading meta-information ...). More: this job must be done server side (no jscri

R: R: Error : request.getReader()

2007-01-29 Thread Marcello Savino
application). Thanks Marcello Savino ALDEBRA S.p.A. tel. 0461302441 -Messaggio originale- Da: Christopher Schultz [mailto:[EMAIL PROTECTED] Inviato: venerdì 26 gennaio 2007 19.59 A: Struts Users Mailing List Oggetto: Re: R: Error : request.getReader() -BEGIN PGP SIGNED MESSAGE- Hash

Re: R: Error : request.getReader()

2007-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcello, Marcello Savino wrote: > You got it ! > More: i need to access the request body after the form was submited. The > only way i know is in the action subclass, but Struts process the > parameter before invoking the appropriate method in action

RE: Error : request.getReader()

2007-01-26 Thread Dave Newton
From: Marcello Savino > Before you suggest me to re-write Struts ;-) .. > The proccessing of the request i need must be implemented in a large > struts existing application... Maybe the filter is a good idea, i > have to study how to implement it, where to put it. The request processor is

R: Error : request.getReader()

2007-01-26 Thread Marcello Savino
>Dave Newton wrote: >Actually it was Chris that got it, I was still stupid until he said that :) >You may want to consider doing something in a custom request processor. Marcello Savino: Not so stupid as i am, if you think i'm still looking for a solution ... Before you suggest me to re-wr

RE: Error : request.getReader()

2007-01-26 Thread Dave Newton
From: Marcello Savino > >Dave Newton wrote: > >[...] he just wants access to the request body *after* the parameters > have been processed. > >That's the only reason that request.getReader would throw an > exception. > >[...] > > [Marcello] > You got it ! Actually it was Chris that got it, I was

R: Error : request.getReader()

2007-01-26 Thread Marcello Savino
>Dave Newton wrote: >[...] he just wants access to the request body *after* the parameters have been processed. >That's the only reason that request.getReader would throw an exception. >[...] [Marcello] You got it ! More: i need to access the request body after the form was submited. The only wa

Re: Error : request.getReader()

2007-01-25 Thread Dave Newton
--- Christopher Schultz wrote: > No. The /request/ body after form processing (i.e. > at the top of the Action code, which gets executed > /after/ the request body has been read > by struts to populate the form bean. Oo. How is that going to help him see if it meets accessibility requirement

Re: Error : request.getReader()

2007-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Newton wrote: > --- Christopher Schultz wrote: >> I think you might be missing what he's trying to do. > > I'm pretty sure I am ;) > > You mean the HTML body after Action execution?! No. The /request/ body after form processing (i.e. at

Re: Error : request.getReader()

2007-01-25 Thread Dave Newton
--- Christopher Schultz wrote: > I think you might be missing what he's trying to do. I'm pretty sure I am ;) You mean the HTML body after Action execution?! I'm still not sure how this can be done on the server side without resorting to minor treachery; it seems like driving the site w/ HttpUni

Re: Error : request.getReader()

2007-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Newton wrote: > From: Marcello Savino >> Up again with more details, please help! > > Okay, what if you re-rendered the action you submitted from but gave it > a StringWriter? This is sick and wrong. > > What *specifically* are you attemp

Error : request.getReader()

2007-01-25 Thread Marcello Savino
Up again with more details, please help! In an Action subclass the execution of "request.getReader()" throw an IllegaStateException. I found that this is the normal behavior in the servlet, but i need to do this in all my LookupDispatchAction subclass. Any idea to get a turnaround to solve this p

RE: Error : request.getReader()

2007-01-25 Thread Dave Newton
From: Marcello Savino > Up again with more details, please help! Okay, what if you re-rendered the action you submitted from but gave it a StringWriter? This is sick and wrong. What *specifically* are you attempting to do? Dave --

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

2007-01-25 Thread Dave Newton
From: 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). ...you want to submit a form and have a

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

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

2007-01-25 Thread Marcello Savino
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()

2007-01-25 Thread Dave Newton
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 cus

R: Error : request.getReader()

2007-01-25 Thread Marcello Savino
List Oggetto: Re: Error : request.getReader() Bollocks. --- Marcello Savino wrote: > In an Action subclass the execution of "request.getReader()" throw en > IllegaStateException. Why not just create a custom tag that does whatever it is you think you need to do, wrap it around your

Re: Error : request.getReader()

2007-01-25 Thread Dave Newton
Bollocks. --- Marcello Savino wrote: > In an Action subclass the execution of > "request.getReader()" throw en > IllegaStateException. Why not just create a custom tag that does whatever it is you think you need to do, wrap it around your entire page contents, then getting the body becomes as sim

Re: Error : request.getReader()

2007-01-25 Thread Dave Newton
--- Marcello Savino wrote: > In an Action subclass the execution of > "request.getReader()" throw en > IllegaStateException. Why not just write a *really* simple custom tag that does whatever it is you think you want to do with the output? Dave ___

Error : request.getReader()

2007-01-25 Thread Marcello Savino
In an Action subclass the execution of "request.getReader()" throw en IllegaStateException. I found that this is the normal behavior in the servlet, but i need to do this in all my Action subclass. Any idea to get a turnaround to solve this problem ? Any help will be appreciated Thanks in advance