getting request object at
some where
There's no attachment here.
I don't think there's an issue with the stability of the
interceptor... If you're still trying to "fix" the issue of the
request not beeing sharable between threads, then you're not going to
succeed.
Garli Hegvik [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 27, 2008 4:36 PM
> To: Struts Users Mailing List
> Subject: Re: ExecuteAndWaitInterceptor Issue - Not getting request object at
> some where
>
> What is it that you're trying to do with this code? It will be eas
]
Sent: Thursday, November 27, 2008 4:36 PM
To: Struts Users Mailing List
Subject: Re: ExecuteAndWaitInterceptor Issue - Not getting request object at
some where
What is it that you're trying to do with this code? It will be easier
to help if you show us what you're actually trying
What is it that you're trying to do with this code? It will be easier
to help if you show us what you're actually trying to achieve
(although I have a feeling based on your previous questions...).
Nils-H
On Thu, Nov 27, 2008 at 11:24 AM, nikunj <[EMAIL PROTECTED]> wrote:
> Dear All,
>
>
>
> I am
ot getting request object at
some where
Try using this,
Thread.currentThread().sleep(10); instead of Thread.sleep(10);
_
From: nikunj [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 27, 2008 3:54 PM
To: 'Struts Users Mailing List'
Subject: ExecuteAndWaitInterceptor
I will be out of the office, and mostly without email access, until Dec 1.
Please contact the One World office, 605-845-7172, with any general needs, and
Danny Nickels, [EMAIL PROTECTED], at the same number, for any technical or
integration issues.
If this is an emergency, please feel free to c
Try using this,
Thread.currentThread().sleep(10); instead of Thread.sleep(10);
_
From: nikunj [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 27, 2008 3:54 PM
To: 'Struts Users Mailing List'
Subject: ExecuteAndWaitInterceptor Issue - Not getting request object at
Dear All,
I am using ExecuteAndWaitInterceptor.
Action contain following code in execute method.
1. for(int i=0; i<10; i++)
2. {
3.Thread.sleep(10);
4.logger.debug(i+ ") Name : "+Thread.currentThread().getName());
5.logger.debug("request : " +
Cary, you are confusing attributes and parameters. Attributes are internal
data points about the request, while parameters are external data points. If
you want to retain data you have two choices:
1) Add parameters to the redirect
2) Store data in the session
Paul
On 7/9/07, Cary Ho <[EMAIL PRO
oesnt seem to carry to the new page. Is there a way to move the
stuff I put in the request object to carry along in the forward?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROT
under certain circumstances. When I
do this, anything I put in the request objects setAttribute doesnt
seem to carry to the new page. Is there a way to move the stuff I put
in the request object to carry along in the forward?
---
Im using a RedirectingActionForward in a struts actions (Struts 1.3.x)
to take a person to another page under certain circumstances. When I do
this, anything I put in the request objects setAttribute doesnt seem to
carry to the new page. Is there a way to move the stuff I put in the
request
Re: [S2] Obtaining Session/Request Object
--- yitzle <[EMAIL PROTECTED]> wrote:
... unless I am writing a Servlet.
In which case it isn't an S2 question at all and
should be asked elsewhere, and the previous
sub-optimal
--- yitzle <[EMAIL PROTECTED]> wrote:
> "JSPs are compiled into Java Servlets by a JSP
> compiler. [1]" The way I see it, so long as the
> result is a JSP page, the project contains a
servlet.
Semantics.
The developer rarely, if ever, needs to care that a
JSP page is compiled into a servlet.
>
interview question.
Hope I helped,
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of yitzle
Sent: Tuesday, May 29, 2007 4:29 PM
To: Struts Users Mailing List
Subject: Re: [OT] Re: [S2] Obtaining Session/Request Object
On 5/29/07, Dave Newton <[EMAIL PROTECTED]&
On 5/29/07, Dave Newton <[EMAIL PROTECTED]> wrote:
I'm starting to feel like we're doing your
homework for you.
I'm sorry you feel that way.
If you prefer not to reply, its your prerogative.
I am just trying to understand the technology.
A "Struts project" is not a servlet. A Struts project
mi
--- yitzle <[EMAIL PROTECTED]> wrote:
> So, it would seem a Strut project is a servlet. It
> runs inside the web container, receives an HTTP
> request, generates and sends an HTTP response. Meets
> all the criteria. Right? Now, how do you define a
web
> application?
You may wish to seek elsewhe
Alright. Read that page. Wikipedia's definition needs updating.
What I understand from that is that a servlet is basically like a Java
CGI program that runs in the web server process. So, it would seem a
Strut project is a servlet. It runs inside the web container, receives
an HTTP request, genera
Oh. OK. That makes sense...
They have some sample code here [1] that made it "click" for me.
Thanks!
[1] http://www.infoq.com/articles/converting-struts-2-part1
On 5/29/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- yitzle <[EMAIL PROTECTED]> wrote:
> SessionAware only provides a setSession() me
--- yitzle <[EMAIL PROTECTED]> wrote:
> SessionAware only provides a setSession() method. No
> getSession(). Do I use setSession both to set and
get
> Session variables?
No, you use the map provided to the setSession method.
d.
_
ailto:[EMAIL PROTECTED] On Behalf Of yitzle
Sent: 29 May 2007 18:57
To: Struts Users Mailing List
Subject: Re: [S2] Obtaining Session/Request Object
On 5/29/07, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- yitzle <[EMAIL PROTECTED]> wrote:
> > Now I need to figure out what cla
SessionAware only provides a setSession() method. No getSession().
Do I use setSession both to set and get Session variables?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The SessionAware documentation you linked me to earlier [1] states:
"This interface is only relevant if the Action is used in a servlet
environment."
So is SessionAware really ServletSessionAware and/or
ServletRequestAware the same as RequestAware?
(I'm not trying to equate two classes, but rather
On 5/29/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- yitzle <[EMAIL PROTECTED]> wrote:
> Now I need to figure out what classifies a Servlet
> vs a Web Application.
Er...
In case you're serious, a servlet is part of a web
application.
d.
Let me see if I get this...
According to Wikipedia: "
--- yitzle <[EMAIL PROTECTED]> wrote:
> Now I need to figure out what classifies a Servlet
> vs a Web Application.
Er...
In case you're serious, a servlet is part of a web
application.
d.
Yahoo!
oneSe
Now I need to figure out what classifies a Servlet vs a Web Application.
Wikipedia should be of use...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--- yitzle <[EMAIL PROTECTED]> wrote:
> ... unless I am writing a Servlet.
In which case it isn't an S2 question at all and
should be asked elsewhere, and the previous
sub-optimal solution would also be incorrect.
d.
_
No, you should implement SessionAware
http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/interceptor/SessionAware.html55
and avoid being tied to the Servlet spec.
... unless I am writing a Servlet.
-
To unsubs
--- Yoni Amir <[EMAIL PROTECTED]> wrote:
> Your action should implement the ServletRequestAware
> interface, then the Servlet Config Interceptor,
which
> is active by default, does the rest.
>
http://struts.apache.org/2.x/docs/servlet-config-interceptor.html
No, you should implement SessionAware
ession information.
From what I understand, the best way to do this is by accessing the
Session Object.
It appears I get the session by getting the Request Object
(HttpServletRequest or whatever) and calling its getSession().
Struts1 had execute() methods that took a Request as a parameter.
How do I g
I want to store session information.
From what I understand, the best way to do this is by accessing the
Session Object.
It appears I get the session by getting the Request Object
(HttpServletRequest or whatever) and calling its getSession().
Struts1 had execute() methods that took a Request as
just
put smo request object i get messaage that this class is not *something* for
requst object
Tnx,
Stanislav
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
advise.
Harsh.
-Original Message-
From: David Evans [mailto:[EMAIL PROTECTED]
Sent: Friday, May 12, 2006 3:42 PM
To: Struts Users Mailing List
Subject: RE: Get request object
I would suggest in that scenario that you could create a property on
your ActionForm for the object that is stored in
he field in my form is a calculated field (age) which is
> calculated from a DOB field. I need it in the form as I need access to
> the age field for some validations. I could write a custom validator for
> this which has access to the request object. I was just trying to see if
> it is at all p
Chaudhary, Harsh wrote:
> I have solved my problem now. But I am still wondering if it is a good
> idea to have access to the request object from anywhere. If yes, then is
> there a way to do it. Any thoughts?
>
Depending on the request adds a layer of dependency.
This makes testi
validations. I could write a custom validator for
this which has access to the request object. I was just trying to see if
it is at all possible to get the request object in any way.
I have solved my problem now. But I am still wondering if it is a good
idea to have access to the request object
est in the
ActionForm? there may be a simple refactoring that could solve the
problem.
dave
On Fri, 2006-05-12 at 11:59 -0500, Chaudhary, Harsh wrote:
> Hi,
> This is not exactly a struts question. But I am in a bind and short on
> time. So, maybe someone can help.
>
> I need to acces
Hi,
This is not exactly a struts question. But I am in a bind and short on
time. So, maybe someone can help.
I need to access the request object from a struts form. How do I do
that? I mean how can I access the request object.
I could have sworn there was a way to get either the ServletContext
Mailing List'
cc
Subject
[OT] HttpSessionListener question - How to get to request object?
Is there a way to get to the request object in an
HttpSessionListener.sessionCreated() method? Specifically, I want to call
request.getRemoteUser() so I know who just crea
Is there a way to get to the request object in an
HttpSessionListener.sessionCreated() method? Specifically, I want to call
request.getRemoteUser() so I know who just created the session.
TIA,
Brian Barnett
This email
Title: RE: Request object
I got the fetching scheme
Its
But other problems remains, how to tell
jsp:include tag that pick the actual value from resource bundle for value="${global.commandinformation.title1}"
/>
From: Naresh Sharma
Sent: Fr
Title: RE: Request object
HI Bill,
I am sorry I didn't get it.
Anyway let me tell you the scenario.
I am passing parameter from my main jsp file to include jsp using the following scheme.
First thing, I am not sure if any Struts tag is there for above statement.
Title: RE: Request object
I am displaying this parameter value in HTML
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 11, 2004 1:31 AM
To: Struts Users Mailing List
Subject: Re: Request object
What are you trying to do based on the
Use --
this will create a page-scoped variable and a scripting variable.
Complete details can be found at:
http://jakarta.apache.org/struts/userGuide/struts-bean.html#parameter
Naresh Sharma wrote:
HI,
In one of my include JSP I wish to fetch a particular request attribute
which was set by main
What are you trying to do based on the parameter?
HI,
In one of my include JSP I wish to fetch a particular
request attribute which was set by main jsp page
<%
HttpServletRequest httpRequest =
(HttpServletRequest)request;
String header = httpRequest.getParameter("header");
%>
Right now I am do
initial request object, which was redirected, and cannot be reacquired in
the new response object through normal means, such as an tag, then
use a database or something that maintains the original data. I am not
sure but it sounds like you may be confusing request and response
objects. I
Jerry Jalenak wrote:
OK - I can see how using cookies in this case is less than desirable
(thanks Craig)
So, am I just screwed? The problem with returning data on the query string
is that I can easily exceed the 2k limit; using session variables won't
work either because I can be called from
496
>
> [EMAIL PROTECTED]
>
>
> > -Original Message-
> > From: Craig McClanahan
> [mailto:[EMAIL PROTECTED]
> > Sent: Monday, March 29, 2004 8:52 PM
> > To: Struts Users Mailing List
> > Subject: Re: [OT] request object w/
> response.sendRed
owe [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 30, 2004 10:08 AM
> To: Struts Users Mailing List
> Subject: Re: [OT] request object w/ response.sendRedirect
>
>
> Ah i see the problem now..
>
> I think one of the suggestions was have a database in between, sounds
Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 9:40 AM
To: Struts Users Mailing List
Subject: Re: [OT] request object w/ response.sendRedirect
Okay ..
And are both the containers running the same stuff? Or different
applications?
On 30 Mar 2004, at 17:35, Jerry
, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS 66219
(913) 577-1496
[EMAIL PROTECTED]
> -Original Message-
> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 30, 2004 9:40 AM
> To: Struts Users Mailing List
> Subject: Re: [OT] r
Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 9:29 AM
To: Struts Users Mailing List
Subject: Re: [OT] request object w/ response.sendRedirect
What version of tomcat are you running?
On 30 Mar 2004, at 16:56, Menke, John wrote:
store information in a db that both
r Blvd.
Lenexa, KS 66219
(913) 577-1496
[EMAIL PROTECTED]
> -Original Message-
> From: Larry Meadors [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 30, 2004 9:31 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [OT] request object w/ response.sendRedirect
>
>
> >
st
> Subject: Re: [OT] request object w/ response.sendRedirect
>
>
> What version of tomcat are you running?
>
>
> On 30 Mar 2004, at 16:56, Menke, John wrote:
>
> > store information in a db that both webapps have access to.
> >
> > -Origin
>>Hey! that was my idea! ;-)
+1 to Larry's idea :) sorry didn't read the thread :)
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 10:31 AM
To: [EMAIL PROTECTED]
Subject: RE: [OT] request object w/ response.sendRedir
>>> [EMAIL PROTECTED] 03/30/04 7:56 AM >>>
> store information in a db that both webapps have access to.
Hey! that was my idea! ;-)
Another option someone else mentioned was to create a form in a jsp that
does a post submit to the page you are redirecting to using javascript.
I think those are
7;
Subject: RE: [OT] request object w/ response.sendRedirect
OK - I can see how using cookies in this case is less than
desirable
(thanks Craig)
So, am I just screwed? The problem with returning data on the query
string
is that I can easily exceed the 2k limit; using session variables
store information in a db that both webapps have access to.
-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 9:45 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] request object w/ response.sendRedirect
OK - I can see how usi
96
[EMAIL PROTECTED]
> -Original Message-
> From: Craig McClanahan [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 29, 2004 8:52 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] request object w/ response.sendRedirect
>
>
> Jerry Jalenak wrote:
>
&g
Jerry Jalenak wrote:
I had headed down the cookie path in the past 1/2 hour or so. Craig - can
you elaborate on the potential problems of using cookies across hosts?
In order for this to work, your "from" machine is going to have to
create a cookie that looks like it came from the "to" mac
]
> -Original Message-
> From: Craig McClanahan [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 29, 2004 3:28 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] request object w/ response.sendRedirect
>
>
> Larry Meadors wrote:
>
> >But from an earlier
Larry Meadors wrote:
But from an earlier message, the request may be going to a different
server - potentially even a non-java one.
[EMAIL PROTECTED] 03/29/04 2:15 PM >>>
Bill Siggelkow wrote:
Hmm ... well, the actual new request is generated by the browser when
it processes the "
:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [OT] request object w/ response.sendRedirect
But from an earlier message, the request may be going to a different
server - potentially even a non-java one.
>>> [EMAIL PROTECTED] 03/29/04 2:15 PM >>>
Bill Siggelkow wrote:
> Hmm ...
But from an earlier message, the request may be going to a different
server - potentially even a non-java one.
>>> [EMAIL PROTECTED] 03/29/04 2:15 PM >>>
Bill Siggelkow wrote:
> Hmm ... well, the actual new request is generated by the browser when
> it processes the "redirect" response. You sho
Bill Siggelkow wrote:
Hmm ... well, the actual new request is generated by the browser when
it processes the "redirect" response. You should be able to add
parameters to the query string, however.
Or, you can store the data you need later in the session.
Craig
---
your objects based on a strategy which
can take care of the issue.
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Monday, March 29, 2004 11:28 AM
To: [EMAIL PROTECTED]
Subject: RE: [OT] request object w/ response.sendRedirect
XML in the query string may work, but
Hmm ... well, the actual new request is generated by the browser when it
processes the "redirect" response. You should be able to add parameters
to the query string, however.
Jerry Jalenak wrote:
All,
If I remember correctly, when you use a response.sendRedirect() there is a
new request create
se of JSP /Tomcat . This has to
be
in the URL as Wendy suggested, I cannot think of any other ways.
-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
Sent: Monday, March 29, 2004 11:07 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] request object w/ respo
ubject: RE: [OT] request object w/ response.sendRedirect
Doesn't work with a response.sendRedirect() because of the new request
object that gets constructed. I need to find a way to store something in
the NEW object - just using request.setAttribute() stores the object in the
OLD request
.(:(
Jerry Jalenak wrote:
> Doesn't work with a response.sendRedirect() because of the new request
> object that gets constructed. I need to find a way to store something in
> the NEW object - just using request.setAttribute() stores the object in the
> OLD request, so it doesn't h
Doesn't work with a response.sendRedirect() because of the new request
object that gets constructed. I need to find a way to store something in
the NEW object - just using request.setAttribute() stores the object in the
OLD request, so it doesn't help.. 8-(
Jerry Jalenak
D
> -Original Message-
> > From: Wendy Smoak [mailto:[EMAIL PROTECTED]
> > Sent: Monday, March 29, 2004 12:38 PM
> > To: Struts Users Mailing List
> > Subject: RE: [OT] request object w/ response.sendRedirect
> >
> >
> > > From: Jerry Jalenak [mai
c.
10101 Renner Blvd.
Lenexa, KS 66219
(913) 577-1496
[EMAIL PROTECTED]
> -Original Message-
> From: Wendy Smoak [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 29, 2004 12:38 PM
> To: Struts Users Mailing List
> Subject: RE: [OT] request object w/ response.sendRedirect
&g
at (I assume)
creates a new request object. Is the thing you need to send something
you can place on the URL? You can redirect to a URL with a query-string
parameter, and you'll see that when the new request comes in.
If you need to retain something large or complex, you'll probably
All,
If I remember correctly, when you use a response.sendRedirect() there is a
new request created and passed. Is there anyway to place something in this
new request before it actually gets sent? I've been googling all morning
trying see if there is a way of doing this, without much success. D
76 matches
Mail list logo