value attribute

2004-05-15 Thread Nicolas De Loof
Hi all, I'm using in a JSP for submit buttons. As this tag has a "value" attribute, I'd like to know how to use it: I can get this value when using Mozilla, but IE doesn't submit the value (only the x/y position of the click inside the image). Is this attribute only present for HTML spec conf

struts tip 001 (image buttons) : bug ?

2004-05-15 Thread Nicolas De Loof
I've use ted husted tip http://www.husted.com/struts/tips/001.html When I use IE and validate my form by hitting [return], form is posted with button coordonates [x=0/y=0], so using the tip code, it should look like I've used the button ! I could add a test on x/y to associate (0,0) with "not s

Re: JSTL 1.1 EL not working :(

2004-05-17 Thread Nicolas De Loof
First, you don't need to set taglibs in your web.xml. Check that your web.xml declares "2.3" servlet api (in DOCTYPE) It should work Nico. > I've tried to use JSTL with my web app, and it's not working! > I downloaded jstl 1.1, and copied jstl.jar, and standard.jar to WEB-INF/lib. > I put the

troubles using Html:rewrite (jsessionId and Apache)

2004-06-07 Thread Nicolas De Loof
Hi all, I've got some troubles using html:rewrite on a Tomcat(4.1.30)/Apache(2.0.49) server: My tiles base layout uses to include a link to the CSS stylesheet : On first access to the page, rewrite adds jsessionId to the URL :

[SOLVED] troubles using Html:rewrite (jsessionId and Apache)

2004-06-07 Thread Nicolas De Loof
After some Google / Apache list archives search, i solved my problem (and notice it was full of topic on this list ;-) For other peoples having same troubles : I've added mod_rewrite to my apache (compile with --enable-module=rewrite) I've set this rule in httpd.conf : RewriteEngine on

html:link and map of request parameters

2004-06-07 Thread Nicolas De Loof
Hi, What is the 'cleaner' way to define and populate a map to be used with tags ? Notice I can use JSTL. Nico. Our name has changed. Please update your address book to the following format: "[EMAIL PROTECTED]". This message contains information that may be privileged or confidential and

Re: html:link and map of request parameters

2004-06-07 Thread Nicolas De Loof
t; > > > -- > James Mitchell > Software Engineer / Open Source Evangelist > EdgeTech, Inc. > 678.910.8017 > AIM: jmitchtx > > - Original Message - > From: "Nicolas De Loof" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List"

Re: problem with jsession id

2004-06-18 Thread Nicolas De Loof
On first request, a session is created. Tomcat (or any other servlet container) wan use two mecanism to handle sessions : cookies or URL rewriting (add a ";jsessionid=..."). Preference is for cookies, because it doesn't need to change URLs in pages, but on first request, Tomcat has no way to kn

Re: property has no getter method

2004-06-18 Thread Nicolas De Loof
I've had such troubles. I don't know if it comes from struts (common-beanutils) way to introspect object to discover accessor methods, or if javaBeans spec describes it so. I've notice you will get such errors when you define getter return type != setter param type or have multiple setters with

Re: property has no getter method

2004-06-21 Thread Nicolas De Loof
pse refactoring (rename) tools made it easy. Nico. > Thanks Nico. Does it happen consistently for you, or it's > only on certain properties? > > - John > > > -Original Message- > > From: Nicolas De Loof [mailto:[EMAIL PROTECTED] > > Sent: Friday, June

Re: html-el:link and url from resources

2004-06-21 Thread Nicolas De Loof
You can use this : Nico. - Original Message - From: "Pavlikus" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, June 21, 2004 4:04 PM Subject: html-el:link and url from resources > Hi all. My menus defined in resou

[OT] load testing

2004-06-23 Thread Nicolas De Loof
Hi all, I've to make some load tests on my app. Our customer wants the appli to handle "300 simultaneous users". To translate this requirement into request per second, how many time do you consider an 'active web user' to wait between 2 request ? Nico. Our name has changed. Please update y

Re: [OT] load testing

2004-06-23 Thread Nicolas De Loof
mmon and most time critical usecases for your system. Then open the flood gates and send a tidal wave of traffic against the system. I'm sure that realistically simulated usage is wonderful, but for the rest of us, just hammer the system until it begs for mercy and then you'll know what i

Re: JDBC connection

2004-06-24 Thread Nicolas De Loof
database access should be done into DAO (Data Access Objects) with CRUD methods (CReate Update Delete), having beans as parameters and return values. Some call those beans 'domain model beans'. DAO should have a way to get a JDBC connection according to current transaction. You can pass a conne

Re: How to execute an initialization by using another servlet entry in web.xml

2004-06-24 Thread Nicolas De Loof
You should put the configuration object into application scope (servletContext) so it can be accessed from any servlet / jsp of your app. You can put MyXMLParserServlet itself into servletcontext and access it from struts action by: MyXMLParserServlet conf = (MyXMLParserServlet) getServlet().g

Re: parameterized html:link problem

2004-06-25 Thread Nicolas De Loof
View http://jakarta.apache.org/struts/userGuide/struts-html.html#link Nico. > hi list, > > I am not good in jsp views. Can someone tell me the way to accomplish > the below? > > I wish to generate is link View > and i am doing this. > > = > > > > > > >

Re: Source for Jakarta JSTL 1.0.2

2004-06-28 Thread Nicolas De Loof
Can't you check it out from apache CVS ? tag for 1.0.2 is "standard-102" > I'm looking for the source distribution for the Jakarta Standard taglib > v1.0.2. I am unable to find it archived on the Jakarta website. Can > anyone point me to a copy? > > Thanks, > > Derek Richardson > > -

Re: How to integrate Tomcat server with Apache webserver pls urgent

2004-06-29 Thread Nicolas De Loof
You will need the JK (or JK2) connector to connect tomcat to apache : http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html A simple "tomcat apache howto" gogle search will give you lot's of infos. You have to 1. (compile and) add mod_jk module to your apache httpd server 2. set the A

Re: why do we need to integrate tomcat with apache webserver and how.pls urgent

2004-06-30 Thread Nicolas De Loof
Apache is handling static datas according to mod_jk rules for better perfs. Apache can also handle HTTPS. Apache has lot's of usefull modules that can be helpfull for any usage (stats, cgi, perl ...) Apache security is well known, tomcat does'nt need to be visible from internet (DMZ) Tomcat http

Re: why do we need to integrate tomcat with apache webserver and how.pls urgent

2004-06-30 Thread Nicolas De Loof
gt; as well as apache with jk, even at delivering the static content. > > If you just have a couple of apps in an intranet type situation (you > know how many users) its worth considering using tomcat's http server. > > Mark > > On 30 Jun 2004, at 09:34, Nicolas De Loof wrote: >

Re: Not possible to attach 2 (or more) parameters from 2 different beans to an html:link?

2004-07-06 Thread Nicolas De Loof
You have to set a map of parameters to add to the link. You may create the map in an action prior to your JSP, or use this in your JSP (if you use JSTL) : click me ! Nico. > Hello listers. I sent an email about a week ago and haven't heard a blip. So I guess > this simply isn't po

Re: simply getting plugin properties

2004-07-08 Thread Nicolas De Loof
Simply create a javabean property 'myProperty' in your plugin class : private String myProperty; public void setMyProperty(String str) ... public String getMyProperty() ... Nico. > > I'm using struts 1.1 and need to set some parameters in my plugin > definition. > > here is my plugin defi

Re: How to add new events to HTML tag library objects

2004-07-29 Thread Nicolas De Loof
You have to add some code into Struts tag handler, especially an attribute and setter for your "onpaste" property. For such cases, I use to create a taglib for my app that extends some struts tag, to avoid having a non-standard Struts lib and encourage developpers to create and use tags. Nico.

IE5.0 and CSS import

2004-07-30 Thread Nicolas De Loof
Hi all, just solved a strange problem and would like to share with you if you have some suggestions : My app needs to support IE 5.0 :( We use CSS and I had designed my baseLayout.jsp like this : It works

Re: IE5.0 and CSS import

2004-07-30 Thread Nicolas De Loof
iles let you use just 1 or a few templates/layouts for many views, > the maintenance is already manageable. > > Mark > > On 30 Jul 2004, at 11:35, Nicolas De Loof wrote: > > > > > Hi all, > > > > just solved a strange problem and would like to share with you if y

Re: Which version is the offcial and stable version?

2004-08-03 Thread Nicolas De Loof
They're is no 'stable' version of the 1.2.x branch. They're should be one soon. We use 1.2.1 (considered as 'beta') on our application without troubles. You may understand that a version is considered 'stable' when *lot's* of peoples use it without having (unknown) bugs. As current 1.2.x is use

[OT] What tool do you use to get configuration values ?

2004-08-06 Thread Nicolas De Loof
Hi all, I've started an opensource project to help managing application configuration. Application code get configuration values from a static util class: Configuration.getAsXXX(key) with XXX=String, Int, Date ... Configuration is stored into properties files, loaded from classpath or from file

Re: Does Tiles support EL?

2004-08-26 Thread Nicolas De Loof
in Struts 1.2.x, contrib struts-EL tags include tiles-el. You may also use tomcat 5 (or any servlet 2.4 container) to get EL on every tag. Nico. > There does not seem to be a struts-tiles-el.tld - el tlds exist only for > bean, html, and logic taglibs. Can I use EL with the Tiles tags? > > _

Re: Does Tiles support EL?

2004-08-26 Thread Nicolas De Loof
may also use a 2.4 servlet container. Nico. > Is there a way to use struts-EL tags with Struts 1.1? > > > >From: "Nicolas De Loof" <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >To: "Struts Users M

Re: How to embed a method in a link inside a jsp file?

2004-08-26 Thread Nicolas De Loof
This should work ! Have you checked your /AddUserProfile.do is well configured ? Are you using modules ? Nico. > My JSP file contains a link like this. > > > > > > > > This link points to AddUserProfile.jsp. > > When I click on the link, it gives invalid path err

Re: [OT(?)] Comparing against a typesafe enum in JSTL

2004-08-26 Thread Nicolas De Loof
I've had such a case before and solved it using a custom tag (sorry, old project, don't have sources anymore) It looked like this : it used reflexion API to get Class object and read member. it used a Map to cache values for perfs. Something like this : String key = className + "+" + me

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

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

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

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: 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: [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: 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: 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: 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: 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: 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: 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: Html:link and save form

2004-05-13 Thread Nicolas De Loof
A link in HTML does not submit a form. Only submit inputs (buttons) an images input does. You can use javascript to do it (as you did), but then it overrides the href set on the link (/myAction.do) and its parameters. Nico. > I have a form with a htlm:link > > paramName="address" onclick="do

where to use ConvertUtils.register ?

2004-04-30 Thread Nicolas De Loof
Hello, I just discovered the use of BeanUtils.copyProperties to populate my formbeans from business objets. I would like to know where to configure my Converters (using ConvertUtils.register) ? I use a static initialiser in my BaseAction class. Do you have something better to suggest ? Nico.

where to use ConvertUtils.register ?

2004-05-03 Thread Nicolas De Loof
Hello, I just discovered the use of BeanUtils.copyProperties to populate my formbeans from business objets. I would like to know where to configure my Converters (using ConvertUtils.register) ? I use a static initialiser in my BaseAction class. Do you have something better to suggest ? Nico

[ANNONCE] XMLStubs 1.0.1 released

2004-05-04 Thread Nicolas De Loof
Hello guys, I've released the first plublic version (1.0.1) of a simple tool : XMLStubs. It allows you to replace an API defined by interfaces by an emulated one declared in XML files. Jexl language (same as JSP EL) is used to add conditional behaviour. For example, if you need some implementa

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

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

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

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

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

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

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

[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

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

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

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

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

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

[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

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

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

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

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

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

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

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

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

  1   2   >