WG: Struts2 Dynamic Merge of two webform objects / join two objects in database

2010-09-06 Thread Nicolas Kopp
} which solved all of our problems. Life can be so easy. I hope it helps someone else! Nicolas -Ursprüngliche Nachricht- Von: Nicolas Kopp [mailto:nicolas.k...@empirica.com] Gesendet: Montag, 6. September 2010 11:36 An: Struts Users Mailing List Betreff: AW: Struts2 Dynamic Merge of t

AW: Struts2 Dynamic Merge of two webform objects / join two objects in database

2010-09-06 Thread Nicolas Kopp
t. So, basically its the same object that gets updated. Hope this works for you. - Rahul " copyProperties() from the BeanUtils also seems to be nice. Big Thanks to all of you for your help! I'll also post the resolutions in the forums where we also posted this question. c

AW: How do I get wibble[0][something]=blah to parse into an action?

2010-09-06 Thread Nicolas Kopp
Hi Andy, maybe you forgot to initialize the ArrayList as a new Object in the setter? try this: public void setWibble(ArrayList> wibble) { this.wibble = new ArrayList>(); this.wibble = wibble; } Maybe worth a try. Not tested. Cheers, Nico -Ursprün

Struts2 Dynamic Merge of two webform objects / join two objects in database

2010-09-03 Thread Nicolas Kopp
after quite some research efforts we were not be able to find anything of help in the web. We are even not sure if this is more a Hibernate or a Struts2 problem. We'd be really grateful if someone could point us in the right direction. Thanks in advance! Nicolas & Alex

Client-side AND server-side validation

2009-08-10 Thread Nicolas Baron
constraint : We don't want to rely on the DOJO plugin since it has been deprecated. Any configuration tips or documentation link to implement this kind of validation ? Thanks in advance, Nicolas

Re: AJAX Validation

2009-07-28 Thread Nicolas Baron
Very clear. I'll check what you've just mentionned and try to find the best strategy related to our context. Thanks a lot your help. Nicolas On Tue, Jul 28, 2009 at 1:54 PM, Wes Wannemacher wrote: > On Tue, Jul 28, 2009 at 9:48 AM, Nicolas Baron wrote: > > @Wes : Thanks fo

Re: AJAX Validation

2009-07-28 Thread Nicolas Baron
les twice, possibly in 2 different languages. Cheers, Nicolas On Tue, Jul 28, 2009 at 1:41 PM, Martin Gainty wrote: > > is JS validation thru a JS function faster than allowing the > FieldValidationInterceptor to verify? > is there a way to coordinate validations between the

Re: AJAX Validation

2009-07-28 Thread Nicolas Baron
Hi Zoran, Thank you for your answer. Since you are using JQuery directly, how do you perform data validation ? Is it possible to use the XML Files or annotations provided by Struts ? Cheers, Nicolas On Tue, Jul 28, 2009 at 11:26 AM, Zoran Avtarovski wrote: > From what I can tell Dojo has b

AJAX Validation

2009-07-28 Thread Nicolas Baron
ample on the Wiki is still based on the Dojo plugin ? Which plugin will be the next standard for Ajax tags in Struts 2 ? JQuery plugin ? Thanks in advance for your answers, Regards, Nicolas

Re: [ot] help on generics...

