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

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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 selected" state, but what about 
(lucky) user pressing image
exactly on 0,0 ?

I think it is a IE bug that has no "clean" solution.

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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 f.tld, fmt.tld, fn.tld in WEB-INF/.
> 
> In my web.xml i've got:
>   
> /WEB-INF/c.tld
> /WEB-INF/c.tld
>   
> 
>   
> /WEB-INF/fn.tld
> /WEB-INF/fn.tld
>   
> 
>   
> /WEB-INF/fmt.tld
> /WEB-INF/fmt.tld
>   
> 
> If i try and use c:out, it doesnt work!
> 
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/core";  prefix="c" %>
> 
> 
> gives:
> ${1+1}
> 
> Any idea what's going on?
> It looks like the taglib is working fine, but not using el!
> 
> Any ideas?
> 
> Daniel.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 :

@import url("webapp/style/main.css;jsessionid=D0E15B858C994EC33A72CD826BED3C0C");



As Apache is configured to handle static files (via JK config), it seems it doesn't 
like the jsessionId. 

How can I configure apache / JK to work fine with this ?
or
How can I use  not to add jsessionId ?

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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[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
RewriteRule ^([^;]*);jsessionid=.*$ /usr/local/tomcat/webapps$1

Nico.



> 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 :
> 
> @import url("webapp/style/main.css;jsessionid=D0E15B858C994EC33A72CD826BED3C0C");
> 
> 
> 
> As Apache is configured to handle static files (via JK config), it seems it doesn't 
> like the jsessionId. 
> 
> How can I configure apache / JK to work fine with this ?
> or
> How can I use  not to add jsessionId ?
> 
> 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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: html:link and map of request parameters

2004-06-07 Thread Nicolas De Loof

Great, thanks

Nico.



> Here's how I do it:
> (This demonstrates both static and dynamic values for use with the
> html:link)
> 
> 
> ...
> ...
> 
> 
> 
> 
> ...later down the page...
> 
>  
>  
>  
> ...
> ...
> 
> 
> 
> 
> --
> 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" <[EMAIL PROTECTED]>
> Sent: Monday, June 07, 2004 11:31 AM
> Subject: html:link and map of request parameters
> 
> 
> >
> > 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 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,  you
> are not authorized to read, print, retain, copy, disseminate,  distribute,
> or use this message or any part thereof. If you receive this  message in
> error, please notify the sender immediately and delete all  copies of this
> message.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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
know if the browser accepts cookies, so it needs to rewrite URLs AND put a setCookie 
header.

If next request have cookie, URL rewriting is not mandatory anymore.

URL rewriting is done when encoding URL using response.encodeUrl(). Struts is 
compliant with J2EE and calls this method
in jsp tags for every URL it has to render.

If you don't want such URL to be shown in user browser, you should use a redirect on 
your first action.

Nico.




> hello guys,
>
>when i open the login form of my struts application, for the very first time a 
> jession id is appended with the
value of action attribute
>
> example
>
> 
> above value is shown in the source code of the displayed page.
>
> can any one tell me why it happens and how can i solve this problem.
>
> Asim Ghosh
>
>
>
> -
>  ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself



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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 various parameter type.

I've also noticed this seems to work better under jdk 1.4.

To solve this, I'd suggest to rename incompatible setters to setAgeAsInt(int), so that 
javabean 'Age' property is
strictly defined as beeing of type int.


Nico.


> Hi,
>
> I ran into "Property  has no getter method"
> errors when running my application under JDK 1.3.1.
>
> Here's some background information:
> - Happens on .
> - I'm using nested property, and the last property on the chain has one
> getter and two setter (e.g. getAge:Integer, setAge(int), setAge(Integer))
> - Error seems to only happen on certain properties; while other properties
> are ok.
> - The application is compiled under JDK 1.4.1, and run well there.
> - Windows 2000, and I'm testing on WLS 8.1 and 7.0sp2.
>
> I think this might have something to do with how Struts is using
> introspection or maybe there's a difference between the two JDK versions.
>
> Does anyone know the possible reason here?
>
> Thanks,
> John
>
>
>
>
> The contents of this e-mail are intended for the named addressee only. It
> contains information that may be confidential. Unless you are the named
> addressee or an authorized designee, you may not copy or use it, or disclose
> it to anyone else. If you received it in error please notify us immediately
> and then destroy it.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: property has no getter method

2004-06-21 Thread Nicolas De Loof

I've notice it to work 'easier' on jdk 1.4, but as I didn't know if it was a better 
introspection support on java 1.4
spec or specific to windows JDK 1.4.1, we changed our beans to avoid such 'multiple' 
setter, or incompatible type
between getter and setter. Eclipse 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 18, 2004 11:01 AM
> > To: Struts Users Mailing List
> > Subject: Re:  property has no getter method
> >
> >
> >
> > 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 various parameter type.
> >
> > I've also noticed this seems to work better under jdk 1.4.
> >
> > To solve this, I'd suggest to rename incompatible setters to
> > setAgeAsInt(int), so that javabean 'Age' property is
> > strictly defined as beeing of type int.
> >
> >
> > Nico.
> >
> >
> > > Hi,
> > >
> > > I ran into "Property  has no getter method"
> > > errors when running my application under JDK 1.3.1.
> > >
> > > Here's some background information:
> > > - Happens on .
> > > - I'm using nested property, and the last property on the
> > chain has one
> > > getter and two setter (e.g. getAge:Integer, setAge(int),
> > setAge(Integer))
> > > - Error seems to only happen on certain properties; while
> > other properties
> > > are ok.
> > > - The application is compiled under JDK 1.4.1, and run well there.
> > > - Windows 2000, and I'm testing on WLS 8.1 and 7.0sp2.
> > >
> > > I think this might have something to do with how Struts is using
> > > introspection or maybe there's a difference between the two
> > JDK versions.
> > >
> > > Does anyone know the possible reason here?
> > >
> > > Thanks,
> > > John
> > >
> > >
> > >
> > >
> > > The contents of this e-mail are intended for the named
> > addressee only. It
> > > contains information that may be confidential. Unless you
> > are the named
> > > addressee or an authorized designee, you may not copy or
> > use it, or disclose
> > > it to anyone else. If you received it in error please
> > notify us immediately
> > > and then destroy it.
> > >
> > >
> > >
> > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > 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 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,  you are not authorized
> > to read, print, retain, copy, disseminate,  distribute, or
> > use this message or any part thereof. If you receive this
> > message in error, please notify the sender immediately and
> > delete all  copies of this message.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> The contents of this e-mail are intended for the named addressee only. It
> contains information that may be confidential. Unless you are the named
> addressee or an authorized designee, you may not copy or use it, or disclose
> it to anyone else. If you received it in error please notify us immediately
> and then destroy it.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 resources file.
> 
> Like that:
> user-menu.profile =Edit profile
> user-menu.profile.link =/EditProfile.do
> user-menu.profile.tooltip =Edit your preferences
> 
> Now, when i want to show menu items, I run into unexpectedness.
> I can't show url in html:link tag. Instead it shows the property key.
> How can I do that?
> 
> My code:
> 
> <%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
> <%@ taglib uri="/tags/struts-html-el" prefix="html" %>
> <%@ taglib uri="/tags/struts-bean-el" prefix="bean" %>
> <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
> 
> 
> 
> 
> 
> 
> 
>   
>  
>
>
> 
> 
> I tried to put  into html:link href
> - but it is not valid jsp construction. Also I tried to use  href=""> - that don't work too.
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[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 your address book to the following format: 
"[EMAIL PROTECTED]".

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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] load testing

2004-06-23 Thread Nicolas De Loof

Thanks for replies,

We are using Loadrunner to create load. As dennis suggested, I'm going to analyze 
wating time for a 'real' user to get
an avarage request/second/user.

Nico.



> I don't know the answer to your specific question, as I think it involves some 
> industrial strength statistical math.
But ... I'll tell you what we did.
>
> Our application needed to be load tested to ensure performance within certain times 
> at up to 50 users. (We actually
tested to 100 users, just for grins ... load testing is fun :-)
>
> We created a functional test using HttpUnit and JUnit to represent our primary 
> usecase. Ours is a control system and
this usecase was time critical, while the other usecases were deemed not time 
critical, so we just load tested with the
one usecase. Then, using JUnitPerf, by the wonderful and talented Mike Clark 
(http://www.clarkware.com/), we drove the
test at up to 100 simultaneous users, each running a number of the functional tests 
back to back (25 to 50 times per
simulated user).
>
> This created a worse case load test (think slashdot effect :-). Personally, I liked 
> this, as I wanted to know when the
application would run out out of steam. Obviously this test is unrealistic, but it did 
give us plenty of confidence that
we could handle anything that was expected to be thrown at us.
>
> So, in your situation, I would create functional tests that represented the most 
> common 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 it can take. :-)
>
> Simon
>
> >-Original Message-
> >From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, June 23, 2004 7:57 AM
> >To: Struts Users Mailing List
> >Subject: [OT] load testing
> >
> >
> >
> >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 your address book to the
> >following format: "[EMAIL PROTECTED]".
> >
> >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,  you are not authorized to
> >read, print, retain, copy, disseminate,  distribute, or use
> >this message or any part thereof. If you receive this  message
> >in error, please notify the sender immediately and delete all
> >copies of this message.
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 connection as a method
argument (ugly, isn't it ?), or use something like springframework to handle 
transactions and jdbc connections for you.

DAO are used by business objets that have 'hi level' business methods. Your actions 
use this BO to get or update datas.

Nico.



- Original Message - 
From: "Lin, Xinhua" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 24, 2004 3:05 PM
Subject: JDBC connection


Hi All,

I have a simple question. Where the jdbc connection should stay within a
struts application? And how to populate a javabean from the database and
let the action class know?



Thanks,



Xinhua




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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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().getServletContext().getAttribute(MyXMLParserServlet.CONF_BEAN);

I'd suggest to define an interface for methods used by actions, to be able to change 
it easier if needed :


class MyXMLParserServlet extends HttpServlet implements IConf {
...

interface IConf {
public final static String CONF_BEAN = "..."
Element getElement();
}

in action :
IConf conf = (IConf) getServlet().getServletContext().getAttribute(ICond.CONF_BEAN);


Nico.


> Thank you for answering the first part of the question.
>
> What I am trying to do is, this MyXMLParserServlet(the new entry in web.xml)
> parses an XML file. From my main ActionServlet.process() , I want to do
> something like MyXMLParserServlet.getElement() . I won't be calling this
> method from the init() method of my actionServlet.
>
> Thanks again.
>
> >From: Bill Siggelkow <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: How to execute an initialization by using another servlet
> >entry in web.xml
> >Date: Thu, 24 Jun 2004 08:51:29 -0400
> >
> >If you are using approach #3 then extend HttpServlet. However, you should
> >not need to be accessing the ActionServlet from the init servlet. Perhaps
> >you could provide some more background on what you are trying to
> >accomplish.
> >
> >manoj JC wrote:
> >
> >>Can somebody provide some sample code to do this. Please look at this link
> >>http://nagoya.apache.org/wiki/apachewiki.cgi?StrutsInitialization.
> >>I want to use #3 approach mentioned in this link.
> >>
> >>My questions are :
> >>
> >>(A stupid question) Does this initialization class that I would specify in
> >>web.xml, should it be a servlet,ActionServlet, or most importantly could
> >>it be a just an ordinary java class.
> >>
> >>How do I access this servlet entry(this instance of class) from my main
> >>ActionServlet?
> >>
> >>Thank you
> >>
> >>_
> >>MSN Toolbar provides one-click access to Hotmail from any Web page – FREE
> >>download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> Make the most of your family vacation with tips from the MSN Family Travel
> Guide! http://dollar.msn.com
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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.
> 
> =
> 
> 
> 
> 
> 
>  
> View 
> 
> 
> 
> =
> 
> but it generates '">View
> 
> TIA
> Navjot Singh
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 AJP connector in tomcat server.xml
3. configure a workers.properties file for your tomcat
4. write (or auto-generate) the mod_jk.conf


You may need to add some directives to httpd.conf to handle tomcat URLs with 
jsessionid :

RewriteEngine on
RewriteRule ^([^;]*);jsessionid=.$ /tomcat/webapps$1

Notice my apache server has been compiled with rewrite module enabled. You may need to 
add loadmodule directive for a
lodable module.

Nico.



> Hi group,
>
> Could anybody tell me how to integrate apache webserver with tomcat.
> Or can u give me the websites address.
> Pls urgent
> awaiting ur reply
>
> Thanks
> Ganesh
>
>
> -
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.



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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 connector is less configurable and powerfull than a real http server
1 Apache + N tomcat can be used for load-balancing with session affinity

Nico.


> Hi List.
>  
> i've small doubt why we need to configure tomcat with apache webserver.
> what is the neccessity of integration tomcat with apache webs server.
> and also pls give me the steps to integrate it in details.
> Bcoz i don't know abc of integration.
>  
> awaiting ur reply
> Ganesh
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com


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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2004-06-30 Thread Nicolas De Loof

I fully agree with you.

If you don't have to serve other static files than gif/css for your webapp, don't need 
load-balancing, don't have hard
security constraints (intranet serer) just use tomcat HTTP connector. It will be 
really simplier to configure

Nico.


> I agree with everything nico just said, however there is no reason if
> you're just wanting to run a basic webserver with java/jsp you cant
> just change tomcat to serve over port 80 and forget about apache.
>
> The built in http server is pretty good and in some situations performs
> 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:
>
> >
> > 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 connector is less configurable and powerfull than a real
> > http server
> > 1 Apache + N tomcat can be used for load-balancing with session
> > affinity
> >
> > Nico.
> >
> >
> >> Hi List.
> >>
> >> i've small doubt why we need to configure tomcat with apache
> >> webserver.
> >> what is the neccessity of integration tomcat with apache webs server.
> >> and also pls give me the steps to integrate it in details.
> >> Bcoz i don't know abc of integration.
> >>
> >> awaiting ur reply
> >> Ganesh
> >>
> >> __
> >> Do You Yahoo!?
> >> Tired of spam?  Yahoo! Mail has the best spam protection around
> >> http://mail.yahoo.com
> >
> >
> > 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 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,  you are not authorized to read, print,
> > retain, copy, disseminate,  distribute, or use this message or any
> > part thereof. If you receive this  message in error, please notify the
> > sender immediately and delete all  copies of this message.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 possible? If I
have a bean "user" and another "module" and want to attach a property from each to an 
html:link tag, how do I do it?
>
> As I understand it if I simply put "paramName" it will include ALL properties for 
> that bean, which I don't need. But
if I put "paramName", "paramProperty" and "paramId" twice, once for each 
bean/property, it only attaches one!
>
> Is there some way I can create a "custom" bean ... in the page, put the two 
> properties I need inside it, and pass *it*
to the html:link with "paramName" ?
>
> Sounds kind a less-than.perfect solution. Any takers?
>
> Thanks,
> syg
>
>
> -
> Do you Yahoo!?
> Take Yahoo! Mail with you! Get it on your mobile phone.



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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 definition:
> 
> 
>  property="myProperty"
> value"/WEB-INF/myFile.xml"/>
> 
> 
> I would like to read the property in my plugin init method.
> can someone tell me how to do this.
> 
> thanks in advance.
> ___
> NATEXIS ASSET MANAGEMENT
> Meissa SAKHO 
> 01 58 19 45 71. . . . . . . . . . . . (84571)
> [EMAIL PROTECTED]
> 
> L'integrite de ce message n'etant pas assuree sur internet, Natexis
> Banques Populaires ne peut etre tenu responsable de
> son contenu. Toute utilisation ou diffusion non autorisee est
> interdite. Si vous n'etes pas destinataire de ce message, merci de le
> detruire et d'avertir l'expediteur.
> 
> The integrity of this message cannot be guaranteed
> on the Internet. Natexis Banques Populaires can not therefore be
> considered responsible for the contents.Any unauthorized use or dissemination is 
> prohibited.
> If you are not the intended recipient of this message, then please delete it and 
> notify the sender.


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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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.


> Im sorry I was using nested:text and  apply my changes on struts-html.tld :(
> After I applying changes on struts-nested.tld I had the follwing error 'Unable to 
> find setter method for attribute:
onpaste'
>
> -Original Message-
> From: Mazen, Tamer S [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 28, 2004 8:04 PM
> To: '[EMAIL PROTECTED]'
> Subject: How to add new events to HTML tag library objects
>
>
> Dears,
> I want  struts HTML objects to support extra events like onpaste for text object, I 
> tried  to add that event in
struts-html.tld and add it in my JSP, but when I run that JSP I had that error 
'Attribute onpaste invalid according to
the specified TLD' , I think  there are other files must be changed . Can any one help 
me on that. Thanks in Advance
>
> Tamer Mazen
> Information Analyst
>
> E 
> Egypt Solution Center (CMM L2 Organization)
> Commercial Professionals Syndicate Building, 5th floor
> 29 Emtedad Ramsis st., Nasr City, Cairo, Egypt
>
> Phone: * (202) 4882-897
> Fax: 1 (202) 3425-130
> Email: * [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 fine with IE5.5, IE6 & Mozilla/Firefox
On first request, tomcat adds a ;jsessionid= to the css URI. IE5.0 doesn't accept 
such an URI in the @import CSS
directive.
I changed baseLayout.jsp to :

"/>

Now it works on every tested browser. I prefered the CSS @import to avoid nesting JSP 
tags into HTML tags. I'd like my
JSP source to look XML compliant as possible XML for beeing lisible and good example 
for new JSP developers.

Do you have any suggestion for such case ?

Hope it may help if anyone has such troubles with old IE.

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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IE5.0 and CSS import

2004-07-30 Thread Nicolas De Loof

Having this, you need all your action path to have same number of directory levels, so 
that ../.. points to the
application context root.

We use modules and structured path with up to 3 levels, so using  is 
usefull to assume URI to static
resources (css or images) are valid.

Nico.


> We tend to use relative paths to css and other static resources.
>
> @import url("../../style/main.css");
>
> 1. Because the session id isn't appended to the path
> 2. Because static html layouts can be developed separately to the rest
> of the app.
>
> As tiles 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 you
> > have some suggestions :
> >
> > My app needs to support IE 5.0 :(
> >  We use CSS and I had designed my baseLayout.jsp like this :
> >
> > 
> > <!--
> > @import url("<html:rewrite page="/style/main.css" />");
> > -->
> > 
> >
> > It works fine with IE5.5, IE6 & Mozilla/Firefox
> > On first request, tomcat adds a ;jsessionid= to the css URI. IE5.0
> > doesn't accept such an URI in the @import CSS
> > directive.
> > I changed baseLayout.jsp to :
> >
> > "/>
> >
> > Now it works on every tested browser. I prefered the CSS @import to
> > avoid nesting JSP tags into HTML tags. I'd like my
> > JSP source to look XML compliant as possible XML for beeing lisible
> > and good example for new JSP developers.
> >
> > Do you have any suggestion for such case ?
> >
> > Hope it may help if anyone has such troubles with old IE.
> >
> > 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 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,  you are not authorized to read, print,
> > retain, copy, disseminate,  distribute, or use this message or any
> > part thereof. If you receive this  message in error, please notify the
> > sender immediately and delete all  copies of this message.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 used by few peoples, it may take time to get tagged as 'stable'. 
You can help by making test on your
application with latest nightly (or 1.2.2 comming soon) and make repport bugs or 
success to the dev list.

Nico.


> Hi,
>
> I have been using struts-1.1 for a long time but consider to upgrade. Which
> is the current official and stable version? When comes the next stable
> version? Should I upgrade know or should I wait?
>
> Zsolt
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[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 system. Values can be overriden 
at startup to customize default
configuration.

I've built such a framework for my job but found some bad design in it (poorly 
extensibile) and cannot share as
opensource, so I'm building another one from scratch.

I'm looking at existing frameworks to gather ideas. I know jconfig and 
commons-configuration API. What do you use in
your apps ?

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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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?
> 
> _
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
> http://join.msn.com/?page=features/junkmail
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Does Tiles support EL?

2004-08-26 Thread Nicolas De Loof

tiles-el comes with 1.2.x branch.

You can try to use struts-el contrib from this branch on a struts 1.1 app. It MAY work 
as they're is no deep changes
between 1.1 and 1.2.x in tiles.

You may try the new struts 1.2.2 "stable" release
http://cvs.apache.org/dist/struts/v1.2.2

You 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 Mailing List" <[EMAIL PROTECTED]>
> >Subject: Re: Does Tiles support EL?
> >Date: Thu, 26 Aug 2004 11:23:33 +0200
> >
> >
> >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?
> > >
> > > _
> > > STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
> > > http://join.msn.com/?page=features/junkmail
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >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 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,  you
> >are not authorized to read, print, retain, copy, disseminate,  distribute,
> >or use this message or any part thereof. If you receive this  message in
> >error, please notify the sender immediately and delete all  copies of this
> >message.
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> Tired of spam? Get advanced junk mail protection with MSN 8.
> http://join.msn.com/?page=features/junkmail
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 error message.
> How can I embed "?method=setup" inside a html:link?
> 
> Thnx
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 + "+" + member;
Object value = cache.get(key);
if (value == null)
{
Class clazz = Class.forName(className);
Field field = clazz.getField(member)
Object value = field.get(clazz);
map.put(key, value);
}
return value;


it may be used next like this :




Not sure, but  may work if JSTL uses equals() for 
evaluation (?)

Nico.



> I've asked this before on the list and didn't get a neat answer. I've
> resorted to using c:set & scriptlets to extract the value from the static
> and store it in a scoped attribute for use with JSTL.
>
> Paul
>
>
> > -Original Message-
> > From: Janne Mattila [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 26, 2004 1:42 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [OT(?)] Comparing against a typesafe enum in JSTL
> >
> >
> > Um, no, doesn't work:
> >
> > [ServletException in:/pages/cd/content/common/menu.jsp]
> > jsp.error.tlv.invalid.page
> >
> > 10: tag = 'when' / attribute = 'test': An error occurred
> > while parsing
> > custom action attribute "test" with value
> > "${sessionScope.role.roleChar.equals(cd.business.Role.ADMIN)}"
> > : Encountered
> > "(", expected one of ["}", ".", ">", "gt", "<", "lt", "==",
> > "eq", "<=",
> > "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div",
> > "%", "mod",
> > "and", "&&", "or", "||"]
> >
> > besides, wouldn't that be comparing a char (besides, calling
> > char's equals()
> > method, which does not exist sice char is a primitive) to a Role?
> >
> > Anyway, thanks for the suggestion, other ideas?
> >
> >
> > >From: Can Zheng <[EMAIL PROTECTED]>
> > >Reply-To: Can Zheng <[EMAIL PROTECTED]>
> > >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > >Subject: Re: [OT(?)] Comparing against a typesafe enum in JSTL
> > >Date: Thu, 26 Aug 2004 20:32:27 +0800
> > >
> > >Hi,
> > >you can use
> > >
> > > > >test="${sessionScope.role.roleChar.equals(cd.business.Role.ADMIN)}">
> > >...
> > >
> > >
> > >
> > >
> > >On Thu, 26 Aug 2004 12:09:56 +, Janne Mattila
> > ><[EMAIL PROTECTED]> wrote:
> > > > First, apologies for a slightly OT question; this is more
> > about JSTL and
> > > > less about Struts.
> > > >
> > > > Let's say I have a "Role" object in session. It is a
> > typesafe enum, with
> > > > values Role.ADMIN and Role.USER. How can I compare the
> > object in session
> > > > against those values, using JSTL? I can't figure out how
> > to refer to
> > > > typesafe enum objects using the JSTL notation. And I
> > don't really want
> > >to
> > > > change the enum class into a JavaBean.
> > > >
> > > > Role:
> > > >
> > > > public class Role {
> > > >private char roleChar;
> > > >
> > > >public static final Role USER = new Role('u');
> > > >public static final Role ADMIN = new Role('a');
> > > >
> > > >private Role(char roleChar) {
> > > >this.roleChar = roleChar;
> > > >}
> > > >
> > > >char getRoleChar() {
> > > >return roleChar;
> > > >}
> > > >
> > > >public boolean equals(Object obj) {
> > > >Role r2 = (Role) obj;
> > > >if (r2 == null) {
> > > >return false;
> > > >}
> > > >return r2.getRoleChar() == roleChar;
> > > >}
> > > > }
> > > >
> > > > My attempt to use it in JSP page:
> > > >
> > > > 
> > > > 
> > > >  Hello Admin
> > > > 
> > > > 
> > > >  Hello User
> > > > 
> > > > 
> > > >
> > > > does not work.
> > > >
> > > > (this special case could possibly be handled using
> > container managed
> > > > authorization and it's roles etcbut it's not really
> > the point here)
> > > >
> > > > _
> > > > MSN 8 with e-mail virus protection service: 2 months FREE*
> > > > http://join.msn.com/?page=features/virus
> > > >
> > > >
> > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > >--
> > >Best regards,
> > >
> > >Can Zheng
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> > _
> > Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> > http://join.msn.com/?page=features/junkmail
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >

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
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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. other classes can be used as you designed them. If they're creating a new instance 
for each request you will have no
thread-safe requirement to reach. If you use any singleton or static method you may 
have to take threads into account.

Nico.


> Hi
>
> I am in the stage of implementing logging in my struts application. I
> have been reading online but have some questions unanswered.
>
> 1. Action class should be thread-safe. Therefore no static variable, I
> should just use a non-static variable to hold my logger?
>
> 2. In a multi-user web application, how can I keep logs from the same
> class (same execution thread or same user request) stays together? I
> envision them to be all messy in the log file when there's multiple user
> requesting for the same action class.
>
> 3. About the thread safe issue with Actin class, that doesn't apply to
> the other classes that action execute right? Those are treated as normal
> java files.
>
> Thanks
>
> Sebastian
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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


hi all,

I had written the code in a.jsp like:


Accounts

Contacts

Deals

Tasks

Reports





and i included this page in another jsp file like
  
(offcourse with apropriate taglibs)

but the html:link tags are not rendered

y this is happening?
  Thanks in advance
vinu



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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 to do with the  tag.
> 
> I want to use the  tag but the action param didn't come in 
> 'till 1.2.
> 
> The question really is:  How painful is to to upgrade?  What is the bare 
> minimum I can get away with but still get the functionality?
> 
> Thanks,
> Tim
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 your address book to the following format: 
"[EMAIL PROTECTED]".

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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, 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 the page, using
> javascript probably???
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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]
> For additional commands, e-mail: [EMAIL PROTECTED]

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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, 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.date property on formBean is an empty String then
> set it to a default value."  I want to do it because I want the following
> select tag to have a specific default date selected instead of a random one
> being the deault select.
>
> I just want to be able to set the event.date property to a default value if
> it's already an empty String.  I'm looking for a tag to do it because this
> JSP page is generated via XSLT from another XML document, and there could be
> many bean properties that need to be defaulted.  I want to be able to
> preserve the use of the dot notation for nested parameters.
>
> Basically, I want a tag something like this:
>
> 
>
> Is there any way I can do this?
>
> Thanks!!
>
>
>
> This e-mail message is being sent solely for use by the intended recipient(s) and 
> may contain confidential
information.  Any unauthorized review, use, disclosure or distribution is prohibited.  
If you are not the intended
recipient, please contact the sender by phone or reply by e-mail, delete the original 
message and destroy all copies.
Thank you.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 Final Release.
> Is this new version suitable for starting new projects? Thanks
>
> Sincerely Onur
>
>
> On Tue, 21 Sep 2004 16:41:00 +0800, Nathan Coast <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > will the 1.2.4 jars & tlds be uploaded to the maven repos some time soon?
> >
> > where do they go?
> > http://www.apache.org/dist/java-repository/struts/jars/
> > or
> > http://www.ibiblio.org/maven/struts/jars/
> >
> > or is one a mirror of the other?
> >
> > thanks
> > Nathan
> >
> > Martin Cooper wrote:
> >
> > > The Struts team is pleased to announce the release of Struts 1.2.4 for
> > > General Availability. This release includes significant new
> > > functionality, as well as numerous fixes for bugs which were reported
> > > against the previous release, and supersedes the earlier 1.1 version as
> > > the latest official release of Struts from The Apache Software Foundation.
> > >
> > > The binary, source and library distributions are available from the
> > > Struts download page:
> > >
> > > http://struts.apache.org/download.cgi
> > >
> > > The Release Notes are available on the Struts web site at:
> > >
> > > http://struts.apache.org/userGuide/release-notes.html
> > >
> > > --
> > > Martin Cooper
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 set the datasource).
> > Here an example code to use inside the singleton object:
> >
> > //Get DB from JNDI
> > try {
> > Context initCtx = new InitialContext();
> >   Context envCtx = (Context) initCtx.lookup("java:comp/env");
> >   DataSource dataSource = (DataSource)
> > envCtx.lookup("jdbc/DatabaseSource");
> >
> > } catch ( NamingException e ) {
> > //Handle Source Code Exception
> > }
> >
>
> This is a nice solution, but I would like to use the DataSource
> configuration in struts-config.xml.
> I noticed that there is the "ConfigHelper.getDataSource()" method to get
> the default data source, but I want to use a DataSource that I mapped with
> a key.
> By the way, the solution above is not too tied to Tomcat? What if I want
> to distribute my application? Do I have to configure Tomcat on the other
> machine?
> Ciao
> Antonio Petrelli
>
> >
> >
> >
> > -Messaggio originale-
> > Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Inviato: martedì 21 settembre 2004 11.11
> > A: [EMAIL PROTECTED]
> > Oggetto: Assigning a DataSource to a Business Delegate on startup
> >
> >
> > Hello there,
> > is there a way I can assign a DataSource to a singleton object (i.e. a
> > Business Delegate) on startup? I know there is the "getDataSource"
> > protected method in Action, but I have to pass the DataSource itself on
> > each call of the delegate, or I have to check whether it has been
> > already passed or not. Maybe it could be done with a plugin. In this
> > case, is there already a package that I could use? And if not, how can I
> > access to a DataSource outside the Action class? Thanks in advance Ciao
> > Antonio Petrelli
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 solution, but I would like to use the DataSource
> configuration in struts-config.xml.
> I noticed that there is the "ConfigHelper.getDataSource()" method to get
> the default data source, but I want to use a DataSource that I mapped with
> a key.
> By the way, the solution above is not too tied to Tomcat? What if I want
> to distribute my application? Do I have to configure Tomcat on the other
> machine?
> Ciao
> Antonio Petrelli
>
> >
> >
> >
> > -Messaggio originale-
> > Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Inviato: martedì 21 settembre 2004 11.11
> > A: [EMAIL PROTECTED]
> > Oggetto: Assigning a DataSource to a Business Delegate on startup
> >
> >
> > Hello there,
> > is there a way I can assign a DataSource to a singleton object (i.e. a
> > Business Delegate) on startup? I know there is the "getDataSource"
> > protected method in Action, but I have to pass the DataSource itself on
> > each call of the delegate, or I have to check whether it has been
> > already passed or not. Maybe it could be done with a plugin. In this
> > case, is there already a package that I could use? And if not, how can I
> > access to a DataSource outside the Action class? Thanks in advance Ciao
> > Antonio Petrelli
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 should the business logics be put?
> 
> Thanks
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 difficult to
get using real app.

Notice we use spring to link webapp with business model.

Nico.


> That's a good point...
>
> If you KNOW your application is NEVER going to be anything other than a
> web-based application, and if you KNOW you won't need to re-use your
> business logic (or expose it in any way outside the application), and if
> your development team is not really separated (especially if your the only
> developer!) then there's probably not too many good arguments for using
> delegates at all.  Might as well save the time and effort and just put
> everything in the Actions.
>
> The decision has to be based on what you know about the project.  I think
> it's fair to say that the majority of people will tell you that separating
> your business logic from your Actions is a good architectural approach,
> but there are some valid reasons for not bothering with the extra effort,
> and only you can decide.
>
> -- 
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
>
> On Tue, September 21, 2004 10:23 am, Michael McGrady said:
> > PC Leung wrote:
> >
> >>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 should the business logics be put?
> >>
> >>Thanks
> >>
> > A good answer to this question is impossible to give, PC, without
> > knowing your requirements.  There are some cases where the logic should
> > just be put in the Action class.  The important thing is to know the
> > issues and to do the right thing in your case.  The biggest issue,
> > determining whether you need to get outside your Action class, is
> > whether or not you need to decouple your business logic from your Action
> > class.
> >
> > If so, and this also depends upon what growth you envision, then you
> > need to do the sorts of things that people will recommend on this list.
> > But, you always have to know what the tune is as well as the lyrics, the
> > actual needs versus the technical options.
> >
> > Michael McGrady
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 get the value of a constant from a static on a class?
> > This is what I don't like:
> >
> > 
> >   > collection="<%=org.gargantus.GargantusLists.ESURVEY_RESULT_DISPLAY_TYPE_LIST
> > %>"
> >property="resultDisplayTypeId"
> >labelProperty="typeName" />
> > 
> >
> > I thought of JSTL variables, like:
> > 
> >   <%=org.gargantus.GargantusLists.ESURVEY_RESULT_DISPLAY_TYPE_LIST %>
> > 
> >
> > except somehow avoiding the <% %> tags?
> >
> > I thought of instantiating the class and putting in the Application
> > scope and trying to access it like this:
> >
> > ${applicationScope.get['myConstantsBean'].resultDisplayTypeId}
> >
> > but it's still messy. Does anybody have any better ideas?
> >
> > Thanks!
> >
> >
> > On 09/27/2004 04:53 PM Paul McCulloch wrote:
> > >I think you can achieve what yopu want. For example:
> > >
> > >
> > >
> > >
> > > I'm some conditional html
> > >
> > >
> > >Paul
> > >
> > >
> > >>-Original Message-
> > >>From: Freddy Villalba A. [mailto:[EMAIL PROTECTED]
> > >>Sent: Monday, September 27, 2004 3:56 PM
> > >>To: 'Struts Users Mailing List'
> > >>Subject: RE: Clean way to obtain a property's value...
> > >>
> > >>
> > >>Not sure, Paul... as I understand,  directly
> > >>outputs the value.
> > >>Therefore, I believe it would work if I wanted to use the value for
> > >>conditional (client-side) code (for instance, Javascript), but not for
> > >>storing the value in a server-side variable and using it to
> > >>(conditionally)
> > >>generate some HTML or other...
> > >>
> > >>Correct me if I'm wrong, please...
> > >>
> > >>Regards,
> > >>Freddy.
> > >>
> > >>-Mensaje original-
> > >>De: Paul McCulloch [mailto:[EMAIL PROTECTED]
> > >>Enviado el: lunes, 27 de septiembre de 2004 15:56
> > >>Para: 'Struts Users Mailing List'
> > >>Asunto: RE: Clean way to obtain a property's value...
> > >>
> > >>
> > >>Doesn't  meet your needs?
> > >>
> > >>As an aside, What is your objection to JSTL?
> > >>
> > >>Paul.
> >
> > -- 
> > struts 1.2 + tomcat 5.0.19 + java 1.4.2
> > Linux 2.4.20 Debian
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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/struts-html.tld" prefix="html"%>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
> 
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> 
> 
>   
> 
> 
> 
> 
> 
> 
>   
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
> 
> 
> In the content tile the html:form is set, as this tile includes the
> information to submit.
> 
> Now I want to surround the complete layout with menu-navigation with the
> form tag instead of using it only in the content tile. This is needed
> because I want the form to submit if the user hits the menu bar. If the
> action were static it would look like the following:
> 
>   
>   
> 
> 
> 
> 
> 
> 
> 
>   
>   
> 
> 
> However, the action is not static so I need to make it dynamic. I've tried
> to include the form tag with another tile, but it doesn't compile the jsp
> page. I've tried to include the action as tiles:getAsString, but it doesn't
> compile either.
> 
> I'm under the impression that this is a common problem (form including
> navigation), but I'm unaware of any solution.
> 
> Thanks in advance
> Karsten Krieg
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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="document.forms[0].submit();">
>
> I need to add submit on the onclick to have changes of the form.
>
> If I don't make submit the state of the form is not saved.
>
> Is it a bug ?
>
> Sandra
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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 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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[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 implementation of IObject :

public interface IObject
{
int getIntValue(String name);
}

You can define a stub for this interface like this :




4


12






It can return simple types, other stubs from interfaces, collections, 
maps, javabeans (using default
constructor + setters) and result from static method calls (usefull for ValuedEnum)

I use it on my apps to build and make demos of the webapp while business tier is still 
in dev.

It comes with simple support for Springframework, junit, dbunit and StrutsTestCase : 
when you run a test, it loads an
XML file with same name as the test class to get stubs you can use in your test.

http://azote.sourceforge.net/xmlstubs.html


Nico.




Our name has changed, please update your address book to the following format for the 
latest identities received "[EMAIL PROTECTED]".

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,  you are not authorized to read, 
print, retain, copy, disseminate,  distribute, or use this message or any part 
thereof. If you receive this  message in error, please notify the sender immediately 
and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 



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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 so that it is VERY difficult (but not impossible) to 
build another String that will produce the same hash.


If you're using hashing, you cannot get the password back. You may 
provide a 'reset password' link to user having lost they're password, 
that will create a new (random) password and send it by mail.


Nico.


senthil Kumar a écrit :


Hello all.,



In my database password already stored in encrypted format.

Once user forget the password i need to send back him but its seeing by 
encryption format only.

Bofere send password to user, i need to decrypt in java.

I am encrypt using following code


cryptoInterface=CryptoFactory.getCryptoHandler();
password = cryptoInterface.getHash(password);


But i cant decrypt back. Any one can send the code or help me.

Thanks in advance.
Senthil S



This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient or received it in error, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
Please do not copy it for any purpose or disclose its contents.

Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved



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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[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 any open-source tool could help me 
on this.
I'm looking for something like a "2 phase commit" or "rsync" Java lib, 
that could be used to assert an update on one server will be 
automagically replicated on the other one.


Thanks.

Nico.

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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [fully-OT] File replication between webapps

2005-06-13 Thread Nicolas De Loof


Our customer defines architecture restriction for it's applications. One 
of them is that the (only) usable database is Oracle. As we don't use a 
database for the app, adding orcale only to get DB replication may be 
difficult to explain (and will add a significant cost)


delbd 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 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 any open-source tool could help me
on this.
I'm looking for something like a "2 phase commit" or "rsync" Java lib,
that could be used to assert an update on one server will be
automagically replicated on the other one.

Thanks.

Nico.

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,  you
are not authorized to read, print, retain, copy, disseminate,  distribute,
or use this message or any part thereof. If you receive this  message in
error, please notify the sender immediately and delete all  copies of this
message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



 



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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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. One
of them is that the (only) usable database is Oracle. As we don't use a
database for the app, adding orcale only to get DB replication may be
difficult to explain (and will add a significant cost)
   



Sure it does :)
If oracle is only 'clustered' database possible but other non lcustered ones 
are available, maybe C-JDBC could help you (it provide RAID like ontop of any 
database).


If not, maybe the transactional Collections in 
http://jakarta.apache.org/commons/transaction/ may be of interrest (they 
supports 2 phases commits using XAressources if am not wrong)


 


delbd 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 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 any open-source tool could help me
on this.
I'm looking for something like a "2 phase commit" or "rsync" Java lib,
that could be used to assert an update on one server will be
automagically replicated on the other one.

Thanks.

Nico.

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, 
you are not authorized to read, print, retain, copy, disseminate, 
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all 
copies of this message.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   


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,  you
are not authorized to read, print, retain, copy, disseminate,  distribute,
or use this message or any part thereof. If you receive this  message in
error, please notify the sender immediately and delete all  copies of this
message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



 



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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [fully-OT] File replication between webapps

2005-06-13 Thread Nicolas De Loof


Thanks a lot, I'll take a loot at this ORB.

Nico.

Leon Rosenberg a écrit :

Do you hold the data inmemory or in a file system? 


In later case you'll be just fine with mounting a common share, like NFS
or SMB.
In first case you'd need a software synchronization inbetween, which is
typically solved by a publisher/subscriber pattern. You can use MDB
(message-driven beans, there are enough (open source) solutions
available without an obligatory application server.
Personally I'd prefer an ORB with an EventService like JacORB -
www.jacorb.org.

regards
Leon

P.S. Still you 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 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 any open-source tool could help me 
on this.
I'm looking for something like a "2 phase commit" or "rsync" Java lib, 
that could be used to assert an update on one server will be 
automagically replicated on the other one.


Thanks.

Nico.

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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 



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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom

Tel: +44-(0)207-883-4497

==
Please access the attached hyperlink for an important electronic communications disclaimer: 


http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 



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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[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 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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/index.html#bind)

.. and use it in EL :


If you don't want to use EL, you can use struts bean:define :




Nico.
Richard Reyes a écrit :
Hello All,
I have this code...
<%
   User user = ( User ) session.getAttribute( Konstants.SESSION_USER_KEY ) ;
   ArrayList x = user.getRusers() ;
   request.setAttribute( "x",x ) ;
%>
   
   
How do I use the Struts Bean Liblraries to remove the scriptlet.
TIA.
Richard
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 framework may 
reduce productivity. To make me change to another one, it may be really 
intuitive and easy to learn. I haven't took a look at SringMVC or any other. 
Perhaps I'm missing something...
I also use struts because my customer have read this word on the net and agree 
using it. It's a stupid argument, but it is the stronger I can give to my boss.
2.  Why should _I_ prefer ?
I realy think lot's of MVC framework may be usefull. I think they can 
also be usefull to help Struts becoming more flexible / easy / 
fonctionnal. For example, SWF introduces use of XMLHttpRequest for a 
more dynamic web GUI. Maybee some future Struts extension will do the 
same... This function can be usefull for some projects and useless for 
others, so I can't say if SWF is *better* than Struts.

In short, consider your developpers exeprience (framework learn cost) 
and the functions that may be usefull to you to decide what framework to 
use.

Nico.
Justin Morgan a écrit :
Thanks...
I recently picked up Rod Johnson's J2EE Design and Development (ISBN:
0-7645-4385-7), and Chapter 12 is titled "Web-Tier MVC Design"...  I'm
going to assume this chapter is pretty similar to the one you mention.
I agree with you that this author is incredibly clear-minded, and I'm
soaking it all in.  Most of the book is model-neutral, and focuses more
on good practices and patterns, which is great because we have not
decided on a model yet.  But in chapter 12 he only really discusses
Struts, Maverick, and WebWork.  I was hoping for some commentary on JSF
and Tapestry as well, especially regarding why one might choose one over
the other.
It all boils down to two questions:
1.  Why do you prefer Struts over any other web application framework?
(Tapestry, JSF, Maverick, WebWork, etc)
2.  Why should _I_ prefer ?
The second question is not meant to make anyone defensive; I'm just
trying to get past 

Thanks,
-Justin

-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 07, 2005 3:30 PM
To: Struts Users Mailing List
Subject: Re: MVC Frameworks

Rod Johnson (author of Spring and one of the clearest thinkers I have
ever read IMHO) has a good discussion of the options in J2EE
Development without EJB in Chapter 13: Web Tier Design.
Jack
On Mon, 7 Mar 2005 14:19:47 -0600, Justin Morgan <[EMAIL PROTECTED]>
wrote:
 

Hi there,
I am currently researching different web application frameworks...
   

JSF,
 

Struts, and Tapestry specifically.  We are planning to migrate a large
existing web application to a rigorous model 2 standard using one or
more of these frameworks, and I am looking for more information on the
differences between them.  My research thus far has turned up only a
   

few
 

sources, and many of them seem religiously biased toward one of them.
If any of you have opinions, or better yet, articles contrasting these
technologies, please let me know.
Thanks,
-Justin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   


 

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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 reason has no interest here, 
but my customer has warned us on this and expected us to make load test 
to confirm good application response-time (such load-tests had to be 
done in any case...).

Here is an example why we may not use some framework or function, not 
because it isn't the best, but 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 it because it is
the framework that the client will accept and pay for and my developers
know best. 

We recently used (portions) of Spring on a project and had a heck of a
time getting the client to accept the app during user testing. Granted
there were a bunch of other issues with this particular client that went
against "best practices" but the major sticking point was Spring. (note
we didn't even use the MVC part of spring even, just the beanfactory
stuff)
Struts has of course gained popular acceptance so clients really don't
think much about it when you say you are using it, vs something else. 

Al
-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 10:17 AM
To: Justin Morgan
Cc: Struts Users Mailing List
Subject: Re: MVC Frameworks

For my part, I still prefer Struts because I think it has a great
potential if it endorses some move to IoC and does not fall off the
strict web MVC pattern.  I have no time for the event-based frameworks
like Echo, Tapestry, JSF, Shale, etc.  Others need that sort of thing.
What framework you choose depends a lot on what you want to do, the
sophistication of your developers, etc.
Jack
On Tue, 8 Mar 2005 08:44:26 -0600, Justin Morgan <[EMAIL PROTECTED]>
wrote:
 

Thanks...
I recently picked up Rod Johnson's J2EE Design and Development (ISBN:
0-7645-4385-7), and Chapter 12 is titled "Web-Tier MVC Design"...  I'm
going to assume this chapter is pretty similar to the one you mention.
I agree with you that this author is incredibly clear-minded, and I'm
soaking it all in.  Most of the book is model-neutral, and focuses
   

more
 

on good practices and patterns, which is great because we have not
decided on a model yet.  But in chapter 12 he only really discusses
Struts, Maverick, and WebWork.  I was hoping for some commentary on
   

JSF
 

and Tapestry as well, especially regarding why one might choose one
   

over
 

the other.
It all boils down to two questions:
1.  Why do you prefer Struts over any other web application framework?
(Tapestry, JSF, Maverick, WebWork, etc)
2.  Why should _I_ prefer ?
The second question is not meant to make anyone defensive; I'm just
trying to get past
Thanks,
-Justin
-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED]
Sent: Monday, March 07, 2005 3:30 PM
To: Struts Users Mailing List
Subject: Re: MVC Frameworks
Rod Johnson (author of Spring and one of the clearest thinkers I have
ever read IMHO) has a good discussion of the options in J2EE
Development without EJB in Chapter 13: Web Tier Design.
Jack
On Mon, 7 Mar 2005 14:19:47 -0600, Justin Morgan
   

<[EMAIL PROTECTED]>
 

wrote:
   

Hi there,
I am currently researching different web application frameworks...
 

JSF,
   

Struts, and Tapestry specifically.  We are planning to migrate a
 

large
 

existing web application to a rigorous model 2 standard using one or
more of these frameworks, and I am looking for more information on
 

the
 

differences between them.  My research thus far has turned up only a
 

few
   

sources, and many of them seem religiously biased toward one of
 

them.
 

If any of you have opinions, or better yet, articles contrasting
 

these
 

technologies, please let me know.
Thanks,
-Justin
 

-
 

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
"You can lead a horse to water but you cannot make it float on its
back."
~Dakota Jack~
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   


 

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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error

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 employees.
On that list, if you click on an employee name, I want to redirect to an
edit page...easy no?
but how to define the complete process into struts-config? Below you will
find my actual struts-config but here is my problem :
I have defined the /EmployeeDetail action-mapping with validate equal to
false to be able to display the employee detail page without any
checkbut if the user made any changes on the employee information in the
detailled page, the same action is called and then i need to validate my
form! Maybe my configuration is not good

   
   
   


   

in EmployeeDetail.jsp, I have the following form definition :
   ...
Thanks for your help
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Design problem

2005-03-09 Thread Nicolas De Loof
Each mapping have to define a parameter that sets the internal method to 
be used

You can use parameter as the method name :

and in execute() :
if ("show".equals(getParameter))
   return show(mapping, form...)
else if ("update".equals(getParameter))
   return update(mapping, form...)
else
   return mapping.findForward("error");
Another way is to set parameter to the name of a request param that will 
define the method to be used. Doing this, you have to add this parameter 
to your request (using an hidden input). Doing this, you only need one 
mapping as you can 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 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!
- Original Message -
From: "Nicolas De Loof" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Wednesday, March 09, 2005 5:09 PM
Subject: Re: Design problem
 

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 employees.
On that list, if you click on an employee name, I want to redirect to an
edit page...easy no?
but how to define the complete process into struts-config? Below you will
find my actual struts-config but here is my problem :
I have defined the /EmployeeDetail action-mapping with validate equal to
false to be able to display the employee detail page without any
checkbut if the user made any changes on the employee information in
 

the
 

detailled page, the same action is called and then i need to validate my
form! Maybe my configuration is not good

  
  
  


  

in EmployeeDetail.jsp, I have the following form definition :
  ...
Thanks for your help
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 

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,  you
are not authorized to read, print, retain, copy, disseminate,  distribute,
or use this message or any part thereof. If you receive this  message in
error, please notify the sender immediately and delete all  copies of this
message.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 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, 2005 5:09 PM
Subject: Re: Design problem
 

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 employees.
On that list, if you click on an employee name, I want to redirect to an
edit page...easy no?
but how to define the complete process into struts-config? Below you will
find my actual struts-config but here is my problem :
I have defined the /EmployeeDetail action-mapping with validate equal to
false to be able to display the employee detail page without any
checkbut if the user made any changes on the employee information in
 

the
 

detailled page, the same action is called and then i need to validate my
form! Maybe my configuration is not good

  
  
  


  

in EmployeeDetail.jsp, I have the following form definition :
  ...
Thanks for your help
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 

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,  you
are not authorized to read, print, retain, copy, disseminate,  distribute,
or use this message or any part thereof. If you receive this  message in
error, please notify the sender immediately and delete all  copies of this
message.
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 object contains 3 variables : plantitle ,plandescription and
planname.
I have to sort the arraylist based on the plantitle first and then based
on the plandescription.
ArrayList list = new ArrayList();
Plan planobj = null;
For (i= 1, i<=100, i++){
planObj = readPlanObjectFromDB();
list.add(planObj);
}
//?? Now how to sort it 

Private Plan readPlanObjectFromDB(){
//queries the database to return plan object
return plan;
}
I am totally confused. Even if use bubble sorting it will cause a lot of
performance issues.
Could any one please suggest me a good method?
Regards,
Krishna Mohan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AOP Benchmark (Was: MVC Frameworks)

2005-03-10 Thread Nicolas De Loof
Take a look at  http://docs.codehaus.org/display/AW/AOP+Benchmark
Result shows Spring AOP to be slower than all other tested AOP 
frameworks. They're lot's of comment on this bench on the net 
(http://www.theserverside.com/news/thread.tss?thread_id=30238), ant 
Spring seems to be "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 for 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 Spring 
(compared to AspectWerkz). The technical reason has no interest here, 
but my customer has warned us on this and expected us to make load 
test to confirm good application response-time (such load-tests had 
to be done in any case...).

Here is an example why we may not use some framework or function, not 
because it isn't the best, but 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 it because it is
the framework that the client will accept and pay for and my developers
know best.
We recently used (portions) of Spring on a project and had a heck of a
time getting the client to accept the app during user testing. Granted
there were a bunch of other issues with this particular client that 
went
against "best practices" but the major sticking point was Spring. (note
we didn't even use the MVC part of spring even, just the beanfactory
stuff)

Struts has of course gained popular acceptance so clients really don't
think much about it when you say you are using it, vs something else.
Al
-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED] Sent: Tuesday, 
March 08, 2005 10:17 AM
To: Justin Morgan
Cc: Struts Users Mailing List
Subject: Re: MVC Frameworks

For my part, I still prefer Struts because I think it has a great
potential if it endorses some move to IoC and does not fall off the
strict web MVC pattern.  I have no time for the event-based frameworks
like Echo, Tapestry, JSF, Shale, etc.  Others need that sort of thing.
What framework you choose depends a lot on what you want to do, the
sophistication of your developers, etc.
Jack
On Tue, 8 Mar 2005 08:44:26 -0600, Justin Morgan 
<[EMAIL PROTECTED]>
wrote:
 

Thanks...
I recently picked up Rod Johnson's J2EE Design and Development (ISBN:
0-7645-4385-7), and Chapter 12 is titled "Web-Tier MVC Design"...  I'm
going to assume this chapter is pretty similar to the one you mention.
I agree with you that this author is incredibly clear-minded, and I'm
soaking it all in.  Most of the book is model-neutral, and focuses
  

more
 

on good practices and patterns, which is great because we have not
decided on a model yet.  But in chapter 12 he only really discusses
Struts, Maverick, and WebWork.  I was hoping for some commentary on
  

JSF
 

and Tapestry as well, especially regarding why one might choose one
  

over
 

the other.
It all boils down to two questions:
1.  Why do you prefer Struts over any other web application framework?
(Tapestry, JSF, Maverick, WebWork, etc)
2.  Why should _I_ prefer ?
The second question is not meant to make anyone defensive; I'm just
trying to get past
Thanks,
-Justin
-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED]
Sent: Monday, March 07, 2005 3:30 PM
To: Struts Users Mailing List
Subject: Re: MVC Frameworks
Rod Johnson (author of Spring and one of the clearest thinkers I have
ever read IMHO) has a good discussion of the options in J2EE
Development without EJB in Chapter 13: Web Tier Design.
Jack
On Mon, 7 Mar 2005 14:19:47 -0600, Justin Morgan
  

<[EMAIL PROTECTED]>
 

wrote:
 

Hi there,
I am currently researching different web application frameworks...


JSF,
 

Struts, and Tapestry specifically.  We are planning to migrate a


large
 

existing web application to a rigorous model 2 standard using one or
more of these frameworks, and I am looking for more information on


the
 

differences between them.  My research thus far has turned up only a


few
 

sources, and many of them seem religiously biased toward one of


them.
 

If any of you have opinions, or better yet, articles contrasting


these
 

technologies, please let me know.
Thanks,
-Justin


-
 

To unsubscribe, e-mail: [EMAIL PRO

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 numbre. Using this, on the N wizard action, all fields set on 
page 1..N are validated, and on final action (that will commit inputs in 
DB) all fields are validated.

Nico.
Viktar Duzh a Ãcrit :
Guys,
I have a web application that is built on struts framework. I need to 
implement a couple of wizards within the application. Could anybody 
recommend a robust approach?

Thanks,
- Viktar
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 against this use object on each page. if you don't use the user object
often, put some identifier in the session to mark that the user has logged
in, eg. key="user", value=. if you need to access the user data
later on, you can user the value of this session object to retrieve the real
user object from a service or whatever.
but there is nothing like "built in support" in struts as far as i know.
kr,
guenther
-Original Message-
From: wo_shi_ni_ba_ba [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 11, 2005 12:55 AM
To: user@struts.apache.org
Subject: user management

do struts developers usually store user as an object in session? or does
struts have additional framework for handling user management.
thanks in advance
		
__
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 
hibernate)
a method called getEnumCode() returns a Serializable that represents 
the code for that enum :P

So far what I'm doing is:
<%String code = String.valueOf(YesNoEnum.YES.getEnumCode())%>

This of course s cuz I have to import the enum and also adds 
scriptlets to my jsp. So I tried the struts-el using:
value="{YesNoEnum.YES.enumCode}"
not working either.

Anyone has a good experience with that?
Thanks
Vinicius
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

I can not get value of 
if my code is incorrect, plz help me solve it.
thanks
Bowl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 query informations from 2 different 
databases: mySql and Oracle.
both are on different servers, respectively (Jupiter:2740) and (orion:2556).
How should I configure the system for being able to do that.
Any references would be appreciated.
Thanks.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
 

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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 écrit :
Hi group,
I have successfully developed a prototype system using Struts 1.2.1 and are
about to start rewriting it for production use. Therefore I would like to
use the most up-to-date stable version.
Looking thru the archives, wiki, and the download site I am a bit confused:
last released version is 1.2.4, 1.2.6 is labelled "beta" but has apparently
not changed for half a year (millenia in struts release periods), there also
seems to be work ongoing on 1.2.7.
Many members of this list seem to work with 1.3. Not talking about 2.x ...
So I am confused. I want to start with a version which is definitely no
longer beta, but is 1.2.4 therefore the right choice?
Any remarks are welcome!
martin
---
cityExperience.net
Dipl. Inf. Martin Kindler
Kaulbachstr. 20a
D-12247 Berlin
Deutschland
eMail [EMAIL PROTECTED]
Tel.  +49 (030) 260 78 48 2
Fax   +49 (030) 260 78 48 3

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 JSP 
(JSP 1.2 + JSTL).

Nico.
Gaet a écrit :
Thanks Leon!
Have you already implemented this solution?
Do you know if it will be supported by WAS?
Have you a complete but simple sample with struts and XML/XSL?
So, that's mean that I won't have jsp anymore?
Could i still use struts-layout?
Do you think it will be simple to rewrite a basic JSP-struts-tiles webapp?
Or will it be a big effort?
Does the XSL template will allow me to define a common template for my whole
webapp?
Thanks if you could help me to answer these important question that will
allow me to take my decision
- Original Message - 
From: "Leon Rosenberg" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Wednesday, May 18, 2005 10:50 AM
Subject: Re: Struts and XML/XSL

 

First)
yes it's possible and quite easy, just render xml in your jsp or write
out the dom out of the action
Second)
You premises are false. It's far less powerful, and it's significantly
slower then jsps.
regards
Leon

On Wed, 2005-05-18 at 10:45 +0200, Gaet wrote:
   

hi,
Actually we have a website developped with struts and tiles...but as
 

XML/XSL seems to be more powerful than tiles for presentation (support
different browser, easier to change presentation, better performance...)
 

My question is : is it possible to develop an application using struts
 

and XML/XSL..
 

If yes, If you have any tutorial or code sample...that's would be great!
Thanks
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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-el TLD.

Nico.
Yaroslav Novytskyy a écrit :
Hi!
Does anybody know how to write this

in JSTL Expression Language?
( does not work)
I'd like to get rid of old "struts-logic" in my project and leave only 
jstl's tags and "html-el".

Yaroslav Novytskyy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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?  Personally, I think that
being able to save the errors in the session is a great addition (I wrote
a hack for v. 1.2.4 to do exactly that).
Thanks,
Aladin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tiles wilcard?

2004-11-23 Thread Nicolas De Loof

Here I am !

I submited a patch for this in 
http://issues.apache.org/bugzilla/show_bug.cgi?id=31034

They're is no *pretty* doc on this (tutorial or sample) but you can look at 
bugzilla comments for simple usage :

wildcard in struts-config.xml :



wildcard in tiles-defs.xml :








- Original Message - 
From: "Julio Cesar C Neto" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, November 23, 2004 10:55 AM
Subject: RES: tiles wilcard?


>   Yeah , I know and that´s exactly what would 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: news [mailto:[EMAIL PROTECTED] Em nome de Vic
> Enviada em: segunda-feira, 22 de novembro de 2004 16:17
> Para: [EMAIL PROTECTED]
> Assunto: Re: tiles wilcard?
>
> You can do wild cards in struts-config, if that helps.
> Tiles has a diferent mechanisam to repeat.
> .V
>
> Julio Cesar C Neto wrote:
> > Hi,
> >
> >I would like able to use wildcards in the tiles-defs.xml. Is that
> > possible? Is there any patch?
> >
> >
> > Julio Cesar
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

- If I try to use a java class as formbean, I get :

java.lang.IllegalAccessException: Class org.apache.struts.config.FormBeanConfig 
can not access a member of class
com.capgemini.map.webapp.beans.LogonForm with modifiers ""
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)
at java.lang.Class.newInstance0(Class.java:302)
at java.lang.Class.newInstance(Class.java:261)
at 
org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:212)

Notice my formbean is a simple POJO extending ActionForm !

I really don't know where to search (I've allready re-installed eclipse and JDK)

