Dear all,
To show a drop down list I'm using html:select tag and storing a collection object
in the session to fill this list up. Everything works fine. My only question is that
when would this list would be removed from the session? Would Struts framework remove
it or it would be there
Dear all,
When does STRUTS framework removes ActionForm object from the session, if at all?
Any help or pointers to help on this topic is appreciated.
Regards,
ATTA
common collections in the ServletContext.
David
From: atta ur-rehman [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: struts users mailing list [EMAIL PROTECTED]
Subject: Session Cleanup
Date: Thu, 17 Oct 2002 10:20:24 -0700
When does struts framework remove
Hi,
How do I include multiple parameters in the html:link tag? currently I got it
working for one parameter like:
html:link href=logout paramId=companyId paramName=company
paramProperty=valuebean:write name=company property=label//html:link
now, what if I want to add another parameter to this
, 2002 3:37 PM
To: Struts Users Mailing List
Subject: Re: Session Cleanup
On Thu, 17 Oct 2002, atta ur-rehman wrote:
Date: Thu, 17 Oct 2002 13:36:41 -0700
From: atta ur-rehman [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL
R. McClanahan [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, October 17, 2002 1:36 PM
Subject: Re: Session Cleanup
On Thu, 17 Oct 2002, atta ur-rehman wrote:
Date: Thu, 17 Oct 2002 13:36:41 -0700
From: atta ur-rehman [EMAIL PROTECTED]
Reply-To: Struts
the myCollection object by saying:
in JSTL: ${requestScope.someName}
in jsp expression %= request.getAttribute(someName) %
Does that help?
Dave
From: atta ur-rehman [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED
at HttpServletRequest and HttpSession
David
From: atta ur-rehman [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Session Cleanup
Date: Thu, 17 Oct 2002 13:55:55 -0700
Thanks Craig. That explains. I
When does struts framework remove ActionFrom objects from the session, if at all. I'm
worried if I'd be making my session object too large. Moreover, what are the best
practices for storing html:select collections in the session? How and when to remove
these collections from the session?
Dear all,
While conditionally forwarding to another jsp page my Struts/Tiles page throws this
exception:
java.lang.IllegalStateException: reset() failed - data has already been sent to client
I don't understand what's going on. Any help would be greatly appreciated.
Regards,
ATTA
Dear all,
It seems that errorPage page directive doesn't work if we have struts and tiles. Is
it so? If yes, how do a get equivalent functionality. I always get an
InvlaidStateException that says that server can't take me to error page 'cas some data
has already been sent to client.
TIA,
14. 03:12 dátummal atta ur-rehman ezt írtad:
Dear all,
It seems that errorPage page directive doesn't work if we have struts
and
tiles. Is it so? If yes, how do a get equivalent functionality. I always
get an InvlaidStateException that says that server can't take me to
error
page 'cas
Dear all,
Here is my layout.jsp file:
%@ page errorPage=ErrorPage.jsp %
tiles:insert attribute=menu/
tiles:insert attribute=body/
tiles:insert attribute=footer/
The menu tile is a JSP page that could throw an exception. Now whenever an exception
is thrown on the menu tile I
-module, that can be manage easily
and consistent
Through out the entire application. Plus, exception handler can be reused
in different
Web application with the entire enterprise.
Hope this would help,
-danny
-Original Message-
From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
Sent
this would help,
--danny
-Original Message-
From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 10:57 AM
To: Struts Users Mailing List
Subject: Re: Howto handle this behavior in Struts+Tiles
Thanks, Danny, for the detailed response.
We're running Struts 1.0
that
You extended from your abstract action class. This action would do all
the
necessary
Stuff with your Exception if there is one or create a new exception and
throw it.
--danny
-Original Message-
From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 11:42
Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, November 18, 2002 1:05 PM
Subject: RE: Howto handle this behavior in Struts+Tiles
I thinks so ...
Good luck...:)
--danny
-Original Message-
From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 1:05 PM
and exception
within web application.
-Original Message-
From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 1:22 PM
To: Struts Users Mailing List
Subject: Re: Howto handle this behavior in Struts+Tiles
Hi Danny,
I'm confused already!!!
here
, 2002 2:37 PM
Subject: RE: Howto handle this behavior in Struts+Tiles
No problem... I've learn from others the same way...
--danny
-Original Message-
From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 2:37 PM
To: Struts Users Mailing List
Subject: Re
it anywhere, the container will handle it
and
this is
Where your web.xml took place. So you can declare additional mapping in
your web.xml
To take care of these JspException just as you did for other in your
Struts
apps.
--danny
-Original Message-
From: atta ur-rehman [mailto
Create this page and have
it
Forward to the right action mapping that handle error...:)
Sorry all these are coming out of my head as I can remember it correctly
or
not...:)
danny
-Original Message-
From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 4:27
PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, November 19, 2002 5:54 PM
Subject: RE: Howto handle this behavior in Struts+Tiles
Let me know the result :)
-Original Message-
From: atta ur-rehman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002
Dear all,
Struts 1.0.2.
Are form properties updated before the validate() method is called?
Regards,
ATTA
Dear all,
One of our JSP has html:file tag in it. Whenever validate method of the associated
ActionFrom returns any errors, the JSP container throws ClassCastException.
java.lang.ClassCastException
at
com.newatlanta.servletexec.SERequestDispatcher.forward(SERequestDispatcher.java:171)
Any comments, anybody?
- Original Message -
From: atta ur rehman [EMAIL PROTECTED]
To: struts users mailing list [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 9:33 AM
Subject: html:file tag and exception in validate method
Dear all,
One of our JSP has html:file tag in it. Whenever
- Original Message -
From: atta ur rehman [EMAIL PROTECTED]
To: struts users mailing list [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 9:33 AM
Subject: html:file tag and exception in validate method
Dear all,
One of our JSP has html:file tag in it. Whenever validate method
A hidden field, maybe as a form proerty, that your javascript would set to
appropriate value before the submit() call.
ATTA
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 3:11 PM
Subject: [Q] any ways to know which control was
Dear all,
This may seems a stupid question but I've been banging my head for last two hours to
no avail!
My Action class has a servlet.log() method call to write out a log message. Everything
runs fine but I can't see the log message anywhere. As a matter of fact, I don't know
which file it
Well, I think your resource file is missing header and footer properties.
try to add
errors.header=
errors.footer=
at the top of your resource file.
hope it helps.
ATTA
- Original Message -
From: Ali Khan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 31, 2003 2:18 PM
hello Antoine,
what it is that you want to 'detect'?
Regards,
ATTA
- Original Message -
From: Gilbert, Antoine [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, February 10, 2003 10:39 AM
Subject: aliases
Hiya
I have a little database question about
sometime i have to use AS keyword in SQL and sometime not..
-Message d'origine-
De : atta ur rehman [mailto:[EMAIL PROTECTED]]
Envoyé : 10 février, 2003 14:05
À : Struts Users Mailing List
Objet : Re: [OT] aliases [SQL SELECT column aliases]
hello Antoine,
what it is that you want
-Original Message-
From: atta ur rehman [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 1:12 PM
To: Struts Users Mailing List
Subject: Re: [OT] aliases [SQL SELECT column aliases]
The only way to know wehter or not you could use AS for
column aliases would
be to refer
properly...
I would like to dynamicly detect it..
Event with DatabaseMetadata its not possible ?
-Message d'origine-
De : atta ur rehman [mailto:[EMAIL PROTECTED]]
Envoyé : 10 février, 2003 14:18
À : Struts Users Mailing List
Objet : Re: [OT] aliases [SQL SELECT column aliases
For your orderDetail textbox you could have setOrderDetail(String[]) and
String[] getOrderDetail() getter/setter in your ActionForm class.
Hope this helps.
ATTA
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 10, 2003 3:45 PM
Subject: posting
Dear All,
I'm using struts 1.0.2.
I have a requirement where i need to show a column consisting of dropdown
lists. Every row of the table for the column shows a dropdown with the same
list of options.
I've used String[] getCategory() and setCategory(String[]) getter/setter in
thr ActionForm. On
Where the collection myOptions is a List of beans. Those beans have two
fields value and label
Hope that helps!
-Original Message-
From: atta-ur rehman [mailto:[EMAIL PROTECTED]
Sent: Monday, July 21, 2003 12:46 PM
To: Struts Users Mailing List
Subject: A column consisting
in the right direction?
Thanks,
Amit
-Original Message-
From: atta-ur rehman [mailto:[EMAIL PROTECTED]
Sent: Monday, July 21, 2003 1:27 PM
To: Struts Users Mailing List
Subject: Re: A column consisting of html:select widgets
Thanks Amit.
And that's exactly what i'm doing! Still i
the DB and set multiple selected values depending on the values in the DB.
Vijay
-Original Message-
From: atta-ur rehman [mailto:[EMAIL PROTECTED]
Sent: Monday, July 21, 2003 11:27 AM
To: Struts Users Mailing List
Subject: Re: A column consisting of html:select widgets
Thanks
this in the Action:
aRequest.setAttribute(anActionMapping.getName(), myActionForm)
then forward it to the JSP page.
Do not do any funky javascript stuff (onLoad etc etc)
It should work without it!!
--Amit
-Original Message-
From: atta-ur rehman [mailto:[EMAIL PROTECTED]
Sent: Monday, July
or the values after submission of
the form.
I'd really appericiate any clues on this one!
Regards,
ATTA
- Original Message -
From: atta-ur rehman [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, July 21, 2003 12:28 PM
Subject: Re: A column consisting
hello charlene,
for ascii code of character you could simple use java cast operation:
char c = 'A'
byte b = (byte) c;
now b should be set to 65. the ascii value of capital 'a'.
for converting a number to hex you can use Integer.toHexString(int) static
method. at the same time you can use
Dear All,
I've been trying to for last three days to do this. Basically I've an HTML
table one of its column gives user to select Block Type. Block Type is a
list of reference values that are shown in an html:select element. Now to
handle this situation I've created String[] getter/setter for
Sure, I can. And thanks for replying!
I've attached the JSP and Form class.
And yes, i thought that i might need indexed properties and did add the
index property getter/setter to the Form. but i cannot seem to submit the
form with indexed property getter/setter.
and by the way, we're using
yes, that's a good question. i guess the same way struts passes all the
correct selections to the Form object on submission ;)
while we are on the subject, could you please refer me some further readings
on Indexed Properties and how it could help me in this case?
Thanks for your time.
ATTA
so far i've found these two link related:
http://www.husted.com/struts/tips/006.html
http://jakarta.apache.org/struts/faqs/indexedprops.html
and i'm still lost!
i'm kind of confused on this. i would see this as a very frequent occuring
'problem' in data-driven web apps and by the response of my
Dear all,
We have using Struts 1.0.2 for about last couple of years.
Now that Struts 1.1 is out. Are there any reasons for us to start thinking
moving to 1.1?
Any help or pointer to help will be greatly appreicated.
Regards,
ATTA
has tons of new features including validator, tiles, dynabeans,
and map backed forms.
David
--- atta-ur rehman [EMAIL PROTECTED] wrote:
Dear all,
We have using Struts 1.0.2 for about last couple of years.
Now that Struts 1.1 is out. Are there any reasons for us to start
thinking
Thanks. It was helpful.
But it still leaves me thinking if Indexed Properties are meant ONLY for
DynaActionForm type of forms?
I'm still unable to use them by using an array in my conventional
ActionForm.
ATTA
- Original Message -
From: Paananen, Tero [EMAIL PROTECTED]
To: 'Struts
Thanks very much Nick! It was indeed helpful. I was missing getter/setter
for individual list items!
now my form has following methods:
private String[] fruit = {Apple, Orange, Banana};
public List getFruits() {
return Arrays.asList(this.fruit);
}
public void setFruits(List l) {
this.fruit =
on your goal, you need to do
something different. What are you trying to do?
I'm off work in a minute, but I'll check messages at home later this
evening and see if I can help at all.
Nick
atta-ur rehman
[EMAIL PROTECTED]To: Struts
Message-
From: atta-ur rehman [mailto:[EMAIL PROTECTED]
Sent: Monday, July 28, 2003 3:37 PM
To: Struts Users Mailing List
Subject: Re: Indexed Properties
Thanks, for the reply.
Okay, here is the background. I'm trying to learn the user of Indexed
Properties. Why I'm doing that? Well, I
, 2003 2:57 AM
Subject: Re: Indexed Properties
Atta,
It sounds to me like you have it. As long as your names match up, it
should work fine. Ajay has given a full code example that looks good.
Nick
atta-ur rehman
[EMAIL PROTECTED
Thanks.
you see my problem is i don't know how to get the updated values when the
form is submitted? my beans collection is updated, my indexed getter/setter
are not called? so where are the new values or even the same values when i
submit without changing anything at all on the form?
this is my
so you are saying that ideally the the beans collection in my ActionForm
should be updated on form submission?
- Original Message -
From: Paananen, Tero [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 10:30 AM
Subject: RE: Indexed
Okay.
my form-bean definition looks like:
form-bean name=testForm type=test.TestForm/
while the action is:
action path=/test type=test.TestAction
name=testForm scope=session validate=false
input=/test.jsp
forward name=failure path=/mainMenu.jsp/
forward name=success
at the source and confirm that your
indexed properties are named correctly. You should see block[0].id,
block[0].name, block[0].category.
If none of this helps, I'm not sure where else to look. It sounds like
everything else is lining up...
Nick
atta-ur rehman
Hello Mona,
is ABC is bean that has six properties that you need to show? and then you
have a collection of ABC objects in a List or Vector? if so, you can use the
indexed properties to capture all the changes done on the page.
and yes, usually one submit button is enough for six hundred
hello sridhar,
if you've been able to display the page with all your IpAddress bean in the
collection, you're quite colse. Now on your form add a IpAddress
getIpAddress(int index) this method should retun the appropraite IpAddress
object at the given index of the your collection. that's it! now
hi all,
excuse me if this sounds off topic!
can somebody please point to some references on how to incorporate a
dynamically built tree-like structure in a struts app? can struts-menu be
used for this purpose? any other suggestions?
thanks.
ATTA
a wonderful site which
explains how to build a nice tree using nested tags.
Thanks a lot Aaron. you have saved my life more than
once.
regards
Ashok
--- atta-ur rehman [EMAIL PROTECTED] wrote:
hi all,
excuse me if this sounds off topic!
can somebody please point to some references on how
hi james,
could you please explain, for a struts newbie, what do you mean by
quote
I'm using DispatchAction with 2 abstract base actions between my actions and
the dispatch action. The first one has helper methods for functionality not
requiring authentication, and the second one (which extends
?
--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
770.822.3359
AIM:jmitchtx
- Original Message -
From: atta-ur rehman [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 12:59 PM
Subject: Re: [Poll
Okay. its not a struts questions and probably should be sent to a JavaScript
forum. but i spirit of Struts; here is what i would call a very crude method
of doing it. i hope it would give you a starting point.
javascript
function doIt() {
var today = new Date();
var fridays = new Array();
Nick,
It is a consice article on message resource usage. Thanks.
In our scenario, for the sake of maintainablity given the number of entries
in the resource files, we have separate resource files for Labels and
Messages. Sometimes you have to show a message like:
First Name is required.
where
hi,
what do you mean by when i try to dispay it? are you using html:errors
tag or some other mechanism?
in your JSP page have you tried:
html:errors bundle=approval /
ATTA
- Original Message -
From: Ashish Kulkarni [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 31, 2003
in Action class problem
Hi
yes if i do that it works fine, but my problem is the
following
some error messages come from maps.properties file,
which is default and some come from
approval.properties file, so is there a way to make a
single tag work for both
Ashish
--- atta-ur rehman [EMAIL
sure, it will!
- Original Message -
From: jeff [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 1:37 PM
Subject: struts and filters
will struts work with filters ?
i am using filters now, and want to start using struts.
thanks,
http://www.mail-archive.com/[EMAIL PROTECTED]/
- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, November 12, 2003 1:59 PM
Subject: RE: How to Turn off Struts logging?
Can someone point me to the archives?
Thanks
Yee,
Hello Shahfazal,
As i understand from the 'applicantId' getter, you want to use these
checkboxes as a selecting indicator. If so, create a String[]
getter/setter in your ActionForm, let say:
setSelectedApplicants(String[] ids)
String[] getSelectedApplicants()
now in your jsp you can write:
+1
ATTA
- Original Message -
From: Christian Bollmeyer [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 11:53 AM
Subject: Re: [OT] RE: Memory usage
On Thursday 26 February 2004 20:12, Dhaliwal, Pritpal (HQP) wrote:
Now. Still
+1
ATTA
On Mar 1, 2004, at 8:19 PM, Vic Cekvenich wrote:
-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
4. I had the same frustrations that you have. I made the decision
that the
best way to restore the balance of good in the universe, was to try to
become the
Hello Jan,
One way I see it could be done is to move the hidden element out of both of
the links and in parameterize your JavaScript:sendFormNeuanlage() method
for 'bestaetigen' and 'aktualisieren' and let this javascript method set the
value of the hidden field.
function
Hello Kazim,
A quick test on my JSP page with Strtus 1.1 in place just works fine:
%
String[] names = {joe, cindy};
session.setAttribute(names, names);
%
bean:define id=n name=names scope=session type=java.lang.String[]
/
logic:iterate name=n id=name
bean:write name=name/
/logic:iterate
Well, Kazim, with this description you can hardly expect to get any help at
all!
What's logoff process? What's it doing? What's the exception? Is the
underlying code for logoff process a state secret?
ATTA
- Original Message -
From: Syed Kazim Hussain [EMAIL PROTECTED]
To: [EMAIL
invalidation being done anywhere.
-Original Message-
From: atta-ur rehman [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 13, 2004 3:33 AM
To: Struts Users Mailing List
Subject: Re: Users logs off
Well, Kazim, with this description you can hardly expect to get any help
at
all!
What's
You might want to try logic:messagesPresent tag instead.
ATTA
- Original Message -
From: Joao Batistella [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 12:59 PM
Subject: Testing a GLOBAL_ERROR
I'm trying to test if I got an Global
hi there,
only way i know for achieving this is to extend struts' tags and either
override the getStyleClass() method or add a new property
getErrorStyleClass().
if you search archives on this list,
http://www.mail-archive.com/[EMAIL PROTECTED]/msg96068.html
Niall suggested a few days back about
How about:
jakarta.apache.org/struts/dtds/struts-config_1_1.dtd
- Original Message -
From: Bill Siggelkow [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 10:13 AM
Subject: Re: Documentation Struts-config
I think you will find that the struts-config_1_1.dtd file
Dear all,
I've been struggling with this problem for about two days now; I hope
somebody here would be able to help me. In one of my actions I've
implemented Struts token functionality to keep user from using browser
Refresh button. Every thing works as promised except for when invalid token
Any takers?
ATTA
- Original Message -
From: atta-ur rehman [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 10:17 AM
Subject: redirect=true and Tiles; does it work?
Dear all,
I've been struggling with this problem for about two days
and Tiles; does it work?
--- atta-ur rehman [EMAIL PROTECTED] wrote:
Any takers?
I'll give it a shot.
ATTA
- Original Message -
From: atta-ur rehman [EMAIL PROTECTED]
global-forwards
forward name=invalidToken path=showInvalidTokenMessage.do
redirect=true
, 2004 3:07 PM
Subject: Re: redirect=true and Tiles; does it work?
--- atta-ur rehman [EMAIL PROTECTED] wrote:
TestProcessAction just forwards to success forward. But before it does
that it check for the valid token and in the case of an invalid token it
just forwards (redirects
and on IE 6.0.2800 the action
is not called neither do I see the confrimation message of posting again!
Boils down to Browser?
--- atta-ur rehman [EMAIL PROTECTED] wrote:
http://localhost:8080/test/processTest.do
and if and press Refresh here the url changes to:
http://localhost:8080/test
!
- Original Message -
From: atta-ur rehman [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 4:11 PM
Subject: Re: redirect=true and Tiles; does it work?
See inline, please.
- Original Message -
From: Hubert Rabago [EMAIL PROTECTED
I can confirm the stated behavior for both Mozilla FireFox 0.8 and Netscape
7.1 too.
- Original Message -
From: atta-ur rehman [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 4:15 PM
Subject: Re: redirect=true and Tiles; does it work
time to upgrade to Firefox
0.8.
confused/,
Hubert
--- atta-ur rehman [EMAIL PROTECTED] wrote:
See inline, please.
- Original Message -
From: Hubert Rabago [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 3:56 PM
Subject: Re
86 matches
Mail list logo