2007-09-28 Thread nicolas de loof
c T getOpt() { >//needs a class object! >T opt = composite. getFeature(); >return opt; >} > } > > Hope this helps. > -Original Message- > From: nicolas de loof [mailto:[EMAIL PROTECTED] > Sent: September 28,

Re: [ot] help on generics...

2007-09-28 Thread nicolas de loof
created with the > constructor parameters passed. If the constructor throws an error it is > wrapped in an InvocationTargetException and rethrown. If no constructor > matches the method returns null. > > > -Original Message----- > From: Giovanni Azua [mailto:[EMAIL PROTECTED

[ot] help on generics...

2007-09-27 Thread nicolas de loof
Hello, my question is fully off topic, but Struts2 is the only java5 project I know. I'd like a method to return an instance of a class passed as parameter : public Object getInstance( Class clazz ) I'd like to use generics to make the return type in sync with the class type. Is this possible ?

Re: [FRIDAY] JPA War Stories?

2007-09-15 Thread nicolas de loof
> > Venturing slightly (more) off-topic, I recently switched from having > my DAOs extend from Spring's HibernateDaoSupport, and using > HibernateTemplate, to just going directly to the Hibernate API. Or, > now, to the JPA API. I don't benefit from Spring's exception > translation that way, but you

Re: [ANN] Struts 2.0.9 General Availability Release with Important Security Fix

2007-07-25 Thread nicolas de loof
Could any struts commiter also deploy the -sources.jar for struts² 2.0.9 on maven repo ? Nico. 2007/7/25, Deepak Kumar <[EMAIL PROTECTED]>: Hi, Discuss the new features and how to use these new features in your application at http://www.roseindia.net/struts/struts2/struts2download/struts2.0.9

FileUpload confusion

2007-06-24 Thread Nicolas Doye
Hi all, I've tried ripping off the file upload action from WebWork in Action and from Struts 2.0.8's showcase. Here are some things that are confusing me: 1. What are the correct entry points/methods for the Action? WWiA suggests that we use execute(). The showcase example has upload() and inpu

RE: Struts

2007-06-19 Thread Bizard Nicolas \(KIRO 43\)
Hi, try the following : javac *.java to compile all at once. Also try javac --help to solve your classpath problems. Try google to solve the lack of responses to absolutely non struts related questions on this list. -Original Message- From: bindhu [mailto:[EMAIL PROTECTED] Sent: Tuesday

[S2] Using Struts with Eclipse + M2Eclipse Plugin

2007-05-12 Thread Nicolas
-dependency http://www.mail-archive.com/[EMAIL PROTECTED]/msg00379.html Cheers, Nicolas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[s2] Restful2ActionMapper requires SlashesInActionNames

2007-04-25 Thread nicolas de loof
Hello, I'm trying to setup the Restful2ActionMapper based on the struts2 tutorial (helloworld). The Restful2ActionMapper is expected to invoke "index" method on request for "/helloworld". From what I see in the code, the Restful2ActionMapper will only apply this method for "/helloworld/" (with

[S2] Problem getting CRUD example to work from Struts2 Showcase Application

2007-04-19 Thread Nicolas
Hi List, I started a new project, where I wanted to get only the CRUD example from the Struts2 Showcase to work (That's the one with Employees and Skills). So I copied all necessary files over to my new project. Deployment of the CRUD application works well (I used Maven to package the war)

Re: fail to run struts tutorial

2007-04-18 Thread nicolas de loof
struts2-archetype-starter-2.0.5-20070212.050844-2.jar thats seems to be the latest available... 2007/4/18, Musachy Barroso <[EMAIL PROTECTED]>: Are you using the latest version of the archetype? I think I had this same problem with an older version. musachy On 4/18/07, nicolas d

fail to run struts tutorial

2007-04-18 Thread nicolas de loof
Hello I've followed struts tutorial and cannot run the archetype webapp in jetty : WARN: failed action2 java.lang.NoClassDefFoundError: org/apache/velocity/app/VelocityEngine ... adding velocity 1.5 and velocty-tools-view 1.2 as dependency solve this, but this looks strange to me. Isn't veloci

Re: [s2] Do I still need a business service layer ?

2007-04-17 Thread nicolas de loof
s Logic in the Action classes, which will tie your application not only to the framework, but to the type of delivery platform (eg a Web App), which will prevent you from later making a Swing app or something else out of it if you want to. - Ray Clough nicolas de loof-2 wrote: > > Hello

[s2] Do I still need a business service layer ?

2007-04-17 Thread nicolas de loof
Hello, I've used struts1 for several years and I'm now looking at Struts². In struts1, to create a "registerUser" use-case I need a RegisterAction, a RegistrationService and some business code. My struts1 RegistrationService is only used to start a transaction using Spring @Transactional annotat

Struts 2.0.6 != Shale?

2007-04-15 Thread Nicolas Lanquetin
I always though Shale was a codename for the new Struts 2.0. However, I am a little bit confused now that I've seen that there a two different websites: 1) http://struts.apache.org/2.0.6/ 2) http://shale.apache.org/ I also see two download section for both, Struts 2 and Shale: 1) http://stru

Struts and welcome-file-list

2007-02-11 Thread Nicolas Laplante
How can I tell the container to serve index.do when no filename is provided? Nicolas Laplante - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Newbie Lost in the Apache Jungle

2007-01-10 Thread nicolas de loof
Struts si not a RAD framework. From an existing database, you may look at Hibernate that can generate a persistent Model be reverse engeneering. Lot's of other frameworks use this feature of hibernate to generate quickly a CRUD application (appfuse, Seam, ...). 2007/1/10, Phil_M <[EMAIL PROT

[s1.3] modules and JSP under WEB-INF

2007-01-05 Thread nicolas de loof
Hello, I'm using Struts 1.3.5. My application use struts modules. I'd like to put my JSPs under /WEB-INF/pages, so I've set forwardPattern to "/WEB-INF/pages$M$P". That works for JSP, but when I use a redirect forward to a ".do" (for postback actions) the action URI also is converted to "/WEB-INF

Re: [s2] servlet 2.4 required ?

2006-12-07 Thread nicolas de loof
Nico. 2006/12/7, Wendy Smoak <[EMAIL PROTECTED]>: On 12/7/06, nicolas de loof <[EMAIL PROTECTED]> wrote: > I'm starting a project based on Java 1.4 and serlet 2.3 (tomcat 4.1). I'd > like to use Struts2 as it includes retro-translated support for java 1.4 . >

[s2] servlet 2.4 required ?

2006-12-07 Thread nicolas de loof
Hello, I'm starting a project based on Java 1.4 and serlet 2.3 (tomcat 4.1). I'd like to use Struts2 as it includes retro-translated support for java 1.4. According to project main page ( http://struts.apache.org/2.x/#Platform%20Requirements), servlet 2.4 is required. Does this mean I will have t

Re: test

2006-12-06 Thread nicolas de loof
id mail loops/excess inbox junk. It's not that difficult to search your inbox or bcc yourself though. On 12/6/06, James Mitchell <[EMAIL PROTECTED]> wrote: > > That's because GMail doesn't send you your own postings. > > On 12/6/06, nicolas de loof <[EMAIL PROTECTE

Re: [s2] First try : failed to run mailreader-2.0.1

2006-12-06 Thread nicolas de loof
it works with xalan 2.6.0. If this lib is required, why isn't it in the war WEB-INF/lib ? 2006/12/6, nicolas de loof <[EMAIL PROTECTED]>: Hello, I'd like to install Struts 2.0.1 apps as a live-demo to Struts 2. I'm using Tomcat 4.1.30 on Java5 (jrockit). When running

Re: test

2006-12-06 Thread nicolas de loof
It seems to work ! Just was curious not getting messages I send to the list in my mail box. 2006/12/6, Adam K <[EMAIL PROTECTED]>: You had a question if it would work ? On 12/6/06, nicolas de loof <[EMAIL PROTECTED]> wrote: > > Please ignore ... > > just testing my gMail account. > >

test

2006-12-06 Thread nicolas de loof
Please ignore ... just testing my gMail account.

[s2] First try : failed to run mailreader-2.0.1

2006-12-06 Thread nicolas de loof
Hello, I'd like to install Struts 2.0.1 apps as a live-demo to Struts 2. I'm using Tomcat 4.1.30 on Java5 (jrockit). When running mailreader app, I get : TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found Seems there is some dependency to

Re: Best practice for external webapp configuration ?

2006-08-30 Thread Nicolas De Loof
Thanks for this info, I'm targeting Tomcat 4 (for developpers) and Websphere 5 (for production) Nico. Lance a écrit : On jboss, this can be done by configuring the SystemPropertiesService. @see jboss\server\all\deploy\properties-service.xml Properties can be configured inline in the xml fil

Re: Best practice for external webapp configuration ?

2006-08-30 Thread Nicolas De Loof
i a écrit : You can set them in your startup class by reading the configuration file. System.setProperty() /Ashwani -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 1:08 PM To: Struts Users Mailing List Subject: Best practice

Best practice for external webapp configuration ?

2006-08-30 Thread Nicolas De Loof
Hello, I'm searching for best practice in JEE applications to put configuration elements outside the war/ear. Here is what I mean : My webapp requires some filesystem path to work (logs dir, system-dependent config files...). I'm using a java sytem property to setup a root path for external

Re: Struts + Spring 2.0

2006-08-04 Thread Nicolas De Loof
I've updated the wiki. Please review it as my english is so bad... Wendy Smoak a écrit : On 8/3/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote: I've looked a Struts-scripting, but AFAIK this requires me to rewrite all my struts-config.xml to set the Action java source as par

Re: Struts + Spring 2.0

2006-08-03 Thread Nicolas De Loof
Have you looked at Struts Scripting? It would be interesting to see how your approach differs from this. (And whether Struts Scripting works with Spring 2.0 the way you need it to.) I've looked a Struts-scripting, but AFAIK this requires me to rewrite all my struts-config.xml to set the Act

Struts + Spring 2.0

2006-08-03 Thread Nicolas De Loof
To those of you that are using Struts with Spring, I've searched a way to make my actions hot-reloadable (no recompile neither redeploy) for quick prototyping using Spring 2.0 groovy scripted bean, without having to hardly change my existing actions and configuration. I've found a "not so ba

Re: Bean works in JDK 1.4.2_05 doesnt with JDK 1.4.2_12

2006-07-24 Thread Nicolas De Loof
This bug comes from the JavaBean spec that defines the "get*" methods to acces javabean properties. JavaBeans can have "indexed" properties if they have a getter with an index param. In your case, two getters exist for the same "property", according to strict JavaBean spec. 1.4.2_05 may not

Re: ActionMapping roles attribute

2006-07-22 Thread Nicolas BOIRE
Hello , you can use the requestProcessor @see http://www.onjava.com/pub/a/onjava/2004/11/10/ExtendingStruts.html Ciao Niko Le jeudi 20 juillet 2006 à 09:59 -0300, Vinicius Carvalho a écrit : > Hello there folks! > I was wondering, is it possible to force struts to not check > request.isUserInRole

Re: Properties

2006-04-12 Thread Nicolas De Loof
ll my libraries are declared. Is there a place where I can find a list of the differences between the standard and the EL taglibs? Neil -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: 12 April 2006 03:04 PM To: Struts Users Mailing List Subject: Re: Properties

Re: Properties

2006-04-12 Thread Nicolas De Loof
I'm using a single "taglibs" JSP that has all taglibs includes headers. I don't use "-el" suffix for EL taglibs as I only use EL tags (not standard ones). <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %> <%@ taglib ur

Re: Properties

2006-04-12 Thread Nicolas De Loof
Using struts-EL tags : Nico. Kjersti Berg a écrit : On 12/04/06, Neil Meyer <[EMAIL PROTECTED]> wrote: Hi, Would like to know why the following doesn't work can anybody explain it please. I have a text box on a page this text box is readonly when the readonly property is set to tru

Re: how to use message resource key for href

2006-04-04 Thread Nicolas De Loof
Perhaps somethig like this may work : Some text Nico. Vinit Sharma a écrit : Hi, My requirement is to use a message resource key for html:link href attribute instead of passing a hardcoded value. Below: Some text I want to replace, ${item.link} with a key from resource file, btw my ${

Re: html:option, how to print html characters in the label.

2006-02-20 Thread Nicolas De Loof
If you're looking for a way to indent options in a select box, you should use the HTML tag. Nico. Robert Alexandersson a écrit : Hello, i want to output the String " Level 2" in my optionlists, but the label attribute of options does not return this but the transforemed   mending it pr

Re: Accessing static methods from Struts/JSTL

2006-02-08 Thread Nicolas De Loof
You can use jakarta unstandard taglib. (http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/intro.html) I use it to access const from JSP. : <%@ taglib prefix="u" uri="http://jakarta.apache.org/taglibs/unstandard-1.0"; %> Base Nico. Keith Sader a écrit : IMO this i

default submited image button

2006-01-10 Thread Nicolas De Loof
Hello, I've a form with a text input field and two buttons : one to "add new user" and one for "search" My porblem is when I type [Return] from input field, the form is submited with some strange image button informations : - on IE, non image button (x,y position) is submited, so I can use

how to setup 2 validwhen-based validation rules

2005-12-09 Thread Nicolas De Loof
Hello, I've a form where some data are required IF an option is selected + I've to check for duplicated entries. I can setup validation rules using validwhen for both case, but how to register those 2 rules (with different message) under the same validwhen validator ? Nico. This message

Re: http proxy

2005-12-08 Thread Nicolas De Loof
Thanks for the link ! Tremal Naik a écrit : 2005/12/8, Nicolas De Loof <[EMAIL PROTECTED]>: Do you know any opensource (java) proxy that could help me doing this ? i've used muffin for a while: http://muffin.doit.org/ I used it for much simpler tasks then those you

http proxy

2005-12-08 Thread Nicolas De Loof
Hello, My app will be used (in production) behind a SSO server that adds HTTP headers to incoming requests. I use those headers for user authentication. For tests, I need to emulate those headers and I'm looking for a HttpProxy that can be customized to process incoming HTTP request and add

Re: checkbox behavior hard to control?

2005-12-05 Thread Nicolas Bizard
ked, everything was fine... If this helps to help me ;-) 2005/12/5, Laurie Harper <[EMAIL PROTECTED]>: > Nicolas Bizard wrote: > > Hi everyone. > > > > My question is : > > I have a strange problem with checkboxes in a formBean : > > The form initializes (a

checkbox behavior hard to control?

2005-12-05 Thread Nicolas Bizard
he way :-s Nicolas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Nicolas Bizard
Hi everyone. I have a strange problem with checkboxes in a formBean : The form initializes (action /init) I validate, get my results I get "back", asking /init, everything is fine, the form shows me my previous selections but when i uncheck or check one of the boxes and validate again, it does

how to set token after an exception occurs ?

2005-12-05 Thread Nicolas De Loof
Hello, I'm using token to avoid multiple submits in this flow : "/commande.do" creates an empty form-bean, saves a token and forwards to "tile:commande.new" "/commande/create.do" checks for token and creates datas in the database. If an exception occurs, an exceptionHandler is used to displa

Re: how to add additional parameters to a form url?

2005-11-24 Thread Nicolas De Loof
Use a hiden input : Hiden value can be a runtime expression (EL if you use the JSTL like struts taglib) You can also not set value in JSP but in the form-bean, and use struts mapping between form-bean ant HTML form. Nico. Henning Moll a écrit : Hi! I use the tag in my jsps. For exa

Re: struts-dialogs on maven repo

2005-11-22 Thread Nicolas De Loof
repository/maven-plugins/ I can help this weekend, if you want. -- Wendy Wendy, thank you for clearly laying out my options. I will think which approach is better for me and then try it later this week. Nicolas, I will make sure that Stru

struts-dialogs on maven repo

2005-11-21 Thread Nicolas De Loof
Hello Is struts-dialog extension available somewhere on maven repository ? This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, y

Re: How to make a preview

2005-11-18 Thread Nicolas De Loof
Yo may use a customized requestProcessor that check for this preview attribute (or any other thing) and put a flag in request scope. Any other controller/view element can then check this flag to change it's behaviour. Nico. Nick Sophinos a écrit : Given that we are talking about an MVC fr

Re: OT: Best AJAX framework

2005-11-08 Thread Nicolas De Loof
I'm using DWR on my webapp for navigation in a table, using a "Page 1 2 3 ..." footer. DWR makes it realy simple based on a List put into user session. Browser can get requested elements from list and DWR comes with utils to upgrade the table contain. Faisal Mahmoud a écrit : Check out htt

Re: wizard-style form and validator

2005-11-03 Thread Nicolas De Loof
I'll have a look, thansk for the link. Thanks also to bsimonin for code suggestion. Michael Jouravlev a écrit : On 11/3/05, Nicolas De Loof <[EMAIL PROTECTED]> wrote: Hello, I'm building a wizard style webapp with 3 pages. I'm using the page attribute to make v

wizard-style form and validator

2005-11-03 Thread Nicolas De Loof
Hello, I'm building a wizard style webapp with 3 pages. I'm using the page attribute to make validator check inputs. I've got this problem : first page validate an userId selection (required) When this rules failes on page 2 or 3 (let's consider the user has used a bookmark), I'd like struts

Re: Strange Problem with logic:equals!

2005-10-07 Thread Nicolas De Loof
creates BOTH - a script variable (a Java variable you can use in <% ... %> java blocs) - a bean in specified scope (defaults to page) So you have a "myBeanValue" variable set to 1 and a "myBeanValue" String put into page scope. <% myBeanValue = "2"; %> changes value of script variable. my

as cancel button

2005-10-07 Thread Nicolas De Loof
Hello, My application uses image buttons, based on tag. I'd like to add a "cancel" button, that may skip javascript validation. I didn't find any attribute to set this on . Do I have to set myself the javascript "bCancel = true" ? Thanks, Nico. This message contains information that may

Please enhance validator "validwhen" to avoid associative braces

2005-10-06 Thread Nicolas De Loof
I'm using validwhen rule and find great for complex validation I'm just frustrated on the requirement to use braces to group conditions by pairs : I must make a 4 element "or" validation, each element beeing itself a "and" expression. I'd like to write test = (A and B) or (C and D) or (E and

[OT] howto replicate Application context

2005-09-07 Thread Nicolas De Loof
Hello all, I've a requirement to replicate application context data in a 2 server cluster (load-balanced). I know tomcat option to use in-memory session replication. Is there anything similar for application context ? Thanks for any suggestion. Nico. This message contains information that

Re: [URGENT] Struts 1.1 Source Download

2005-08-23 Thread Nicolas De Loof
I've put it on http://loof.free.fr/jakarta-struts-1.1-src.zip Hope it will help you. Nico. Pilgrim, Peter a écrit : Can anyone tell me where I can download the full Struts 1.1 source code other than http://archive.apache.org/dist/struts/ which is being blocked by my clients corporate securi

Re: [fully-OT] File replication between webapps

2005-06-13 Thread Nicolas De Loof
ou have to build the say-the-other-one-that-the-data-has-been-updated logic by yourself. But this is about 5 lines of code, so i don't think you should search for a tool herefore. On Mon, 2005-06-13 at 14:06 +0200, Nicolas De Loof wrote: Hi all, this mail is totaly of topic, so sory s

Re: [fully-OT] File replication between webapps

2005-06-13 Thread Nicolas De Loof
Oracle is the only aproved database (clusterable or not). This is the reason I was looking for a "rsync"-linke solution. Nico. delbd a écrit : Le Lundi 13 Juin 2005 14:27, Nicolas De Loof a écrit : Our customer defines architecture restriction for it's applications.

Re: [fully-OT] File replication between webapps

2005-06-13 Thread Nicolas De Loof
bd a écrit : Just my two cents I'll suggest storing the datas on a central database (which could be clustered amongst your servers) Le Lundi 13 Juin 2005 14:06, Nicolas De Loof a écrit : Hi all, this mail is totaly of topic, so sory sory sory... ... but there is so much java masters on this

[fully-OT] File replication between webapps

2005-06-13 Thread Nicolas De Loof
Hi all, this mail is totaly of topic, so sory sory sory... ... but there is so much java masters on this list ! I have to replicate some datas between two servers running my app (with a load balancer, but not using a cluster mode). We are going to build a home-made solution, and I wonder if a

Re: How to encrypt and decrypt?.

2005-06-07 Thread Nicolas De Loof
It seems you'r not encrypting the password but hashing it explanation : - pasword *encryption* can be reversed, using some secret key - pasword *hashing* produces a unique String, that DOES NOT CONTAIN infos about the password (cannot be reversed). The hash algorithm (MD5, SHA...) is designed s

Re: Newbie Q - Struts expression language taglibs

2005-06-03 Thread Nicolas De Loof
Take a look into the contrib/struts-el/lib folder ! Nico. Ibha Gandhi a écrit : Hi All, From where can I download struts el tag libraries. I downloaded jakarta-struts-1.2.4.zip, but it does not contain struts-html-el tag libraries Thanks, Ibha -

Re: Struts 1.2.7

2005-05-18 Thread Nicolas De Loof
I'm using it for the same reason. I expected this enhancement, also with EL tag support for errorStyle attributes. It works fine for me. Nico. Aladin Alaily a écrit : Hi Everyone, I was just curious if anyone has been using struts v. 1.2.7? If so, what do you think of the new features? Personall

Re: JSTL EL replacement of logic:present tag

2005-05-18 Thread Nicolas De Loof
This may work : But you have to know the scope where is stored the ActionMessages bean. Struts-logic-el has some value-added over JSTL, as it can be used for struts-related logic (like errors/messages), so why not using them ? Logic tags having an equivalent JSTL tag are not declared in struts-e

Re: Struts and XML/XSL

2005-05-18 Thread Nicolas De Loof
You may take a look at stXX http://stxx.sourceforge.net/ , that is a commonly used XSLT extension to Struts. I've used it for a prototype, but we have finally built our app on standard JSP, as it was easier to learn for developers. According to prototype, XSLT (Stxx) was aprox. 2 time slower than

Re: Which release to use for production?

2005-05-03 Thread Nicolas De Loof
1.2.4 is the current "stable" version I'm using Sturts 1.2.6 for production, as known bugs does not affect my app. Take a look at bug list to check if you can use it for your apps. 1.3.x is in development and not ready for production. Use it only for early test as a preview. Martin Kindler a écri

Re: request information to 2 databases

2005-03-22 Thread Nicolas De Loof
Simply define 2 datasources as resources for your webapp and get them using a JNDI lookup. You will not have a share transactionnal context until you use JTA and 2-pass commit, but for readonly access, you don't need it. Nico. Ryan julius a écrit : Hi, I would like, from a struts action, to q

Re: [HELP] What's wrong with my html:link syntax... :(

2005-03-16 Thread Nicolas De Loof
You cannot use a tag as attribute of another tag : they must follow an XML structure Use a variable to store the result of your tag : Go or If you don't use struts-EL, use bean:define to define a script v Go Nico. Pham Anh Tuan a écrit : Hi all, I got a problem when I code like below: ">Go

Re: Struts tags and enums

2005-03-14 Thread Nicolas De Loof
You can use jakarta unstandard taglib to "bind" a variable to the static fiedl YES Nico. Vinicius Caldeira Carvalho a écrit : Hello there! I'm using enum types in my app and I'd like to use combine them with struts tags. My enum class hierarchy descends to PersistenEnum (the example on hibern

Re: user management

2005-03-11 Thread Nicolas De Loof
I'm using SecurityFilter and use the Principal to store the user ID. The actions use the J2EE compliant request.getUserPrincipal(). Having userId, they can call business objects. Nico. Günther Wieser a écrit : i for one put the user object into the session, as i have a lot of method calls agains

Re: Wizard implementation wanted

2005-03-11 Thread Nicolas De Loof
Validator has a built-in support for wizards You have to include in your pages all form-bean fields (use hidden tag for those the user doesn't have to edit in a page) You also have to add a hidden input named "page" Validator rule can use this page param to 'only' validate inputs prior to a page

AOP Benchmark (Was: MVC Frameworks)

2005-03-10 Thread Nicolas De Loof
uot;as quick as using proxy-based-architecture can be". In practice, database response time is more significant than AOP framework one. Nico. Robert Taylor a écrit : Nicolas, Can you provide any metrics for the benchmarks when comparing Spring to AspectWorks? What exactly does "not good f

Re: Sorting of array lists

2005-03-10 Thread Nicolas De Loof
Use Collections.sort(list, new Comparator() {...}); or Collections.sort(list) if your Plan class implements Comparable Nico. Krishna Mohan Radhakrishnan a écrit : Hi all, I have a doubt regarding sorting in array List. I have an array List which contains array list objects of type Plan. The Plan o

Re: Design problem

2005-03-09 Thread Nicolas De Loof
This is a simple way to do it. Have 2 mappings for 2 behaviours. Using a dispatchAction is usefull if you have code to share. Nico. Gaet a écrit : Nicolas, Do you mean this : So, when I click on an employee name in may list I will call /ShowEmployeeDetail.do and I define the edit form

Re: Design problem

2005-03-09 Thread Nicolas De Loof
an change validation behaviour according to this attribute value. in form-bean validate() : String param = mapping.getParameter(); String action = request.getParameter(param) if ("show".equals(action)) // check employeId is set else if ("update".equals(action)) // check

Re: Design problem

2005-03-09 Thread Nicolas De Loof
You should define 2 mappings for detail : a "/showEmployeeDetail" without validation (or a unique rule employeeId required) a "/updateEmployeeDetail" with validation. Your action can be a dispatch action if you don't want to have 2 classes. Nico. Gaet a écrit : Hi, I have page with a list of empl

Re: MVC Frameworks

2005-03-09 Thread Nicolas De Loof
just because customer doesn't agree (for some reason that may not be technical). For info, load-tests have demonstrated Spring was good enough for us... Nico. Fogleson, Allen a écrit : I think the biggest argument was stated by Nicolas. I use struts because I like it sure, but I really use

Re: MVC Frameworks

2005-03-08 Thread Nicolas De Loof
Here is my response to such questions : 1. Why do you prefer Struts over any other web application framework? (Tapestry, JSF, Maverick, WebWork, etc) I don't use Struts because I think it is the best framework. I use it because my dev team has some experience using it. Having to change MVC framew

Re: Bean Taglib Help

2005-03-08 Thread Nicolas De Loof
You can use the EL-enable version of display tag to do this (assuming Konstants.SESSION_USER_KEY = "users") : Now, if you don't want to break constants usage, you may try to use jakarta unstandard taglib to bind the static field from your Konstants class to a pageContext variable : (http://j

Re: [OT] getRequestURL

2005-02-04 Thread Nicolas De Loof
cope. Thanks for help. Martin Gainty a écrit : Nicolas Did you check out the getRequestURL() documentation from IBM http://www.developer.ibm.com/tech/faq/individual?oid=2:25030 HTH, Martin Gainty __ (mobile) 617-852-7822 From: Nicolas De Loof <[EMAIL PR

[OT] getRequestURL

2005-02-04 Thread Nicolas De Loof
Hi all, I'm having troubles using the request.getRequestURL() in JSP tags In tomcat (4.1) it returns the URL I've got in my browser, and getRequestURI returns the Layout JSP URI. It sounds correct according to ServletAPI javadoc for getRequestURL "Reconstructs the URL the client used to make the

and char encoding

2005-01-12 Thread Nicolas De Loof
Hi, Can someone explain me what's wrong in HTTP / servlet API about char encoding : I'm using to build a link with parameters, whose values use french chars ('é', 'à' ...) I need to set useLocaleEncoding to get values in my servlet (that is not a struts action) using getParameterMap. If I do n

Re: =

2005-01-11 Thread Nicolas De Loof
Another option is to use a submit button (that will post the form) and CSS to make it look as a link : .submit { border:0px; background-color:#fff; cursor: pointer; text-decoration:underline; } Nico Jeff Beal a écrit : You need to have the lin

Re: How to detect Cancel button i pressed ?

2005-01-11 Thread Nicolas De Loof
Manisha Sathe a écrit : Hi Nicolas, Thanks for the response, 1)I tried this, but giving me error. Pls would u mind giving some code example ? use in your JSP (do not set property !) use isCanceled(request) in action. Is cancel was used to post the form, it will return true. 2)About

Re: How to detect Cancel button i pressed ?

2005-01-10 Thread Nicolas De Loof
You can check for cancel in actions using isCanceled(request) Struts cancel tag uses a magic value that this method will detect (formbean validation is also skipped) About exception, I used to set a global exception handler that logs exception stack and forwards to a generic error page. Nico. M

Re: Cancel button problem

2005-01-05 Thread Nicolas De Loof
When using cancel button, validation is automatically skipped. Use isCanceled(request) in your action to see if cancel was clicked and forward to your index page. Nico. Manisha Sathe a écrit : I am using struts cancel button. But when i click on that it goes to next page (w/o even validation -

Re: Two Qs re: authentication servlet filter

2005-01-05 Thread Nicolas De Loof
You should have a look at securityFilter that does such a job. It tries to "look like" j2ee FORM security check, but allow you to use your own authentication rules. Nico. Jim Barrows a écrit : -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, January

Re: Struts, JSTL and ResourceBundle

2004-12-16 Thread Nicolas De Loof
; > Sent: Wednesday, December 15, 2004 12:09 PM > > To: Struts Users Mailing List > > Subject: Re: Struts, JSTL and ResourceBundle > > > > > > On Wednesday 15 December 2004 14:07, Jim Barrows wrote: > > > > From: Nicolas De Loof [mailto:[EMAIL PROTECTED

  1   2   >