You can use Action.saveToken(...) to create a transaction in the first
action.
Then you use in your last action Action.isTokenValid(...) to verify if the
user can commit his response.
if(isTokenValid(...)){
// do your validation
// if validation is done successfully
You can do it as you did it in the validate method. For exemple :
ActionErrors errors = new ActionErrors();
if( dateFrom!=null
!dateFrom.trim().equals()
!isValideDate(dateFrom)
)
errors.add(Constants.FROM_FIELD_ERROR, new
ActionError(error.dateformat));
if( dateTo!=null
]
Objet : RE : How to display an error from reset method (ActionForm) ?
Hello,
The problem is that the reset method doesn't return ActionErrors.
Sylvie.
-Message d'origine-
De : Arnaud HERITIER [mailto:aheritier;sopragroup.com]
Envoyé : lundi 4 novembre 2002 14:11
À : 'Struts
to display an error from reset method (ActionForm) ?
Hello,
The problem is that the reset method doesn't return ActionErrors.
Sylvie.
-Message d'origine-
De : Arnaud HERITIER [mailto:aheritier;sopragroup.com]
Envoyé : lundi 4 novembre 2002 14:11
À : 'Struts Users Mailing List
'; [EMAIL PROTECTED]
Objet : RE : RE : How to display an error from reset method
(ActionForm)
?
We tried it, but with no more success.
Sylvie.
-Message d'origine-
De : Arnaud HERITIER [mailto:aheritier;sopragroup.com]
Envoyé : lundi 4 novembre 2002 14:46
À : 'Struts Users Mailing
You must also upgrade all libraries used by struts : jakarta commons
beanutils, collections, ...
And you must rebuild your web app.
Arnaud
-Message d'origine-
De : edgar [mailto:edgar;blue-moose.net]
Envoye : jeudi 14 novembre 2002 12:24
A : 'Struts Users Mailing List'
Objet : RE:
Did you send this e-mail with the SAME e-mail address you used to register
to the mailing-list ???
-Message d'origine-
De : Ota, Larry W [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 11 décembre 2002 17:54
À : Struts Users Mailing List (E-mail)
Objet : I cannot unsubscribe from Struts
You can use :
META http-equiv=Pragma content=no-cache
META http-equiv=Cache-Control content=no-store, no-cache,
must-revalidate, post-check=0, pre-check=0
META http-equiv=Expires content=0
With this tags in your header, a lot of browsers will not keep the page in
their cache.
So when the user
I had this problem.
It was a problem with WL 6.1 SP2.
I don't remember which patch I needed to use but I know that there was one.
Contact the WL support to obtain it.
Arnaud
-Message d'origine-
De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Date: jeudi 6 juin 2002 08:59
A:
you know whom i need to contact
-Original Message-
From: ext Arnaud Heritier [mailto:[EMAIL PROTECTED]]
Sent: 06 June, 2002 11:07
To: 'Struts Users Mailing List'
Subject: RE: Weblogic 6.1 and Struts
I had this problem.
It was a problem with WL 6.1 SP2.
I don't remember which patch I
Hi guys !!
I need to use struts 1.1 b1 or a nightbuild.
I'm actually using struts 1.0.2.
Is struts 1.1 B1 stable or should I use a nightbuild (which one) ??
is someone success the upgrade ???
Thanks for your advices.
Arnaud HERITIER
EAI Consulting
Sopra Group
Tél. : +33 (0)1 53 33 44
: unknown
Can you confirm my assumptions.
Are all jars usefull for struts or are there some of them used by some
extensions like tiles, .. ???
Thanks a lot.
Arnaud HERITIER
EAI Consulting
Sopra Group
Tél. : +33 (0)1 53 33 44 74
email : [EMAIL PROTECTED]
Ce message est exclusivement
In my WebApp using struts 1.0.2 I subclassed the ActionServlet.
In this servlet I used the methods processPath() and processActionForward()
from the ActionServlet 1.0.2.
How can I do with the 1.1 because when I retreive the RequestProcessor,
these methods are protected :-(
Bugzilla
Arnaud
) cents.
-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 12:33 PM
To: Struts-Dev (E-mail); Struts Users Mailing List (E-mail)
Subject: Struts dependencies
Hi guys.
I downloaded the last nighty build of struts.
I would
I'll send some bug reports to bugzilla if it is not yet done.
Arnaud Heritier
-Message d'origine-
De : Martin Cooper [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 10 juillet 2002 17:34
À : 'Struts Users Mailing List'
Objet : RE: Struts dependencies
There was an extensive
very good, struts team.
You do it manually or you use a tool ??
-Message d'origine-
De : Martin Cooper [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 10 juillet 2002 17:41
À : 'Struts Users Mailing List'
Objet : RE: Controller UML class diagram
FYI, if you pick up the latest
, so that
you (and tools) can determine which version is present.
Craig
On Wed, 10 Jul 2002, Arnaud HERITIER wrote:
Date: Wed, 10 Jul 2002 13:33:02 +0200
From: Arnaud HERITIER [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List
[EMAIL PROTECTED],
[EMAIL PROTECTED]
To: Struts
-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 5:27 AM
To: Struts Users Mailing List (E-mail)
Subject: Migration from 1.0.2 to 1.1
In my WebApp using struts 1.0.2 I subclassed the ActionServlet
please.
Thx.
Arnaud HERITIER
EAI Consulting
Sopra Group
Tél. : +33 (0)1 53 33 44 74
email : [EMAIL PROTECTED]
Ce message est exclusivement destiné aux personnes dont le nom figure
ci-dessus. Il peut contenir des informations confidentielles dont la
divulgation est à ce titre
property=%=\myRadios[\+index+\]\% value=A/html:radio
property=%=\myRadios[\+index+\]\% value=B/
/logic:iterate
/html:form
Arnaud
-Message d'origine-
De : Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 16 juillet 2002 15:50
À : Struts Users Mailing List (E-mail)
Objet : Indexed
I'm using the nightly build of the 10 jully and I haven't got (not yet) any
problem with it.
arnaud
-Message d'origine-
De : Bryant, Doug [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 16 juillet 2002 16:53
À : '[EMAIL PROTECTED]'
Objet : A good nightly build to start developing against
=myRadios[%= index %] value=B/
/logic:iterate
/html:form
This way, you don't have the implicit string creation (you
get one every
time you use the + to concatenate). Object creation is slow :-( so
don't do it if you don't have to.
Regards,
Eddie
Arnaud HERITIER wrote:
Ok I found myself
-Message d'origine-
De : Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Envoye : mardi 16 juillet 2002 17:55
A : Struts Users Mailing List
Objet : Re: Latest Nightly build
On Tue, 16 Jul 2002, Jon.Ridgway wrote:
Date: Tue, 16 Jul 2002 11:39:37 +0100
From: Jon.Ridgway
to the
corresponding
Struts tags in the bean and logic libraries. For the html tags,
we'll end up with JavaServer Faces tags when it's released.
(here with 'index' as a request variable ;))
Manfred.
Craig McClanahan
-Original Message-
From: Arnaud HERITIER [mailto
Hi all.
I saw in the struts config DTD the global-exceptions element which allows to
catch exceptions throwed in the execute method of Action classes.
I don't understand how I can use it, and what I can do with this new
feature.
The doc about the exception handler is TODO in the last nightly
I can propose a solution but it will work only with struts 1.1 because it
uses indexed properties.
In your first iterate you should define an indexId. For example :
logic:iterate id=access indexId=myIndex name=AccessTable
property=entries type=beans.AccessLevel
Then in the html:radio you use
I think it can help you :
http://nagoya.apache.org/eyebrowse/ReadMsg?[EMAIL PROTECTED]
he.orgmsgNo=40180
But you'll need to use struts 1.1 !
-Message d'origine-
De : Bensman, Jeff [EESUS] [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 24 juillet 2002 15:03
À : '[EMAIL PROTECTED]'
Hi Arnaud,
Could you pleased to show an example for more general and frequent case of
iterating radio - usually one have a set of groups of radios and first
iteration is over groups and second iteration is over radios in every group.
I surprise that there was no example before on this situation
-Message d'origine-
De : Sergei P. Volin [mailto:[EMAIL PROTECTED]]
Envoye : mercredi 24 juillet 2002 15:45
A : [EMAIL PROTECTED]
Objet : RE: html:radio and iterate tag
Sorry, one comment - groups are in array (ArrayList etc.) and radio values
in every group are stored also in arrays,
if someone can help Sergei please because I'm very busy these days.
Thx
-Message d'origine-
De : Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
Envoye : mercredi 24 juillet 2002 16:22
A : Struts Users Mailing List (E-mail)
Objet : TR: html:radio and iterate tag
Hi Arnaud,
Could
http://easystruts.sourceforge.net/
-Message d'origine-
De : Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Envoyé : mercredi 24 juillet 2002 16:40
À : [EMAIL PROTECTED]
Objet : eclipse and Struts
Subject: eclipse and Struts
From: Eric [EMAIL PROTECTED]
===
Anyone knows how to
[mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 24 juillet 2002 16:50
À : 'Struts Users Mailing List'
Objet : RE: eclipse and Struts
Can you debug Struts/Tomcat in eclipse?
-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 9:48 AM
Thanx for the correction Martin.
arno
-Message d'origine-
De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Date: samedi 25 aout 2001 23:02
A: [EMAIL PROTECTED]; Heritier Arnaud
Objet: Re: Index within iterate tags
Not quite. You need to specify the property attribute instead
To correct it, I think that you could also rename the classes.zip in
classes.jar.
I had a similar problem that I resolved like this.
arno
-Message d'origine-
De: Shamdasani Nimmi-ANS004 [SMTP:[EMAIL PROTECTED]]
Date: mercredi 29 aout 2001 00:57
A: '[EMAIL PROTECTED]'
Objet:
: Tomcat 3.2.3
Browser : IE5.5
and Struts 1.0
Arnaud HERITIER
Ingenieur d'etudes
SOPRA. Group
EAI Consulting
Tel : +33-1-49-00-58-12
Fax : 04 50 33 30 78
Email : [EMAIL PROTECTED]
Sorry, but as you should seen it, I reversed the two JSP codes :-)
arno
-Message d'origine-
De: Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
Date: jeudi 30 aout 2001 12:40
A: 'struts users mailing list'
Objet: html:image and javascript incompatibility ???
Hello Guys!!
I've
aout 2001 12:55
A: [EMAIL PROTECTED]
Objet: RE: html:image and javascript incompatibility ???
When you use a image, instead of using its onclick event , put an href link
on the image and it will work fine this is html constraint
-Original Message-
From: Arnaud Heritier [mailto
, just use href= (not href src=) and put your
call
to the javascript in it.
Arnaud Heritier wrote:
Thanx Satyen for this information.
But if I use a
a href src=??? onClick=javascript:validateAndSubmit(,'')
img src=...
/a
What should I use as src because it will go on it when
(), or
refer to it by its index like document.forms[0].submit()
this would be cleaner:
script language=javascript
function submitForm(f) {
if confirm(...) {
f.submit();
}
}
/script
!-- other code --
a href=javascript:submitForm(document.formName)img src=.../a
Arnaud Heritier wrote:
ok
Thanks everybody for your very useful help.
It's correctly working now.
arno
-Message d'origine-
De: Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
Date: jeudi 30 aout 2001 15:24
A: '[EMAIL PROTECTED]'
Objet: RE: html:image and javascript incompatibility ???
thanx Jonathhan
The PropertyUtil is now in the jakarta commons Library in the beansProperty package.
let's see :
http://jakarta.apache.org/commons/commons.html
arno
-Message d'origine-
De: Ines Pederiva [SMTP:[EMAIL PROTECTED]]
Date: lundi 3 septembre 2001 14:06
A: [EMAIL PROTECTED]
Objet:
I know that CoolMenu 3 hasn't this problem.
You can study the sources in struts-menu where there's an example.
http://sourceforge.net/projects/struts-menu/
Arnaud
-Message d'origine-
De : Denis Wang [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 2 avril 2003 17:42
À : Struts Users
You're not in C++ :-)
In java you can't inherit from several classes.
(cf java specs)
Arnaud.
-Message d'origine-
De : Heligon Sandra [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 16 décembre 2002 17:58
À : 'Struts Users Mailing List'
Objet : RE: Multiple submit buttons
all the
Hi all!
I have a question about Struts 1.1.
I would like to access to the default MessageRessources instance I use in my
web app in the validate method of an ActionForm.
How can I do that ??
I didn't do it up to now and I don't find a solution.
Any ideas ??
Arnaud HERITIER
EAI Consulting
to MessageRessources in an
ActionForm ??
Try this:
MessageResources msgres = getServlet().getResources();
-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 6:32 AM
To: Struts Users Mailing List (E-mail)
Subject: [Struts 1.1] How to access
Do you use struts 1.0 or 1.1 ??
Did you define a message-ressources in the struts XML config file ???
You should declare something like :
message-resources parameter=test null=false /
Arnaud
-Message d'origine-
De : amit kaushik [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi
Not only with Struts but in JSP in general you can use :
jsp:include ...
or
%@ include ...
ref : http://java.sun.com/products/jsp/download.html#specs
Arnaud
-Message d'origine-
De : Cédric Linez [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 20 décembre 2002 12:08
À : Struts
You can use the property attribute of html:errors/
In your Action or in your FormBean you save your errors under an appropriate
key :
In an action :
ActionErrors errors = new ActionErrors();
errors.add(Constants.FATAL_LEVEL, new ActionError());
or
errors.add(Constants.ERROR_LEVEL, new
you can define a property in your form bean with a different value if you
use one button or the other.
In your validation method you test this property to verify if you check the
others fields or not.
Arnaud
-Message d'origine-
De : Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
Envoye :
Merry Xmas and Happy new year everybody.
Good luck for all of those who try to finalize a b3.
Thanks a lot for all the dev team.
cheer !
Arnaud.
-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 24 décembre 2002 16:43
À : [EMAIL PROTECTED]
Objet
,
I m using DynaVaidationForm so struts automatically
checks for the validation depending upon the
defination in validation.xml
is there a way out by using DynaValidationForm
Ashish
--- Arnaud HERITIER [EMAIL PROTECTED] wrote:
you can define a property in your form bean with a
different
and field Y
equals male.
I think it is possible to do what you want with the validator but don't know
how.
-Message d'origine-
De : Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
Envoye : mardi 24 decembre 2002 17:07
A : 'Struts Users Mailing List'
Objet : RE: 2 submit buttons
It is a bug in WLS 6.1 SP2 and before.
To use Struts 1.1 with WLS 6.1 SP2 I needed to install this patches on the
server :
062920
When specifying an exception-type in web.xml in a webapp (the exception
class is located under WEB-INF/classes) when the webapp is deployed,
WebLogic Server was not
it is bug in WLS.
If you need to use the 6.1 SP2 then you should apply this patchs :
062920
When specifying an exception-type in web.xml in a webapp (the exception
class is located under WEB-INF/classes) when the webapp is deployed,
WebLogic Server was not finding the exception class and
You can look this taglibraries to help you :
http://struts.application-servers.com/
http://edhill.its.uiowa.edu/display-0.8/
Arnaud
-Message d'origine-
De : Heligon Sandra [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 8 janvier 2003 11:49
À : '[EMAIL PROTECTED]'
Objet : Advanced
you can look this :
http://jakarta.apache.org/struts/userGuide/building_controller.html
Arnaud
-Message d'origine-
De : ashokd [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 25 janvier 2002 12:00
À : Struts Users Mailing List
Cc : [EMAIL PROTECTED]
Objet : Re: Problem With Multiple
Struts 1.1 uses Commons-logging as logs wrapper.
You can use the logging library you want (log4J, JDK 1.4, ...).
See the documentation of commons-logging for more explanations.
http://jakarta.apache.org/commons/logging.html
and
It's not an applet but libraries that you can use to generate images
viewable from a servlet or in an applet :
http://jrefinery.com/jfreechart/
http://chart2d.sourceforge.net/
arno
-Message d'origine-
De: Lister, Tom (ANTS) [SMTP:[EMAIL PROTECTED]]
Date: jeudi 28 fevrier 2002
the generation of the class from
the JSP page :-(
I think that it is related to the use of the Struts taglibs.
Is anyone know this problem ??
thanks.
Arnaud HERITIER
EAI Consulting
Sopra Group
Tel. : +33 (0)1 53 33 44 74
email : [EMAIL PROTECTED]
Ce message est exclusivement destine aux personnes dont
with weblogic, I'm working with struts, taglib,
templates, weblogic 6.1, be more specific about your doing.
-Original Message-
From: Arnaud Heritier [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 11:28 AM
To: 'Struts Users Mailing List'
Subject: Weblogic 6.1 SP2 and Struts 1.0.2
After looking at the code of struts, I realized that there's not a ActionMessages
class in the org.apache.struts.action package :-(
I continue to follow this trail ...
-Message d'origine-
De: Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
Date: mercredi 13 mars 2002 10:48
A:'Struts
: Weblogic 6.1 SP2 and Struts 1.0.2 taglibs
I think ActionMessages is in the new version (from the nightly build) but not
in the stable version. (If that's the name of the thing like ActionErrors but
not for errors). ie. you are running new code on old version of struts.
--- Arnaud Heritier
I know that there's a bug in WLS6.1 SP2 (don't know if it applies to WLS
6.1) with jar containing several dots in there name.
For example : commons-beanutils-1.2.jar
let's see :
http://dev2dev.bea.com/resourcelibrary/bugfixesdetail.jsp?highlight=bugf
I didn't watch the code but the difference between tomcat and weblogic is that
weblogic reuse the taglibraries in the same page.
Tomcat create a new TagClass for each tag instance while Weblogic reuse the first
instance and call the release method.
This method should reinit all default values
Arnaud
-Message d'origine-
De: Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
Date: mardi 26 mars 2002 15:42
A:'Struts Users Mailing List'
Objet:RE: Problems with optionsCollection tag and Weblogic 6.1
I didn't watch the code but the difference between tomcat
2002 16:05
A:Struts Users Mailing List
Objet:Re: Problems with optionsCollection tag and Weblogic 6.1
Arnaud Heritier wrote:
but the release method defines :
label = null;
name = null;
property = null;
style = null;
styleClass = null;
value = null;
Hmmm, I
In TC 4 the verification of the web.xml syntaxe is more restricting.
you should verify that you correctly declare your web.xml as in the dtd :
!ELEMENT web-app (icon?, display-name?, description?, distributable?,
context-param*, servlet*, servlet-mapping*, session-config?,
mime-mapping*,
Do you have correctly ordered your tags in the web.xml
The error informs you that you don't respect the dtd.
You must write your web xml with the order :
(icon?,
display-name?,
description?,
distributable?,
context-param*,
filter*,
filter-mapping*,
listener*,
servlet*,
servlet-mapping*,
I had the same problem and reported it to the BEA support.
There's a patch that I applied and which corrects this problem.
Don't hesitate to contact the BEA support even if you are evaluating the product with
a trial download.
The support is quite competent and they have numerous patchs to offer
Don't you miss to transfert your form bean at the end of your action like
this :
if(form!=null)
if (request.equals(mapping.getScope()))
request.setAttribute(mapping.getAttribute(), form);
else
It is a little slow but it's depend of the server.
Can you tell us what is the server side architecture.
JDBC ? EJB ??
Which server do you use : Tomcat ?.? (+Apache ?.?), Weblogic,
What is the Hardware and the OS ???
I know, I'm very curious but all this parameters alter the result.
I believe that it is the 2.0.7 release.
Arnaud.
-Message d'origine-
De : Mark McBride [mailto:[EMAIL PROTECTED]
Envoyé : lundi 30 juin 2003 18:26
À : Struts Users Mailing List
Objet : Re: [ANNOUNCEMENT] Struts 1.1 Final released
I've noticed that all the library versions are
72 matches
Mail list logo