Please, HELP !

Nico.




login.jsp :
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html"; %>



login : 

password : 







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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[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 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 form.
>
> - If I try to use a java class as formbean, I get :
>
> java.lang.IllegalAccessException: Class 
> org.apache.struts.config.FormBeanConfig can not access a member of class
> com.capgemini.map.webapp.beans.LogonForm with modifiers ""
> at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)
> at java.lang.Class.newInstance0(Class.java:302)
> at java.lang.Class.newInstance(Class.java:261)
> at 
> org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:212)
>
> Notice my formbean is a simple POJO extending ActionForm !
>
> I really don't know where to search (I've allready re-installed eclipse and 
> JDK)
>
> Please, HELP !
>
> Nico.
>
>
>
>
> login.jsp :
>   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> <%@ taglib prefix="html" uri="http://struts.apache.org/tags-html"; %>
> 
> 
> 
> login : 
> 
> password : 
> 
> 
> 
> 
> 
>
>
> 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,  you are not
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you
receive this  message in error, please notify the sender immediately and delete 
all  copies of this message.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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.org/struts/StrutsMessageResourcesFromDatabase

We want to use EL in our JSP, and AFAIK it requires the 
"javax.servlet.jsp.jstl.fmt.localizationContext" servlet-context
init param to be set to a LocalizationContext implementation or to a 
ResourceBundle path.
How can I configure JSTL to use a custom Message source ? I don't know how to 
build a ResourceBundle (as required by
LocalizationContext) from database messages (ResourceBundle is full of private 
static method I cannot override)



