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

[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

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

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: 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

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
I've allready made maven upload requests and build upload bundles. I've created upload bundles for struts-dialogs artifact and set JIRA issues : http://jira.codehaus.org/browse/MAVENUPLOAD-599 http://jira.codehaus.org/browse/MAVENUPLOAD-600 You may add comment to this issue if bundles seems

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
or Spring" mean? /robert Nicolas De Loof wrote: I get such a case recently : we are using Spring as IoC container. On some situation we use a simple AOP interceptor. Our customer have found on the net a benchmark comparing Spring vs AspectJ vs AspectWerkz. The bench result was not good for Sp

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
of EmployeeDetail.jsp like this : Like this I don't need to change my actual Action class... Is it well-designed like this? Thanks - Original Message - From: "Nicolas De Loof" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, March 09, 2

Re: Design problem

2005-03-09 Thread Nicolas De Loof
employee datas Nico. Gaet a écrit : Thanks nicolas, I know the dispatch action but I don't see how to use it with 2 mappings: how the mappings "/showEmployeeDetail" and "/updateEmployeeDetail" will know the method to execute in my dispatch action? Thank you very much!

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
I get such a case recently : we are using Spring as IoC container. On some situation we use a simple AOP interceptor. Our customer have found on the net a benchmark comparing Spring vs AspectJ vs AspectWerkz. The bench result was not good for Spring (compared to AspectWerkz). The technical reas

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
exception - do u mean to say my own method common to all ? This also if u can explain with code example would be of great help. I set a global ExceptionHandler in struts config to catch all exceptions. It logs them for debug and forwards to an error page. Thanks once again, regards Manisha Nicolas De

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

Struts, JSTL and ResourceBundle

2004-12-15 Thread Nicolas De Loof
Hello, My customer would like to be able to change i18n messages easily (without requirement to redeploy webapp or edit files in context/WEB-INF/classes/...) We suggested to put messages in database, and use a custom Struts messageResource impl to retrieve them, according to http://wiki.apache

[SOLVED] Re: IllegalAccessException using trivial formbean

2004-11-29 Thread Nicolas De Loof
Solved ! I used a struts-1.2.6 jar i compiled myself. Replacing it with binary dist makes my app work. Don't know where I failed building struts jar... Nico. > > Heloo, > > I'm getting strange troubles on my webapp and I've set a minimalist webapp to > test it : > > 1 action "/logon" & 1 fo

IllegalAccessException using trivial formbean

2004-11-29 Thread Nicolas De Loof
Heloo, I'm getting strange troubles on my webapp and I've set a minimalist webapp to test it : 1 action "/logon" & 1 for "LogonForm" with 2 fields "username" & "password". Struts 1.2.6 without any plugin - If I use DynaForm for my formbean, my (trivial) jsp runs fine and displays the HTML for

Re: tiles wilcard?

2004-11-23 Thread Nicolas De Loof
uld like to have with tiles. > I´ve been searching the old messages and found that once Nicolas de loof > developed such a patch but it does not come with *any* documentation. > > Hey, Nicolas, are you there? > > > Julio Cesar > > -Mensagem original- > De:

Re: Dynamic html:form tags

2004-10-12 Thread Nicolas De Loof
Did you try something like this : ... Nico. > Hi group! > > I have a somewhat complex application with tiles. I have a layout page > which looks like this: > > <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%> > <%@ taglib uri="/WEB-INF/

Re: Clean way to obtain a property's value...

2004-10-11 Thread Nicolas De Loof
Someone posted on this list a clean way to do this using jakarta-unstandard-taglib and bind tag. Sometinhg like this (not tested) : Nico. > > On 2004-09-27 at 21:50:26 +0100, Adam Hardy wrote: > > Just before this thread dies, on a closely related note, does anybody > > have a nice way to

Re: Where to put the business logics?

2004-09-21 Thread Nicolas De Loof
I don't agree : - My app will NEVER be anything else than a webapp - We are 3 developpers working both on business and web BUT we defined a business API using interfaces for business logic Using this, we can change business tier for a mock one for application demo or testing cases that may be d

Re: Where to put the business logics?

2004-09-21 Thread Nicolas De Loof
In model ! Struts is a MVC framework without any 'M' support : you can use anything you want to build your model. > In the mailing list, I have read some people suggesting not to put > business logics in Action class. Certainly, business logics should not > be in JSP or Form class. Then where

Re: Assigning a DataSource to a Business Delegate on startup

2004-09-21 Thread Nicolas De Loof
Datasource support in struts is deprecated JNDI is the J2EE compliant way to get Datasource, it is not tomcat dependant It only requires to declare a resource-entry in your web.xml and to use your container configuration to link this to a container-managed datasource Nico. > This is a nice sol

Re: Assigning a DataSource to a Business Delegate on startup

2004-09-21 Thread Nicolas De Loof
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 21, 2004 11:31 AM Subject: Re: Assigning a DataSource to a Business Delegate on startup > > you can use JNDI to get a DataSource (if you use tomcat see tomcat > > documentation in order to s

Re: [ANNOUNCE] Struts 1.2.4 (General Availability) Released

2004-09-21 Thread Nicolas De Loof
Struts now uses tomcat-like version number, i.e. they're will be other 1.2.x struts releases if required by new bugs or enhancements applied on this branch. We use 1.2.x on new projects since 1.2.0 (test) has been released. Nico. > Hi, > > What is the difference between General Avaibility and

Re: Struts Taglib Question

2004-09-17 Thread Nicolas De Loof
JSTL : Nico. > > Hello, > > Is there some sort of Struts tag that I can use to set the property of a > bean? > > I have a small fragment that I want to look like this: > > > <%-- Set the event.date property on formBean to a default value --%> > > > > > > It says that "if the event

Re: ??? STRUTS 1.2.4 FEEDBACK ???

2004-09-16 Thread Nicolas De Loof
Works fine for me (on 2 apps : one using tomcat 4 other using tomcat 5) > Has anyone tried out Struts 1.2.4? > > If so can you feedback - positive or negative. > > Niall > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Adding Tags Dynamically

2004-09-08 Thread Nicolas De Loof
- JSP tags are translated into java code during JSP compilation BEFORE any request processing. - Javascript is executed by browser AFTER reponse has been built by server. Tags must be 'statically' set in JSP What do you ant to do ? Nico. > > Can I add struts tags dynamically after loading t

wildcard mappings & tiles

2004-09-03 Thread Nicolas De Loof
Hello, I've submitted a patch that extends use of wildcard mappings to tiles definitions. Please Wildcard users, could you try it and give me feedback ? You can download a patched struts build at http://loof.free.fr/struts-1.2.3-wildcardtiles.jar Nico. Our name has changed. Please update

Re: Upgrading from 1.1 to 1.2.2 (or 1.2.3 when available) - is it painful?

2004-09-02 Thread Nicolas De Loof
>From my experiments you only require to change taglibs URIs to new struts domain http://struts.apache.org You also have to update DTD refs in struts-config.xml and validation.xml Nico. > I was going to wait for a bit before I switched, but I have come across > a discrepancy in IE and firefox

Re: problem with jsp:include

2004-08-31 Thread Nicolas De Loof
taglibs must be set in the included JSP when using tag : it includes JSP result, not JSP source code as does <%@ include %>. Nico. - Original Message - From: "vineesh . kumar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 11:17 AM Subject: problem with js

Re: Questions on logging

2004-08-31 Thread Nicolas De Loof
1. thread-safe require no variable (instance or static) that a thread may consider to be the only one to update. Read-only member (as a logger instance) can be used safely. 2. you can configure log4j to add the thread id to the log, so that a simple grep will extract all logs for a request. 3.

Re: Struts 1.2.x

2004-08-26 Thread Nicolas De Loof
General Availability: http://struts.apache.org/acquiring.html > Ted Husted wrote: > > > GA grade > > Pardon my ignorance; what does GA stand for? > > I assume that it's not General Admission? > > > Thanks, > > Dave > > > >

  1   2   >