i access session or request
object from a bean which is Actionform variable
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your
mail and assure you of a response shortly.To help us serve you better, we would
request you to kindly mention your account number or
Dear Sir / Madam,Thank you for writing to [EMAIL PROTECTED] We confirm receipt of your
mail and assure you of a response shortly.To help us serve you better, we would
request you to kindly mention your account number or any reference number you may have
in your future correspondence. Kindly vis
Original Message-
> From: Yajamanyam Venugopal
> [mailto:[EMAIL PROTECTED]
> Sent: 28 January 2004 17:50
> To: [EMAIL PROTECTED]
> Subject: Can i access session or request object from a bean which is
> Actionform variable
>
>
>
> Hi
>
> I have a nested
Hi
I have a nested bean in my ActionForm.
Is there any way to access the session object or HttpRequest from that nestedbean.
class MyActionForm extends ActionForm{
private Tree myTree;
}
class Tree{
I would like to access session or http request from this bean
}
Thnaks in
Aaah...but these are not related to form actions and are more like query
strings. I guess in this case, request.getParameter would still be the
best bet, rather than trying to go for an overkill with the hidden id
field etc etc ...just my thought.
If you still don't want to request o
the hidden value to the id, and call the form submit.
Rgds,
Patrick.
-Original Message-
From: Richard Hightower [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 3:08 PM
To: Struts Users Mailing List
Subject: RE: Mandatory use of form rather than request object
forgive mebut
Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 7:41 PM
To: Struts
Subject: RE: Mandatory use of form rather than request object
Yeh, your right though. Taking it out is a bit drastic and the request
object tends to be needed for various other things as well so
H this is a good point.
In the past I have created a map wrapper that wraps the request object and
session object and passed those as well.
the advantage is that the execute method is a little easier to test since it
does not rely on the servlet API.
The execute method would look
sMentoring
-Original Message-
From: Patrick Cheng [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 7:34 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Mandatory use of form rather than request object
Hi,
I understand that the request.getParameter should not be
Yeh, your right though. Taking it out is a bit drastic and the request
object tends to be needed for various other things as well so denying access
to it is probably going to cause other problems.
Best thing really is to reeducate the developers. (Electric shocks work
wonderfully here - though
ll [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 10:09 AM
To: Struts Users Mailing List
Subject: RE: Mandatory use of form rather than request object
No. He would provide setters in the form for anything that needs to be
passed along in request scope. This has the dual advantages of t
January 2004 02:25
To: Struts Users Mailing List
Subject: Re: Mandatory use of form rather than request object
This precludes you from storing data in the request scope, though - so
you're left with only storing things in the session scope, which I
wouldn't consider ideal.
Right
ethod that does not pass the request object.
The subclasses overide the execute method without the request object being
passed.
Also look into the ProcessAction, which is part of the scaffold.
You can get the scaffold code by downloading the struts source.
Rick Hightower
Developer
Struts/J2EE traini
Create a superclass that overides the execute method and calls an abstract
execute method that does not pass the request object.
The subclasses overide the execute method without the request object being
passed.
Also look into the ProcessAction, which is part of the scaffold.
You can get the
/consulting.htm#StrutsMentoring
-Original Message-
From: Sathish Kumar T.K. [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 7:20 AM
To: Struts Users Mailing List
Subject: Request object when failure
Will the request object be re-initialised when findForward returns failure?
I mean
model.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 11:53 AM
To: [EMAIL PROTECTED]
Subject: RE: Mandatory use of form rather than request object
Hi,
Its a good idea to use just form.getAttribute than use
request.getparameter..I
rs Mailing List'
Subject: Mandatory use of form rather than request object
Hello All,
I did some code reviews recently for my project being done on struts.
I found that most people still do a request.getAttribute("NAME") kind of
code even when the name is a property of the form o
of form be mandatory. If yes, how it can be
enforced. Is there quick way I can remove all the params/attributes from the
request object once the corresponding values have been set in the form
object?
Thanks in advance for your advise.
Regards
Will the request object be re-initialised when findForward returns failure?
I mean, during mapping.findForward("failure");
I have an object in session and when an error is generated, i don't find the
correct values in the object that was placed in session.
Pls he
I'm trying to pass data between different struts forms. Below I've tried to
pre-populate a select statement from data stored in the request but I get a
compilation error (" Attribute outageEndDateFromMonth has no value " ).
" >
Any suggestions on how this can be achieved?
Thanks
Leo
tag
consults the pageContext.getRequest() to do the role
testing, is there a way to reset the pageContext request object in a JSP??
Here is the bottom line of what I would like to do in my JSP but I know this
is not correct:
<%=
pageContext.setRequest((HttpServletRequest)request.getA
to share and keep track of stuff across multiple requests (and
threads) then you may use the session or servlet context objects for this.
-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Thursday, 17 July 2003 12:24
To: 'Struts Users Mailing List'
Subject
I thought once I store an attribute into the 'request' object, it will be
available no matter how many times I iterate through the same Action class?
If it doesn't do that, then how do I store data into the request object so I
can use it again later in the same Action class or even
ECTED]'
Subject: Request object Null Pointer
Hi:
I am getting a NULL pointer with the request object: Please see code below.
I got a NULL pointer trying to access "vehList' in the request object inside
the method "prepareListForUpdate". But I didn't get a NULL
Hi:
I am getting a NULL pointer with the request object: Please see code below.
I got a NULL pointer trying to access "vehList' in the request object inside
the method "prepareListForUpdate". But I didn't get a NULL pointer
accessing "vehList" inside the me
Further research shows that the link is converted to html which does not
accept objects, only strings. So it looks like I need to pass in a string
that will be used to identify the data I need. I should have an Action to
take the string id from the request object and generate an object with the
I need to assign an object to the request object via an html:link
I am iterating over a collection of objects as such:
I would like to assign the object represented by "doc" into the request
object as part of the html:link (shown below as it currently exists.
Edit
Can a
ystal Reports forum.
Will come back once that doubt is cleared?
Regards
Thiru
-Original Message-
From: Anurag Garg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 11:49 AM
To: Struts Users Mailing List
Subject: RE: Can I pass an object through request object from Action
clas
an object through request object from Action class
Importance: High
Hi,
Already I raised this question to this list. But no reply.
Let me rephrase the question again.
I need to execute and show the reports using struts.
I have input jsp, action class and action form associated to
also want to hide the ugly
sql details behind some kind of model layer / facade for the same reason.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, 25 June 2003 14:02
To: [EMAIL PROTECTED]
Subject: Can I pass an object through request object from
from jsp
page/action form, create a result set. Now I need to pass the resultset
to the report generation code.
Can I put the resultset object in the request object and pass the
resultset to the success page defined for the action?
If this approach is not good/possible, please let me know
Solution 1 will most likely work for me, but one more question. Can I
send paramers to that action somehow? I imagine something like:
Will this work?
Nicolas De Loof wrote:
Here is what I undersand :
1. your action puts some beans into request scope
2. it forwards to a JSP, let's say A.jsp
3.
Here is what I undersand :
1. your action puts some beans into request scope
2. it forwards to a JSP, let's say A.jsp
3. A.jsp defines a framest, containing B.jsp
4. B.jsp looks in request for the bean.
As frameset is the response your browser gets from the 1. request, it has to
make a second re
frameset to the page with the form? I need to get my
pre-populated ActionForm to that frame. Thanks.
~Austin Lowry
David Graham wrote:
Each frame has its own request object so if you're storing things in
the request for frame 1 then frame 2 won't see it.
David
From: Austin Low
Each frame has its own request object so if you're storing things in the
request for frame 1 then frame 2 won't see it.
David
From: Austin Lowry <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: request
I've had problems with getting objects out of my reqest object for a
particular page and I suspect that it's because the page that I am
calling the object from is in a frame. Would the page being inside a
frame keep me from accessing an object that my previous action had set
in the request? Tha
ECTED]]
Sent: Sunday, February 02, 2003 3:35 PM
To: [EMAIL PROTECTED]
Subject: Re: logic-el and the request object
>>>>> "Jeff" == Jeff Born <[EMAIL PROTECTED]> writes:
Jeff> I have been unsuccessfully trying to figure out how to do
something like
Jeff>
> "Jeff" == Jeff Born <[EMAIL PROTECTED]> writes:
Jeff> I have been unsuccessfully trying to figure out how to do something like
Jeff> the following:
Jeff> do something
Jeff>
Jeff> if this possible? Am I going about it all wrong? I really want to check
Jeff> for
I have been unsuccessfully trying to figure out how to do something like
the following:
do something
if this possible? Am I going about it all wrong? I really want to check
for the existence of getParameter("body") and if the body tag exists do
something. After playing with it I couldn't ev
ember 17, 2002 00:21
To: [EMAIL PROTECTED]
Subject: RE: Re: Lifecycle of a request object
>>Cannot find bean null in request scope
Where do u get this message?Do u mean when the validation fails u get this
message after forwarding to the jsp?
>> In using System.out.printlns() to debu
:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 11:57 AM
To: Struts Users Mailing List
Subject: Re: Lifecycle of a request object
I miscommunicated what I was trying to say. The request object isn't null, but an
attribute in the request object doesn't look like it's ever set.
no..The request object is no0t modified in any way apart from the fact that the
errors object is kept in the request object so that it can be resued laeter by
errors tag
-Original Message-
From: jrgermany [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 5:57 PM
To
I miscommunicated what I was trying to say. The request object isn't
null, but an attribute in the request object doesn't look like it's ever
set. This is a bean attribute inside the request object. I guess the
real question I need answered is, when a form fails validation, i
Request objects as arguments. If
>>I do a printout of the one of the request attributes in this method, the
>>request is already null coming to the method.
I think there is some minunderstaing..The request object can never be null.Do U
mean to say the attribute is not there?And BT
ut of the one of the request attributes in this method, the
request is already null coming to the method. Thus, I get a "Cannot
find bean null in request scope" in my logs. So I was wondering at what
point is the request object losing scope after going from the .jsp page
to the form
u want to know?
-Original Message-
From: jrgermany [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 4:28 PM
To: struts-user
Cc: jrgermany
Subject: Lifecycle of a request object
Can someone tell me where to find documentation on the lifecycle of a
request object within the struts
Can someone tell me where to find documentation on the lifecycle of a
request object within the struts framework? I've been looking through
the documentation but haven't come across this reading as of yet.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional
y, October 12, 2002 7:14 AM
> To: Struts Users Mailing List
> Subject: Unable to use Request object in frames
>
>
> Hi all,
> I'm successfully able to populate a combo-box in the JSP page
> using Struts
> .. But when I use this JSP as a part of a frame, I get the er
Hi all,
I'm successfully able to populate a combo-box in the JSP page using Struts
.. But when I use this JSP as a part of a frame, I get the error : Cannot
find bean 'userList' in any scope.
Why is it not able to find anything in the request object when using frames?
How to r
>>>>> "Struts" == Struts Newsgroup <(@Basebeans.com) <[EMAIL PROTECTED]>> writes:
Struts> Subject: Getting a value from the request object for variable for a custom
tag?
Struts> From: "Preston Crawford" <[EMAIL PROTECTED]>
Subject: Getting a value from the request object for variable for a custom tag?
From: "Preston Crawford" <[EMAIL PROTECTED]>
===
I'm writing a custom pager for a resultset my company needs to page through.
I don't return every record, just the amount and set indic
Subject: Getting a value from the request object for a custom tag?
From: "Preston Crawford" <[EMAIL PROTECTED]>
===
I'm writing a custom pager for a resultset my company needs to page through.
I don't return every record, just the amount and set indicated by page s
<[EMAIL PROTECTED]>
Sent: Thursday, January 24, 2002 11:34 PM
Subject: Adding/Modifying parameters in the Request object
> Hi,
>
> Does anyone know how you can add a parameter to the Request object in an
> Action?
>
> I can find no interface for it in HTTPServletReques
Oops... I actually meant to say
ServletContext.getContext() as not to confuse anyone.
-Original Message-
From: Elena Yee [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 25, 2002 3:43 PM
To: 'Struts Users Mailing List'
Subject: RE: Adding/Modifying parameters in the Requ
help!
Elena
-Original Message-
From: Mark Woon [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 25, 2002 1:02 PM
To: Struts Users Mailing List
Subject: Re: Adding/Modifying parameters in the Request object
Elena Yee wrote:
> I'm also running into a similiar problem, bu
Elena Yee wrote:
> I'm also running into a similiar problem, but need to add parameters with
> large chunks of data in a redirect call. Is there another way to do this
> besides adding it in the url (which doesn't work because of the data size) ?
If you need to pass more data that can fit in th
No. You retrieve the object with request.getParameter( "BigMoFoData").
Mark
-Original Message-
From: Kevin Wang [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 25, 2002 1:13 PM
To: Struts Users Mailing List
Subject: RE: Adding/Modifying parameters in the Request object
But, Is there any method of HttpRequest call getParameterMap? or need write
by myself?
-Original Message-
From: Pedone, Tim [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 25, 2002 12:58 PM
To: 'Struts Users Mailing List'
Subject: RE: Adding/Modifying parameters in the Requ
--Original Message-
From: Elena Yee [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 25, 2002 9:38 AM
To: 'Struts Users Mailing List'
Subject: RE: Adding/Modifying parameters in the Request object
I'm also running into a similiar problem, but need to add parameters with
large chu
lto:[EMAIL PROTECTED]]
Sent: Friday, January 25, 2002 9:32 AM
To: 'Struts Users Mailing List'
Subject: RE: Adding/Modifying parameters in the Request object
You can call request.getParameterMap() which returns a Map object that you
can manipulate.
Tim
-Original Message-
From:
object
Hi,
Does anyone know how you can add a parameter to the Request object in an
Action?
I can find no interface for it in HTTPServletRequest or ServletRequest.
What I want to do is forward a request in one Action to another Action (by
returning an ActionForward that's configured in s
t. Hope that helps,
Rob
On Thu, 2002-01-24 at 23:34, Freek Segers wrote:
> Hi,
>
> Does anyone know how you can add a parameter to the Request object in an
> Action?
>
> I can find no interface for it in HTTPServletRequest or ServletRequest.
>
> What I want to do is forwa
Request object
Hi,
I did something like that by returning a dynamically generated
ActionForward and I believe the folks in the developer list plan
something to make this acrobatics easier in later releases.
return new ActionForward( mapping.findForward("success").getPath() +
&qu
ot; );
HTH
Ronaldo
> -Ursprüngliche Nachricht-
> Von: Freek Segers [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 25. Januar 2002 08:34
> An: Struts Users Mailing List
> Betreff: Adding/Modifying parameters in the Request object
>
>
> Hi,
>
> Does anyo
Hi,
Does anyone know how you can add a parameter to the Request object in an
Action?
I can find no interface for it in HTTPServletRequest or ServletRequest.
What I want to do is forward a request in one Action to another Action (by
returning an ActionForward that's configured in struts-c
to:[EMAIL PROTECTED]]
> Sent: 29 November 2001 12:46
> To: [EMAIL PROTECTED]
> Subject: hidden tag and request object
>
> Hi,
>
> i am trying this below and it is not working as i would like.
>
> the problem lies with the hidden tag. i want the value to be populated wit
46
To: [EMAIL PROTECTED]
Subject: hidden tag and request object
Hi,
i am trying this below and it is not working as i would like.
the problem lies with the hidden tag. i want the value to be populated with
the 'request' objects', 'userloggedin' variable.
is this possible?
Hi,
i am trying this below and it is not working as i would like.
the problem lies with the hidden tag. i want the value to be populated with
the 'request' objects', 'userloggedin' variable.
is this possible?
can someone advise the correct syntax?
thanks
dmw
--
To unsubscribe, e-ma
Hi,
When forwarding from one action to another, is the same request object used? For example, is this legal?
Action subclass 1 (perform method) :
Test test = new Test();
// initialize test
request.setAttribute( "test", test )
return (mapping.findForward( "Action subclass 2"
String browser = request.getHeader("User-Agent");
Craig McClanahan
On Fri, 6 Apr 2001, Narasimhan, Shyamala wrote:
> How do we access browser info in request object in struts I need to
> format my jsp respone pages with layers or div depending on whether the
> browser is netscape or ie
>
How do we access browser info in request object in struts I need to
format my jsp respone pages with layers or div depending on whether the
browser is netscape or ie
-- Forwarded by Danson Hock Kieong Loh/Singapore/Netlife on
01/05/2001 11:54 AM ---
hi all,
When using query string with parameters (e.g.
action.do?para1=111¶2=222&...),
the request object will be renewed right after the action class calls
72 matches
Mail list logo