Thanks for any suggestion



Nico.






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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts, JSTL and ResourceBundle

2004-12-16 Thread Nicolas De Loof

Thank you for help,

About using database for messages, I agree it requires chaching and a reload 
strategy. A simple "reload every 10
minutes" might allow changing messages without requirement to stop app or to 
search for files on server.

I'm taking a look at Spring ReloadableResourceBundleMessageSource (what's a 
name !). It allows bundle reload and sharing
messages between JSTL an Spring aware classes by using ApplicationContext as a 
MessageSource.

Nico.


>
>
> > -Original Message-
> > From: Derek Broughton [mailto:[EMAIL PROTECTED]
> > 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]
> >
> > > > 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/...)
> > > >
> > > The solution isn't to put the messages into a database.
> > That just means
> > > everything gets slowed down as you constantly make db changes.
> >
> > Maybe, though I'd expect that there wouldn't be "constant" changes.
>
> Blech.  Wrong thing to say.  Everythign gets slowed down because you have to 
> hit the DB everytime you want a message.
Cacheing the data means your right back where you started from,  or trying to 
refresh the cache on each change.
>
>
> >
> > > What you might want to do is cause all of the i18n bundles to
> > > reload themselves to pick up new bundles. Which seems to be somewhat
> > > difficult, but this link might provide some help:
> > > http://www.jguru.com/faq/view.jsp?EID=44221
> >
> > Doing it the "right" way might be a real pain, but if you make
> > context/WEB-INF/classes/ApplicationResources.properties a
> > symlink to a file
> > they can access, and use 'reloadable="true"
> > allowLinking="true"' in the
> >  tag I would think it would work.  Ugly, but simple.
>
> So is the linke I provided.  The problem seems to be that the resource 
> bundles aren't really designed to be reloaded
during application run.  There is apparently a request for enhancement at sun 
to do this.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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 04, 2005 11:17 AM
To: user@struts.apache.org
Subject: Two Qs re: authentication servlet filter


