Thank u,
it works great :-)
I have :
May I ask u, dear Christopher, what's the difference of it with what u have
done :
Hi all,
I want to display a message of type "required" if password is not entered,
if it is entered and less than 6 chars, display *another* message of type
"minlength"
I have this for now on, but not completed :
minlength
Ok,
I used this
minlength
6
It work great.
Thank u.
Hi,
I see that I can validate a Date with the Validator framework,
but don't know how to apply it in my case.
my bean has separate variables for day - month - year
(it is not one string)
I have three fields because he had to choose the date with a select html tag
for the day, a select html tag fo
I make a custom validator myDate
I try to give as var value the day and the month,
but when I try to get the values of the vars day and month,
I get the String literals birthDay and birthMonth
day
I get the String literals and not the real numbers
Ok everything is fixed, I forgot to do :
ValidatorUtils.getValueAsString
Hi,
I have this declaration for my web.xml :
http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
I can see that this declaration has
Thank u very much Miss Harper.
I think it's due to this code, and I don't really know a good way to rectify
this :
Jour
Mois
Thank u very much for your support.
It is fixed
Weird that in Eclipse it doesnt show the taglib element !
But I placed this somewhere and it works !
thx !
Thank u ! it works great
:-)
Hi,
been one week I have this error
When I try to submit a form,
I have this error :
23-nov.-2006 23:38:32 org.apache.struts.validator.DynaValidatorForm validate
GRAVE: No such validation met
I use Struts 1.3.5
When u talk about signatures, u talk about the doctypes of the validators
xml files ?
Because I copied pasted them from the struts 1.3.5 examples of validators.
Thank u very much.
Hi,
since I added a constraint for the length with minlength, I have the
following errror :
28-nov.-2006 21:31:33 org.apache.struts.validator.DynaValidatorForm validate
GRAVE: org.apache.struts.util.StrutsValidator
org.apache.commons.validator.ValidatorException:
org.apache.struts.util.StrutsVali
I just implemented Struts Tiles in my web application.
I love the concept of seperating everything that has to do with layout and
the rest.
But it seems that I will lose some performance now :
1)
The tag tiles:insert doesn't allow to include in a static way a jsp page.
2)
Since the head tag is
Thank u Chris,
I will try that !
Do u have a solution for number 1) ?
including CSS in all webpages does not decrease the performance.
On 11/29/06, Thomas Thomas <[EMAIL PROTECTED]> wrote:
> Thank u Chris,
> I will try that !
> Do u have a solution for number 1) ?
>
>
-
To
ofcourse you can also go for Chris route.
On 11/29/06, Thomas Thomas <[EMAIL PROTECTED]> wrote:
> They will be cached if the user 'surf' on the webpage,
> if I have thousand pages, and he may see two pages,
> i am going to store 1000's css files in his cache.
>
&g
any bloody CSS files?
>
> > -Original Message-
> > From: Thomas Thomas [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, November 29, 2006 4:43 AM
> > To: Struts Users Mailing List
> > Subject: Re: Struts Tiles, Lose of Performance ? :-(
> >
> > The
hink of my
arguments ?
2006/11/29, Dave Newton <[EMAIL PROTECTED]>:
From: Thomas Thomas [mailto:[EMAIL PROTECTED]
> >> How about not having so many bloody CSS files?
> How ?
Delete some?
Seriously; why are your styles so spread out? Don't you have a
consistent style (perhap
ROTECTED]>:
From: Thomas Thomas [mailto:[EMAIL PROTECTED]
> what do u think of my arguments ?
I think you have too many CSS files :)
I've seen sites with maybe 2-3, but if your site pages are supposed to
look the same you might want to consolidate all your style information
to avoid dupl
e instead.
2006/11/29, Antonio Petrelli <[EMAIL PROTECTED]>:
Thomas Thomas ha scritto:
> Yes, I think you are right,
> I'm doing this all wrong :-(
>
> I can't include jsp's in a static way with Tiles ?
Use or <[EMAIL PROTECTED]> instead. Using Tiles does no
I'm trying to understand Tiles ...
Instead of this :
** tiles-defs.xml **
** base.jsp **
[...]
I could have this :
** tiles-defs.xml **
** base.jsp **
<[EMAIL PROTECTED] page="incl/header.jsp" %>
Hi,
My web-application allows a user to authenticate to the website.
I check for login and password with the Validator Framework (correct length,
correct carachters, ...)
Then display with and in my jsp.
This work ok.
If he the fields are valid, I need to check in my DB if the user is really
I could just use this :
** tiles-defs.xml **
** base.jsp **
<[EMAIL PROTECTED] page="incl/header.jsp" %>
[...]
And use the base.jsp-layout in different pages.
And u see I'm not using
But u suggested me to use the <[EMAIL PROTECTED] ... %> if I want to add
static jsp
content.
Well then it's in contradiction with what u say !
I understand that let u fill the attributes but
why do u suggest me then to use <[EMAIL PROTECTED] ... %> ?
This attribute will then render always the s
Nobody can help me ?
No-one has *Any* idea ?
Hi,
I have the following DynaValidatorForm :
How am I supposed to get the parameters of this Form bean in the Action
class ?
public class LoginAction extends Action {
public ActionForward execute(
Wendy,
thank u for your support.
I don't know if I need to choose an ActionForm or DynaActionForm for the
login page.
When do u choose to make it a DynaActionForm ? What's the advantage of it.
Well there is still code in the XML,
what's the point for having this code in XML then in Java in this case.
2006/12/1, Dave Newton <[EMAIL PROTECTED]>:
From: Thomas Thomas [mailto:[EMAIL PROTECTED]
> I don't know if I need to choose an ActionForm or DynaActionForm for
>
There is not much code for a FormBean in Java ...
I don't see the point to have it in XML
If u add a property in a bean, or remove ...
I think u will have to change the code anyway and recompile ...
2006/12/1, Dave Newton <[EMAIL PROTECTED]>:
From: Thomas Thomas [mailto:[EMAIL PROTECTED]
> There is not much code for a FormBean in Java ...
> I don't see the point
Hi,
To get the properties these two ways work :
1) System.out.println("lastName = " + custForm.get("login"));
2) System.out.println("lastName = " + request.getParameter("login"));
Why should I use 1) rather than 2) ?
Thank u.
Hi,
I'm using Validator Framework with Struts,
Here I want to validate a registration form.
I want to add a field property passwordCheck, (the user needs to enters his
password twice : the first password will be in property password, the second
in passwordCheck)
I want to check if value of passwo
Dear Sean,
thank u for your precious support.
I added this :
test
(passwordCheck == password)
But it's not working :-(
Instead of :
(passwordCheck == password)
I put :
(*this* == password)
But it still doesn't work
:0
>
> F
>
> On Wed, May 13, 2009 at 11:21 PM, chen thomas
> wrote:
> > Hi
> >
> > I'm a Struts 2 newbie .I want to integrate struts2 ,convention plugin and
> > spring.
> > how to do? anyone give me some advice?
> >
> > thanks
access the messages when I have the following in
my struts-config :
What do I write in my jsp's ?
Do I need to add something in my web.xml ?
\T,
--
Thomas SMETS
Architect reengineering
bmit buttons ?
>> Basically, instead of extending various Forms to have some code
>> re-use I think it would be much more interresting to have the
>> possibility to post multiple Forms instead of having a Specific form
rors.add(ActionErrors.GLOBAL_ERROR, new
> ActionMessage("errors.general.alphabetic.required",
> messages.getMessage(hrOnlineLocale.getLocaleLocale(),
> "label.first.name")));
>
> Is there a better way to do this?
>
> TIA,
> Glenn
--
Thomas SMETS
rue J. Wytsmanstraat 62
1050 Brussels
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
iews of the RTA. If you
> receive this e-mail in error, please immediately delete it from your
> system and notify the sender. You must not disclose, copy or use any
> part of this e-mail if you are not the intended recipient.
>
> --
Check that EVERYTHING is UTF-8
JSP's, java source (irrelevant but ...), property files, ...
Weblogic also accepts the following in its weblogic.xml
encoding
UTF-8
If you do XHTML you can also add the follwoing two to your JSP's.
<%@ page pageEncoding="UTF-8" %>
Hop
When I do this ...
...
I get the following error message:
java.lang.IllegalStateException: Cannot forward after response has been
committed
What am I doing wrong?
Thanks in advance,
Bob
-
Do you Yahoo!?
Take Yahoo! Mail with you! Ge
Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: "Bob Thomas"
To:
Sent: Wednesday, June 16, 2004 3:23 PM
Subject: Tiles problem
> When I do this ...
>
>
> ...
>
>
>
> I get the following error message:
> jav
ve a stack trace?
At 12:26 PM 6/16/2004, James Mitchell wrote:
>Did you configure an error page in your web.xml?
>
>
>
>--
>James Mitchell
>Software Engineer / Open Source Evangelist
>EdgeTech, Inc.
>678.910.8017
>AIM: jmitchtx
>
>- Original Message -
>
tchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: "Bob Thomas"
To: "Struts Users Mailing List"
Sent: Wednesday, June 16, 2004 3:34 PM
Subject: Re: Tiles problem
> We have an error 404 page:
>
>
I have JSPs that work fine using images, stylesheets, etc. from other directories.
However, when I put those same JSPs into tiles, the JSPs can no longer find the
images, stylesheets, etc. unless I change the paths to those images, etc. These JSPs
are in child directories beneath the parent dire
ike
At 07:18 AM 6/21/2004, Bob Thomas wrote:
>I have JSPs that work fine using images, stylesheets, etc. from other
>directories. However, when I put those same JSPs into tiles, the JSPs can
>no longer find the images, stylesheets, etc. unless I change the paths to
>those images,
ion so that you never have to
worry about these things again, as people have to almost every day on this
list, then go to:
http://wiki.apache.org/struts/StrutsCatalogEschewUrlForProtocol
Mike
At 07:18 AM 6/21/2004, Bob Thomas wrote:
>I have JSPs that work fine using images, stylesheets, etc. fr
my actual validation.xml, but I tried combinations like : [+-]{1}
or [+-]{1} or [+-]{1} too
mask^+|-[0-9]*$
Anyone with an idea on how to solve this problem ??
Thanks
Thomas
Message sent using Uebi
Validator MASK needed
Datum: 30/07/04 15:14
> have you tried escaping the + and -? [+-]
>
> > -----Original Message-
> > From: Thomas Vogt [mailto:[EMAIL PROTECTED]
> > Sent: Friday, July 30, 2004 8:10 AM
> > To: [EMAIL PROTECTED]
> > Subject: Help on Valid
ex.jsp) is not available.
Is there another solution?
I use
This works for me on TC 4.1 and TC 5.0.
HTH
--
Paul Thomas
+--+-+
| Thomas Micro Systems Limited | Software Solutions for
Business |
| Computer
my ass. ;)
Thanks
Thomas
Robert Miller schrieb:
Thomas,
I agree with the escaping "+" (without escaping it is interpreted as
"must have one or more of the previous").
Also if you wanted you could use "\d" instead of "[0-9]".
A modified version that looks good
s? Which I can't find docs or HOWTO for? I would
> be thankful for any help?
>
> Shedrick
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Thomas SMETS
rue J. Wyt
I am in the process of finalizing a move to Struts 1.1 under Tomcat 5 and am
having problems getting our unit test servlet running properly - I am
getting a "java.lang.IllegalStateException: Configuration is frozen" error.
The source of the problem seems to be how we define our contexts. In this
Hi,
I'm fairly new to Struts, so if I'm wrong here, I hope the more experienced will
correct me.
If you extend the 'org.apache.struts.action.RequestProcessor' (or the
'org.apache.struts.tiles.TilesRequestProcessor' if you're using Tiles), then you can
simply override the 'processPreprocess(.
On 30/08/2004 22:34 Steven Leija wrote:
I'm trying to configure Tomcat to use MD5 encryption for my JDBCRealm.
Has anyone successfully gotten this to work?
Thanks,
Steven
Yes. It works a trat for me. Your RDBMS will need to be able to support
MD5 passwords of course.
--
Paul T
see javax.servlet.Servlet#destroy()
89 */
90 public void destroy()
91 {
92 }
93
94 }
which is to be made public and started in web.xml so it is started on
deployment.
Hope this helps
Thomas
- Original-Nachricht
Von: Struts Users Mailing List <[EMAIL PROTECTED
.
Thanks for the tip
;)
Thomas
- Original-Nachricht
Von: Struts Users Mailing List <[EMAIL PROTECTED]>
An: 'Struts Users Mailing List' <[EMAIL PROTECTED]>, 'Thomas Vogt'
<[EMAIL PROTECTED]>
Betreff: RE: Struts and Quartz Scheduler
Datum: 30/09/04 20:2
Hi,
I wanted to apply the ideas of the "Html Buttons and Struts - The Right
Way" tutorial (http://j2ee-01.lagnada.com/struts/html-buttons.htm) to my
struts app, but it does not work at all. Here's the JSP snippet :
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
<%@ taglib uri="/WE
> I have an tag inside a tag, which points to one of my
> Struts Actions. My Action utilizes a DynaActionForm, in which I have defined
> several form-property entries. One of these form-property entries, lets call it
> "imageProperty" matches the property attribute of my tag, also
> "imageProp
yes, where?
Any hint would be apreciated,
Ralf.
I supect that you're trying to use the old mod_jk connector. Try mod_jk2
instead.
--
Paul Thomas
+--+-----+
| Thomas Micro Systems Limited | Software Solution
ody got a better way?
Probably not better but I've has to overcome the same problem and found
that something like
public class Monkey {
MonkeyDTO ...
Bunch[] ...
}
public class Bunch {
BunchDTO
BananaDTO[]
}
with appropriate getters/setters work
docs don't seem to contain any hint to such a
feature. It would, however, be nice to have the same central tiles
definition for my common edit/store processes as for Struts itself.
Is there something similar available for Tiles?
--
Thomas Corte
[EMAIL
out, only processes run as root can
access ports below 1024. Personally, I would never run Tomcat as root. I
use Apache/jk2 instead. It works well and is fairly easy to set up.
HTH.
Paul Thomas
+--+---+
| Thomas Micro
Hi,
Tony Smith wrote:
How can I cast int to char in jsp?
Try
<%= Character.toString (i + 65) %>
--
Thomas Corte
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Hi folks,
I have written 2 online tutorials.
They are not 'pure' struts tutorial (but appfuse ones, so they also deal
with hibernate, xdoclet, ant..) but I think it can be of interest for
some of you.
The first one shows how to deal with java.util.date :
http://www.thogau.net/page/thogau/tut
got any good suggestions or tip to offer?
/Thomas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
:
I haven't seen any good examples when looking in the docs and searching the
web. I assume I wan't to add something to the html:submit, perhaps use the
property tag(?), or can I be able to read the value of the button pressed?
How do I read the value in my action
tion
error, rather than a coding error.
Thanks.
Doug Thomas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
nt to introduce an other template engine.
(velocity).
I know further the possibility to do a http sub request, but this is
really annoying.
Best regards
Thomas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comman
This might overwhelm you question, but it is worth: have a look at
Persistence Frameworks: Hibernate or similar.
C.F. Scheidecker Antunes wrote:
> Hello all,
>
> In order to access a Database on my Model layer, which one is best?
>
> 1) A DataSource declared on the struts-config.xml. Then get th
o shut down and restart tomcat.
>
> For a develop environment webapp restart is ok.
>
> HTH
> Christoph
>
Do you have any reference (documents, links) for this?
Thomas
-
To unsubscribe, e-mail: [EMAIL PROTECTED
how to reference the DTD relative to its
application context?
Example: Struts tries to fetch the following DTD and stops working if it
is not found:
http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd";>
Thanks for any hel
Hello all.
I am working with some AJAX stuff in Struts 2.1.8, specifically the Dojo
toolkit.
I have a Grid widget, which is Dojo's row-and-column displayer. The Grid
expects data as a properly-formed JSON string.
The Grid gives the very helpful "Sorry, an error occured" messge if the dojo
resul
Hello all.
In working through some Dojo stuff, I have come to a roadblock, on which I
hope someone will be able to shed some light.
I have a page that displays a user's account info. If they press "update",
Dojo pops up a dialog box which allows them to update their info. Opening a
Dialog box i
Hello all.
I have upgraded a Struts 2.0.11 project to 2.1.8, and I have some strange
behavior. The Struts stuff seems to work fine, and the Ajax stuff works
fine as well. The Hibernate stuff works as far as reading data is
concerned. But when I try to write a record, nothing happens on the
data
Maybe you could use post method of Form to do this
Maybe you could use ajax technology to do that .
There're some ajax frameworks , such as jQuery , which
could help you !
Je serai absent(e) du 02/04/2010 au 29/04/2010.
Veuillez prendre contact avec Bruno Merceron ou Jacques Grisey en mon
absence.
Je répondrai à votre message dès mon retour.
Merci
-
To unsubscribe, e-mail: user-unsubscr...@strut
potential side-effects, do you have a better idea ?
Thanks,
Thomas
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
That interceptor looks great, but is there any way to access request
parameters in the prepare() method ?
The http request provides an "archiveProfileId" parameter and I use
that parameter to load my object "archiveProfile".
2010/5/10 Lukasz Lenart :
> Use Preparable interface instead
> http://st
It works.
Thanks a lot Lukasz and Alex.
2010/5/10 Alex Rodriguez Lopez :
> Hi Thomas,
>
> use the paramsPrepareParams interceptor stack (or change yours), from
> struts-default.xml:
>
>
>
> ...
>
> I think this accomplishes what you are looking for (of
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:187)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87)
...
2010/5/10 Thomas Lulé :
> It works.
>
> Thanks a lot Lukasz and Alex.
Nevermind, my stacktrace came from that issue :
https://issues.apache.org/jira/browse/WW-2850
2010/5/10 Thomas Lulé :
> One last thing :
>
> Even if everything works, I still get a stacktrace when I submit the
> form to save my object.
>
> I think that the params intercepto
, but this code obviously doesn't work.
Do you have any better idea ?
Thank you,
Thomas
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
:
${text}
2010/5/11 Thomas Lulé :
> Hi,
>
> I've got an ArrayList named "breadcrumbs" in my action that
> I would like to display in my JSP.
>
> Something like :
>
>
It works !
Thank you very much.
2010/5/11 Steven Yang :
> try
>
> ${top[0]}
>
>
> On Tue, May 11, 2010 at 5:52 PM, Thomas Lulé wrote:
>
>> I
I have to refer in a Struts2 environment to resources on a
jsp page so that they are found whether this page that is the result of a
Struts2 action or the result of a direct link.
Thank you,
Guy Thomas
-
Aan dit bericht kunnen geen rechten worden ontleend. Alle berichte
Just integrated jquery datepicker in my application:
- maven dependencies:
com.jgeppert.struts2.jquery
struts2-jquery-plugin
2.2.0
com.jgeppert.struts2.jquery
struts2-jquery-grid-plugin
2.2.0
com.j
In a form I use the struts2 action tag to populate a drop down list:
Select an action:
Specify search terms:
rs Mailing List
Onderwerp: Re: Repopulating rich controls
From the Struts 2 FAQ
http://struts.apache.org/2.1.8.1/docs/how-do-we-repopulate-controls-when-validation-fails.html
On Fri, Jul 16, 2010 at 4:40 AM, Guy Thomas wrote:
> In a form I use the struts2 action tag to populat
;
if (bookAction.equals (SEARCH) && (searchString == null ||
searchString.equals ("")))
addActionError (getText ("bookindexer.error.search.nosearchstring"));
}
So I did everything as explained on the referred web page, but it didn'
I am adding authentication to a Struts2 web application by implementing an
authentication interceptor.
With an interceptor, as far as I understand, you can prevent non-authenticated
perons from accessing specific actions.
However, suppose somebody forwards a URL to a specific pdf-file to a
non-
I was thinking of using declarative security (in web.xml) for resource
authorization. Is this a good idea? Is it enough?
-Oorspronkelijk bericht-
Van: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com]
Verzonden: maandag 9 augustus 2010 15:50
Aan: Struts Users Mailing List
Onderwerp: RE:
javascript files from (action) jsp file
On Thu, Oct 14, 2010 at 9:36 AM, Guy Thomas wrote:
> What am I doing wrong?
>
Using relative paths.
Dave
-
Aan dit bericht kunnen geen rechten worden ontleend. Alle berichten naar dit
professioneel e-mailadres kunnen door de wer
Thank you, this works. I would like to draw your attention to possible problems
with the struts head tag. See below.
Domain Security Administrator: Pas gebruiker aan
" rel="stylesheet"
type="text/css">
" type="text/javascript">
"
type="text/javascript">
is converted into:
Domain Security A
Je serai absent(e) du 17/12/2010 au 22/12/2010.
Veuillez prendre contact avec Bruno Merceron ou Jacques Grisey en mon
absence.
Je répondrai à votre message dès mon retour.
Merci
-
To unsubscribe, e-mail: user-unsubscr...@strut
Je serai absent(e) du 08/08/2011 au 29/08/2011.
Veuillez prendre contact avec Ismaïl Labhal ou Bruno Merceron en mon
absence.
Je répondrai à votre message dès mon retour.
Merci
-
To unsubscribe, e-mail: user-unsubscr...@struts
1 - 100 of 299 matches
Mail list logo