I am looking at the custom request processor blog where its doing basic
common task such as validating user session is done in request processor
now I am doing same validation in the base action class. So which one is
better way doing in request processor or as base action class
e:
>
> Is your form submitted with method GET or POST? For a GET request I'd
> expect request.getParameter() to work fine. If the form is being posted,
> then you wont be able to get at form data until the multi-part request
> processing has occurred. The request processor shou
Is your form submitted with method GET or POST? For a GET request I'd
expect request.getParameter() to work fine. If the form is being posted,
then you wont be able to get at form data until the multi-part request
processing has occurred. The request processor should invoke that at
some
and then, access the value in the request processor using the
>
> ( name
> as string>);
>
> Hope this helps.
>
> - Sandeep
>
>
>
> On 12/29/06, Sarry <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi,
>>
>> I am tryin to extend requ
Hi Sarry
Try setting the variable using the
request.setAttribute(, );
and then, access the value in the request processor using the
();
Hope this helps.
- Sandeep
On 12/29/06, Sarry <[EMAIL PROTECTED]> wrote:
Hi,
I am tryin to extend request processor which basically trac
Hi,
I am tryin to extend request processor which basically tracks the session
and does some routing stuff.
but for that I need to pass a variable which is available on JSP and need to
pass it to the request processor to check something.
I tried hidden field in the form but gettin value of
Thanks Nuwan. It gave me some useful info.
Anil.
-Original Message-
From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 29, 2006 3:35 PM
To: Struts Users Mailing List
Subject: Re: How & Where to specify the Request Processor class name?
read this...
read this...
http://wiki.apache.org/struts/RequestProcessor
- Original Message -
From: "Anil Kumar T" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Wednesday, November 29, 2006 6:53 AM
Subject: How & Where to specify the Request Processo
Hi Guys,
I have read in the documentation and on the net also about the Struts
framework. There would be only one ActionServlet per web app and one
RequestProcessor per module. Is that true? Any body pls help me with
your answers and any useful sites.
I believe we can over write the ActionSe
From: Jim Reynolds [mailto:[EMAIL PROTECTED]
> So my question is: How do I handle this type of setup in Struts 2? I
> noticed that there is a Interceptor that may be for this task, but I
> am unsure. Do I extend the interceptor and handle my logic there, or
> is there a simpler way.
I'm not sure w
n.invoke();
}
}
}
-Mensaje original-
De: Jim Reynolds [mailto:[EMAIL PROTECTED]
Enviado el: Lunes, 30 de Octubre de 2006 03:46 p.m.
Para: user@struts.apache.org
Asunto: Request Processor Struts2
Hello,
Newbie with WW, so hopefully this is not a silly question. In Struts 1.x I
used to ex
Hello,
Newbie with WW, so hopefully this is not a silly question. In Struts
1.x I used to extend the request processor, and check for a user with
a certain object in the session. If it did not exist, I would put it
in, and at the same time, send to the front login if it did not exist.
This was
rse requests"
-tears envelope open-
Johnny: "What is the use of request processor?"
:grin: Sorry, couldn't resist :grin:
The RP is essentially the series of steps that Struts goes though when a
request is received and recognized as a request it should handle (i.e.,
mapped to
Do you know how to google ?
http://wiki.apache.org/struts/RequestProcessor
-Original Message-
From: Gomathi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 23, 2006 9:52 AM
To: Struts Users Mailing List
Subject: request processor
hai,
what is the use of request processor?
This
Is this a bad Karnak routine?
Johnny: "To parse requests"
Ed McMahon: "To parse requests"
-tears envelope open-
Johnny: "What is the use of request processor?"
:grin: Sorry, couldn't resist :grin:
The RP is essentially the series of steps that Struts goes
hai,
what is the use of request processor?
hi,
It seems that I am loosing the session information between the Request
processor and Action. Any idea to what I may be doing wrong? Thanks.
---Struts-config---
http://struts.apache.org/dtds/struts-config_1_2.dtd
Correction. Default implementation uses any configured roles. Your
implementation can override this and implement whatever logic you want.
- Original Message -
From: "Antony Joseph" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Subject: RE: Request Pro
ailing List"
Subject: RE: Request Processor validation Question
Date: Mon, 14 Mar 2005 10:18:34 -0600
>
> If I use the processRoles(), does that mean I have to use the J2EE
> authentication mechanism for web applications? Using the container
> and declare the applications declarat
List
Subject: Re: Request Processor validation Question
Hi Scott,
Check the javadocs for the RequestProcessor. Any method which has an
ActionMapping as an argument can be used to figure out the action (ex:
mapping.getPath()). If you plan to do authorization the method processRoles()
is a good
-
From: "Scott Purcell"
To: user@struts.apache.org
Subject: Request Processor validation Question
Date: Mon, 14 Mar 2005 09:31:35 -0600
>
> Hello,
> I have extended the RequestProcessor and I am looking for a way to
> find out where the page is going to. The reason for
Hello,
I have extended the RequestProcessor and I am looking for a way to find out
where the page is going to. The reason for this is as follows. I am giving each
user a UserObject when they hit the site. Later on, after they log in, I set
some flags to know they are valid inside the application
er that Action chaining was discouraged.
Mohan
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 09, 2005 3:15 PM
To: Struts Users Mailing List
Subject: Re: request Processor in struts-2.
In Struts 1.2 you can configure different RequestProcessors for
di
I am just trying to
understand this particular design
decision. I remember that Action chaining was discouraged.
Mohan
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 09, 2005 3:15 PM
To: Struts Users Mailing List
Subject: Re: request Processo
I am all for people downloading the nightly builds and acquainting
themselves with the new designs in Struts (which is not Struts 2, by
the way; it's Struts 1.3.0).
But, I want to make sure that people understand -- this is code under
rapid development; there are no API guarantees; and it may b
ecision. I remember that Action chaining was discouraged.
Mohan
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 09, 2005 3:15 PM
To: Struts Users Mailing List
Subject: Re: request Processor in struts-2.
In Struts 1.2 you can configure
In Struts 1.2 you can configure different RequestProcessors for different
modules, but you can' t have different RequestProcessors for the same
module. Struts 1.3 (under development) is based on the Chain of
Responsibilty (CoR) pattern (using Jakarta Commons Chain) - that introduces
alot more flex
Message -
> From: "Sandip Khetle" <[EMAIL PROTECTED]>
> To:
> Sent: Wednesday, February 09, 2005 7:42 AM
> Subject: request Processor in struts.
>
> > Hi
> >Where do we make the entry for the request processor in
> > strut
You can configure it using the element in the
struts-config.xml...
http://struts.apache.org/userGuide/configuration.html#controller_config
Niall
- Original Message -
From: "Sandip Khetle" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, February 09, 2005 7:42 AM
Subject: r
Hi
Where do we make the entry for the request processor in
struts application?for example I have extended the RequestProcessor
class to create my
MyRequestProcessor ...How do I communicate this to the
application.Will i have to make any entry in some config
file...?
Thanks in
Huummm... Got it now.
I'm using 1.1 source, that's why. I'll get the latest
version!
--- Niall Pemberton
<[EMAIL PROTECTED]> escreveu:
> I'm not sure which version of the source code you're
> looking at but this
> issue was raised in Bug 30707 and resolved in
> version 1.2.4 of Struts.
>
>
http
Huummm... Got it now.
I'm using 1.1 source, that's why. I'll get the latest
version!
--- Niall Pemberton
<[EMAIL PROTECTED]> escreveu:
> I'm not sure which version of the source code you're
> looking at but this
> issue was raised in Bug 30707 and resolved in
> version 1.2.4 of Struts.
>
>
http
I'm not sure which version of the source code you're looking at but this
issue was raised in Bug 30707 and resolved in version 1.2.4 of Struts.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30707
While the getRequestProcessor() method is still synchronized, it only gets
called if the getProce
Hi.
I was taking a look at struts source and found out
something new (to me, of course).
I knew that the RequestProcessor is the one that
acutally handles the request. Although it makes sense,
I didn't know that the method getRequestProcessor() in
the ActionServlet was synchronized.
Has anyone "mea
inters?
Thanks... =)
- Original Message -
From: "Lucas Gonzalez Pearson" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, July 08, 2004 6:19 PM
Subject: Re: Extending Request Processor
I have this in my
ROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, July 08, 2004 6:19 PM
Subject: Re: Extending Request Processor
> I have this in my struts-config.xml file..
>
>
> value="/WEB-INF/tiles-defs.xml"/>
>
&
still works..
strange.. =/
- Original Message -
From: "Venkat Maddipati" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, July 08, 2004 6:00 PM
Subject: RE: Extending Request Processor
Try to put include
Message-
From: Lucas Gonzalez Pearson [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 1:37 PM
To: Struts Users Mailing List
Subject: Extending Request Processor
Hi
I´ve recently extended the requestProcessor with one of my own and found
this error:
javax.servlet.ServletException
Hi
I´ve recently extended the requestProcessor with one of my own and found
this error:
javax.servlet.ServletException: TilesPlugin : Specified RequestProcessor
not compatible with TilesRequestProcessor
at
org.apache.struts.tiles.TilesPlugin.initRequestProcessorClass(TilesPlugin.ja
Hi,
We're currently getting quite a few stack dumps in our production
application (like the one at the bottom of this e-mail) where there is
no stack information indicating where a Null Pointer Exception occurred.
Instead, all we see is where the RequestProcessor (Struts 1.1) threw a
new exce
, April 23, 2004 7:34 PM
To: Struts Users Mailing List
Subject: Re: Custom Request Processor is failing at startup.
I believe that the will try to set a property in the
ControllerConfig class. So you would need to extend ControllerConfig and put
your "ignoreSessionCheckPath" propert
our custom
ControllerConfig like this:
Then in your custom request processor you can use the following to get the
property value:
((MyControllerConfig)moduleConfig.getControllerConfig()).getIgnoreSessionChe
ckPath();
Niall
- Original Message -
From: "Josh Ho
I have created a custom RequestProcessor that extends the default
RequestProcessor.
I would like to initialize it with a parameter from config file. Using the
element I've done the following in my config file:
And within my Request Processor:
private S
43 matches
Mail list logo