Can anyone help a newbie out?  I have a couple of questions:
1)  I am implementing a servlet filter for authentication.  
In my web app,
a class reunion web site, I want people to be able to login with their
first and last names and a password, instead of a single ID 
and password,
so I am NOT configuring form-based security and letting 
TomCat do the work.
Instead, I am checking authorization myself in this filter.  
Is this sound
reasoning or does anyone have better ideas?
   

I know of one other person whose name is James Barrows.  No relation to me 
at all.  Firstname/lastname is probably not unique enough.
 

2)  In web.xml, in the filter-mapping tag, is there a way to 
say "execute
this filter to all servlets except /LoginAction.do"  I tried 
the following,
using the regular expression carat, but get an "invalid 
expression" error.
I'd hate to list all servlets and JSPs that should get the 
filter applied.
   

All actions that need to have a login should be of the form 
"/secure/actionName.do", then set your filter to the secure actions.
 

More importantly, sounds like an opportunity for errors as new
actions/servlets are created but maybe not added to the list of
filter-mappings.  Here's the attempt at mapping that failed:
 
 AuthenticationFilter
 schs82.AuthenticationFilter
 
 
 AuthenticationFilter
 ^/LoginAction.do
 
   

I wish that would have worked too :)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 - using validator). What i want to do is i want to redirect it to 
index page. I tried using oncancel inside  but giving me error.
How i can do this ?
Thanks and regards,
Manisha
		
-
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search. Learn more.
 

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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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.
Manisha Sathe a écrit :
I had posted it before - might hv missed the response. I want to check whether 
Cancel button is pressed, if yes then want to redirect it to another page
Also how to handle th Exceptions. I am catching many exceptions inside my Action Handlers. 
what shall i do with them ? Currently just printing the error messages on System.out, but what is the good practice to handle exceptions ? Close all Resultsets/ connections and redirect to error page ? write some standard routine ? 

In struts-config i have given mapping to "errors" as global forward, but what 
if exceptions occur inside my common classes ?
regards
Manisha
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
 

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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 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 Loof <[EMAIL PROTECTED]> wrote:
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.
Manisha Sathe a écrit :
 

I had posted it before - might hv missed the response. I want to check whether 
Cancel button is pressed, if yes then want to redirect it to another page
Also how to handle th Exceptions. I am catching many exceptions inside my Action Handlers. 
what shall i do with them ? Currently just printing the error messages on System.out, but what is the good practice to handle exceptions ? Close all Resultsets/ connections and redirect to error page ? write some standard routine ? 

In struts-config i have given mapping to "errors" as global forward, but what 
if exceptions occur inside my common classes ?
regards
Manisha
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

   

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, you are not 
authorized to read, print, retain, copy, disseminate, distribute, or use this 
message or any part thereof. If you receive this message in error, please 
notify the sender immediately and delete all copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

		
-
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search. Learn more.
 

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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 link fire off a JavaScript function that will 
submit the form.  I don't think you'll want to use the  
tag in this case, since you won't need to do anything fancy with a 
request URI.

Here's a really quick example that will run in Internet Explorer.  I 
haven't done enough JavaScript in other browsers to make any 
guarantees with those, but modifications to this shouldn't be all that 
difficult:

Submit
For FORMNAME, you need to use the name attribute of the FORM element. 
IIRC, Struts uses the name of the Form Bean here.  The easiest way to 
be sure is to run your app and view the generated source, though.

-- Jeff
Flávio Maldonado wrote:
Hello...
How can I do to make a  works like a  ??
For example...
I have this button: 
 
 
and I'd like to make a Link to do the same thing.
thanks for help!
Flávio Vilasboas Maldonado
Diretor de Desenvolvimento
SedNet Soluções
(35)3471-9381

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 not set this attribute, I get values with strange strings that 
looks like UTF-8 sequences.

Is they're no strict standard for URI encoding ? Is tomcat servlet API 
wrong about this ?

Nico.
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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[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 request"

In Websphere 5.0.2, getRequestURL() allways return the JSP layout URL. I 
did not find any fix for this on IBM site.

Do you know any way in Websphere 5.0.2 to know the original URL or URI 
used to access the webapp ?

Nico.
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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] getRequestURL

2005-02-04 Thread Nicolas De Loof
Thnaks for link,
This doesn't tell me why tomcat getRequestURL() returns "original" URL
and Websphere impl return "current request" URL (!= from original after 
a forward)

I've used a turnaround by addind a filter that stores (orinigal) 
requestURL in request scope.

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 PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: Struts Users Mailing List 
Subject: [OT] getRequestURL
Date: Fri, 04 Feb 2005 09:44:01 +0100
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by 
mc7-f31.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Fri, 4 Feb 
2005 00:44:21 -0800
Received: (qmail 83530 invoked by uid 500); 4 Feb 2005 08:44:10 -
Received: (qmail 83515 invoked by uid 99); 4 Feb 2005 08:44:10 -
Received: pass (hermes.apache.org: local policy)
Received: from MXEPAR01.capgemini.com (HELO mxepar01.capgemini.com) 
(194.3.247.82)  by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 04 Feb 
2005 00:44:08 -0800
Received: from mxipar01.capgemini.com (prvmta2 [194.3.224.82])by 
mxepar01.capgemini.com (8.12.11/8.12.11) with ESMTP id 
j148i3Q1014790for ; Fri, 4 Feb 2005 09:44:04 
+0100 (MET)
Received: from prvmta2.capgemini.com (localhost [127.0.0.1])by 
mxipar01.capgemini.com (8.12.11/8.12.11) with ESMTP id 
j148i3PB009391for ; Fri, 4 Feb 2005 09:44:03 
+0100 (MET)
Received: from pasteur2.capgemini.fr (smtp.capgemini.fr 
[10.67.1.90])by prvmta2.capgemini.com (8.12.11/8.12.11) with ESMTP id 
j148i209009380for ; Fri, 4 Feb 2005 09:44:03 
+0100 (MET)
Received: from pasteur.capgemini.fr (localhost [127.0.0.1])by 
pasteur2.capgemini.fr (8.12.10/8.12.10) with ESMTP id 
j148i2MH002196for ; Fri, 4 Feb 2005 09:44:03 
+0100 (MET)
Received: from vasnmail.telecom.capgemini.fr ([10.67.188.21])by 
pasteur.capgemini.fr (8.12.10/8.12.10) with SMTP id j148i2Dd002192for 
; Fri, 4 Feb 2005 09:44:02 +0100 (MET)
Received: from [10.67.191.47] by vasnmail.telecom.capgemini.fr 
(SMI-8.6/SMI-SVR4)id JAA06672; Fri, 4 Feb 2005 09:47:41 +0100
X-Message-Info: JGTYoYF78jGj2Hp8idRl9DlBwN0swpe1aZdZNyUn+dA=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Subscribe: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:user@struts.apache.org>
List-Id: "Struts Users Mailing List" 
Delivered-To: mailing list user@struts.apache.org
X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=
X-Spam-Check-By: apache.org
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: fr, en
X-imss-version: 2.019
X-imss-result: Passed
X-imss-scores: Clean:99.9 C:2 M:3 S:5 R:5
X-imss-settings: Baseline:1 C:1 M:1 S:1 R:1 (0. 0.)
X-Virus-Checked: Checked
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 04 Feb 2005 08:44:21.0115 (UTC) 
FILETIME=[B8772CB0:01C50A95]

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

In Websphere 5.0.2, getRequestURL() allways return the JSP layout 
URL. I did not find any fix for this on IBM site.

Do you know any way in Websphere 5.0.2 to know the original URL or 
URI used to access the webapp ?

Nico.
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,  you are not authorized to read, print, 
retain, copy, disseminate,  distribute, or use this message or any 
part thereof. If you receive this  message in error, please notify 
the sender immediately and delete all  copies of this message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
--

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 is a design smell of the presentation layer.

My suggestion would be to refactor these items down to the
'business-layer' and then have your actions put the results of that
layer into the form/display bean.

Then the .jsp could just look like 

There may be more to this with your particular site, but that's a
first off-the-cuff guess.

hth,


On 2/8/06, Keith Fetterman <[EMAIL PROTECTED]> wrote:

 


We are converting old JSP pages to Struts and JSTL and I am running into
a problem.  On the old JSP pages, we have some calls to static methods
in scriptlets and runtime expressions.  On the new JSP pages, we have
disabled scriptlets and runtime expressions.  Here is an example:

The old code will have an expression like:
<%= OrderRulesBean.getSmallOrderFeeLimit() %>

What is the best way (best practice or easiest to implement) to access
static methods in the JSP pages without resorting to runtime expressions?
   



--
Keith Sader
[EMAIL PROTECTED]
http://www.saderfamily.org/roller/page/ksader
http://www.jroller.com/page/certifieddanger

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 prints the text instead, is there any
way around this?




Regards
Robert A


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  


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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 ${
item.link} returns a key only.

Can some one give an insight.

Thanks,


--
Vinit Sharma

  


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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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







You cannot use tags as attribute values like this. You need to use scriptlet
code.




I think you could accomplish the same using jstl, but I haven't used that
myself, so somebody else explain what's wrong with the last example you
sent. (Besides the obvious missing equal sign, which I'm guessing is a
typo.)


  

" />

Regards
Neil Meyer




Kjersti

  


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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 uri="http://struts.apache.org/tags-bean-el"; prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html-el"; prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic-el"; prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles-el"; prefix="tiles" %>
...

All my JSPs includes this "taglibs.jsp" :
<%@ include file="/WEB-INF/jsp/taglibs.jsp" %>

Using this, migration to a servlet 2.4 container will not require any 
change to my JSPs, only to make the "taglibs.jsp" target standard Struts 
tags, as the container will handle EL itself.


Nico.

Neil Meyer a écrit :

Hi All,

It worked the following way. 




I tried the same with the  but it did not work so the EL works
fine.

Thanks for all your help.

Regards
Neil Meyer

-Original Message-
From: Kjersti Berg [mailto:[EMAIL PROTECTED] 
Sent: 12 April 2006 12:54 PM

To: Struts Users Mailing List
Subject: Re:  Properties

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







You cannot use tags as attribute values like this. You need to use scriptlet
code.




I think you could accomplish the same using jstl, but I haven't used that
myself, so somebody else explain what's wrong with the last example you
sent. (Besides the obvious missing equal sign, which I'm guessing is a
typo.)


  

" />

Regards
Neil Meyer




Kjersti

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  


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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Properties

2006-04-12 Thread Nicolas De Loof


http://struts.apache.org/struts-doc-1.2.7/faqs/struts-el.html

EL-tags are similar to standard ones, but without functions that JSTL 
supports, like the  /  tag for example.


Neil Meyer a écrit :

Ok, I'm still working with the standard ones as well. I also use a include
page where all 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



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 uri="http://struts.apache.org/tags-bean-el"; prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html-el"; prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic-el"; prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles-el"; prefix="tiles" %>
...

All my JSPs includes this "taglibs.jsp" :
<%@ include file="/WEB-INF/jsp/taglibs.jsp" %>

Using this, migration to a servlet 2.4 container will not require any 
change to my JSPs, only to make the "taglibs.jsp" target standard Struts 
tags, as the container will handle EL itself.


Nico.

Neil Meyer a écrit :
  

Hi All,

It worked the following way. 




I tried the same with the  but it did not work so the EL works
fine.

Thanks for all your help.

Regards
Neil Meyer

-Original Message-
From: Kjersti Berg [mailto:[EMAIL PROTECTED] 
Sent: 12 April 2006 12:54 PM

To: Struts Users Mailing List
Subject: Re:  Properties

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




  

You cannot use tags as attribute values like this. You need to use


scriptlet
  

code.




I think you could accomplish the same using jstl, but I haven't used that
myself, so somebody else explain what's wrong with the last example you
sent. (Besides the obvious missing equal sign, which I'm guessing is a
typo.)


  


" />

Regards
Neil Meyer

  

Kjersti

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



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,  you are not
authorized to read, print, retain, copy, disseminate,  distribute, or use
this message or any part thereof. If you receive this  message in error,
please notify the sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  


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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 F) or (G and H)

I have to write an ugly : (A and B) or ((C and D) or ((E and F) or (G 
and H)))

doesn't look so ugly here, but A, B, C... are themself long lines

Is there any way to enhance walidwhen antlr grammar in future version to 
support non braces expressions ?


Nico.

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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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. myBeanValue bean in 
page scope is not impacted

 checks the bean in page scope, witch equals 
"1".

To solve this, you may :

- use scriptlet, not logic tag, to check script variables (NOT RECOMENDED) :
 <% if ("1".equals(myBeanValue)) { %> ...<% } %>

- reuse  to change myBeanValue, but be carreful some servlet 
container don't accept multiple use of this tag with the same id, -> so NOT RECOMENDED

- not use scriptlets anymore ! Change myBeanValue by using tags, especially use 
EL struts tags and JSTL :
 
 ...
 
 ...
 
   ...
   ...



Nico.


Aymeric Alibert a écrit :


Do you have the struts-bean tag library defined in your jsp:?
Something like <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

Aymeric.

On 10/7/05, starki78 <[EMAIL PROTECTED]> wrote:
 


Hi, we have a strange Problem
with logic:equal

Look at the following code:


//--> first we create a bean



//--> changing the value is this possible in the way???

<% myBeanValue = "2"; %>


// tests with the logic:equals tags


is equal



is notequal



After running the jsp we are getting the result= is equal!!!

But Why?? Is it not possible to redefine the variable
in the way that we try this in the example!
What makes us even more worried is that
when we debug, it neither jumps in the first nor
in the second logic:equal tag.

Please help me!

Nice Greetings
Starki














-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   



 



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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 to go back to page 1. How to configure my 
action-mapping for this as I only have one "input" attribute, without 
paging support ?


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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 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 to go back to page 1. How to configure my
action-mapping for this as I only have one "input" attribute, without
paging support ?
   



Have you tried this:
http://struts.sourceforge.net/strutsdialogs/wizardaction.html
Even if you will not use WizardAction, here is the tip: display all
wizard pages from a single action. This way a user won't be able to
navigate to arbitrary page.

Michael.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 http://www.backbase.com for an Ajax framework.

On 11/8/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
 


Far be it from me to push my own creation...

http://javawebparts.sourceforge.net

Go into the javadocs and look at the javawebparts.taglib.ajaxtags package.
This isn't the AjaxTags you may have heard of lately, they are two
separate projects that just happen to have the same name.  I think it's
reasonable to say that this AjaxTags is a bit different from most of the
other Ajax toolkits/taglibs/whatever out there, but folks might like what
they find here (many do already!).  If it seems interesting, I recommend
downloading the cookbook and checking out the examples there.  The recipes
in there are simpler than what you'll find in the Java Web Parts sample
app, much mroe focused, and can even be used as-is.

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

On Tue, November 8, 2005 10:24 am, David Gagnon said:
   


Hi all,

   Sorry for the OT guys.  I'm looking for a good AJAX framework.  I
haven't found one under apache.org.  Is there one?  If not is there one
who is more popular/cool/good that other?

Thansk for your help!!

Best Regard
/David



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   




--
http://www.quidprocode.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



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,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   >