[s2] problem with Tiles in 2.0.5 Showcase App

2007-02-12 Thread Sébastien LABEY
Hi, I can not make Tiles work with the 2.0.5, and I have the same problem with the Showcase app bundled with this version. It is exactly the same log : org.apache.jasper.JasperException: /common/layoutTemplate.jsp(8,9) Aucun tag attribute dans la librairie de tag importée avec le préfixe tiles

Re: [S2] forwarding values from Interceptor to Action

2007-02-10 Thread Sébastien LABEY
Hi Dave I finally found quite the same solution (but without the interface control) , and it works great. Thank you for your answer. Sebastien On 2/9/07, Dave Newton [EMAIL PROTECTED] wrote: --- Sébastien LABEY [EMAIL PROTECTED] wrote: I would like to forward some values from the interceptor

[S2] forwarding values from Interceptor to Action

2007-02-09 Thread Sébastien LABEY
Hi all, I've already asked for this problem, but I did not have any answer, I think my explanation was not very clear... I have an interceptor that makes some controls and in the case these controls are not OK, the interceptor redirects to a special action. I would like to forward some values

[S2] setting values from Interceptor to Action

2007-02-06 Thread Sébastien LABEY
Hi all experts, I've the following problem : I have an Interceptor whose goal is to check if the user is logged and do some controls. If the user is not logged, the Interceptor returns to the login page, and after having logged-in the user may be redirect to the action he asked before the

[S2] User authentication best practice

2007-01-31 Thread Sébastien LABEY
Hi all, I would like to know if S2 provides a solution to manage user authentication. I also would like to know if someone could lead me to best practice for user creation / authentication to a web application. I'm worried about security after the user has logged in, because of the parameters

[S2] User authentication best practice (2nd time...)

2007-01-31 Thread Sébastien LABEY
Hi all (sorry for the previous unterminated mail), I would like to know if S2 provides a solution to manage user authentication. I also would like to know if someone could lead me to best practice for user creation / authentication to a web application. I'm worried about security after the user

Re: [S2] User authentication best practice (2nd time...)

2007-01-31 Thread Sébastien LABEY
requests, you can check the user object in the session to determine which user did log in. This works for S1, but I'd think that it's the same in S2. Cheers, Thorsten -Original Message- From: Sébastien LABEY [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 31, 2007 8:22 PM To: Struts

Re: [S2] User authentication best practice (2nd time...)

2007-01-31 Thread Sébastien LABEY
implementation, we kept the database queries and always retrived the business object, but then compared the business objects' user to the user logged in (and throw an Exception if they are not equal). HTH, Thorsten -Original Message- From: Sébastien LABEY [mailto:[EMAIL PROTECTED] Sent: Wednesday

Re: [S2] User authentication best practice (2nd time...)

2007-01-31 Thread Sébastien LABEY
management system; S2 is one of its many mvc options even if you don't use appfuse it is a good source to pick up ideas about how to setup all the layers HTH Sébastien LABEY wrote: Hi all (sorry for the previous unterminated mail), I would like to know if S2 provides a solution to manage user

Re: [S2] ServletRequestInterceptor ParameterAware

2007-01-05 Thread Sébastien LABEY
PROTECTED] wrote: From: Sébastien LABEY [mailto:[EMAIL PROTECTED] I know that getParameters().get(myParamater) returns an array of objects, but isn't it supposed to return not only String[], but arrays of Objects depending on the type described (if described) for the parameter through getter

[S2] ServletRequestInterceptor ParameterAware

2007-01-04 Thread Sébastien LABEY
Hi all, I've experienced something that I think strange, but I would like to know if it is a normal behavior. I'm using Struts 2.0.1 with the default interceptors configuration. I have a generic Action that implements ParametersAware (and ServletRequestAware and SessionAware) and I have the

Re: [S2] ServletRequestInterceptor ParameterAware

2007-01-04 Thread Sébastien LABEY
Newton [EMAIL PROTECTED] wrote: From: Sébastien LABEY [mailto:[EMAIL PROTECTED] [...] when I use getParameters().get(id), I receive a String[]... getParameters is plural; it returns as many ids as it can in an array, even if there's just the one. Dave

Re: [S2] loading another configuration file

2006-12-17 Thread Sébastien LABEY
for ServletContextListener BTW, this is the approach Spring, MyFaces, and I imagine many other frameworks and applications use to load their data on startup. Don On 12/13/06, Sébastien LABEY [EMAIL PROTECTED] wrote: Thank you Don, In fact, I don't want to have the name of my properties file to be hard coded

[S2] loading another configuration file

2006-12-13 Thread Sébastien LABEY
Hi all, I'd like to load a file containing the parameters to connect to DB at the application startup. In the S2 documentation I read about the key initialization parameters (http://struts.apache.org/2.x/docs/webxml.html) and so I add the 2 lines init-param to my web.xml like this : filter

Re: [S2] loading another configuration file

2006-12-13 Thread Sébastien LABEY
/db.properties, then load it in your Java code via: Properties props = new Properties(); props.load(this.getClass ().getClassLoader().getResourceAsStream(/db.properties); and away you go... Don On 12/13/06, Sébastien LABEY [EMAIL PROTECTED] wrote: Hi all, I'd like to load a file containing the parameters

Re: [Struts2] problem with links and Firefox

2006-12-01 Thread Sébastien LABEY
for this problem? Thanks in advance. Sebastien Sébastien LABEY Division Immobilier RD IKOS 04.72.18.47.07 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 20, chemin du Randin - B1 - 69130 Ecully P Avant d'imprimer, ayez une pensée pour notre environnement

Re: [S2] configuring Tiles with Struts 2

2006-11-27 Thread Sébastien LABEY
Hi Kim, No, sorry, no resolution to this :-( I'm waiting for an answer. I hope David will have a solution soon... If ever you find something to help, could you post it? Thanks. Sebastien On 11/27/06, Kim [EMAIL PROTECTED] wrote: On 11/22/06, Sébastien LABEY sebastien.labey at gmail.com

Re: [S2] configuring Tiles with Struts 2

2006-11-22 Thread Sébastien LABEY
/struts/tiles/tiles-core/ Let me know if you need more info. David Sébastien LABEY wrote: Hi all, I've been trying for the past 2 days to configure Struts2 to work with tiles. In the Struts 2.0.1 release, I found the jar to deal with tiles that was not included in the Struts2.0.0-SNAPSHOT

Re: [S2] configuring Tiles with Struts 2

2006-11-22 Thread Sébastien LABEY
listener in the web.xml, Tomcat starts, my webapp works, but when I ask for a page build with tiles, I have a ClassDefNotFoundException on the TilesContext class... Maybe this can help you to help me ;-) Sebastien On 11/22/06, Sébastien LABEY [EMAIL PROTECTED] wrote: Hi David, Thank you

Re: [S2] configuring Tiles with Struts 2

2006-11-22 Thread Sébastien LABEY
Sorry : java.lang.NoClassDefFoundError: org/apache/tiles/TilesContext... On 11/22/06, Sébastien LABEY [EMAIL PROTECTED] wrote: David, I downloaded the struts2-core-2.0.2-SNAPSHOT-20061122.jar and the tiles-core-2.0-SNAPSHOT-20061122.jar as you told me in your previous mail, but it doesn't

[S2] configuring Tiles with Struts 2

2006-11-19 Thread Sébastien LABEY
Hi all, I've been trying for the past 2 days to configure Struts2 to work with tiles. In the Struts 2.0.1 release, I found the jar to deal with tiles that was not included in the Struts2.0.0-SNAPSHOT release ( struts2-tiles-plugin-2.0.1.jar), but in the end I can't resolve this error that is

Re: Tiles 2 configuration

2006-11-16 Thread Sébastien LABEY
where I can find it? Thank you very much. Sebastien On 11/15/06, Wendy Smoak [EMAIL PROTECTED] wrote: On 11/15/06, Sébastien LABEY [EMAIL PROTECTED] wrote: I don't understand how to configure Tiles2 (with Struts 2.0.0). I have downloaded a tiles-core-2.0-SNAPSHOT.jar in http://people.apache.org

Tiles 2 configuration

2006-11-15 Thread Sébastien LABEY
Hi all, I don't understand how to configure Tiles2 (with Struts 2.0.0). I have downloaded a tiles-core-2.0-SNAPSHOT.jar in http://people.apache.org/maven-snapshot-repository/org/apache/struts/tiles/tiles-core/2.0-SNAPSHOT/and put it in my /WEB-INF/lib directory (maybe, I should have renamed it

multi level indexed properties

2006-11-06 Thread Sébastien LABEY
Hi all, I need to display and submit a form with 3 levels of indexed properties. The 3 indexed properties are not constant in size. I have a form with a MyObject1[] array with getters and setters for indexed properties. MyObject1 object has a List of MyObject2 objects and MyObject2 has a List of

Re: [Struts2] manual Token management : always possible?

2006-10-16 Thread Sébastien LABEY
+and+Wait+Interceptor HTH, Ted. * http://www.husted.com/struts/ On 10/13/06, Sébastien LABEY [EMAIL PROTECTED] wrote: Hi, Is it always possible with Struts2 to manage the Token manually with saveToken(), resetToken().. ? I'm trying to upgrade from Struts1.2.8 to Struts2.0, and I would like

[Struts2] manual Token management : always possible?

2006-10-13 Thread Sébastien LABEY
Hi, Is it always possible with Struts2 to manage the Token manually with saveToken(), resetToken().. ? I'm trying to upgrade from Struts1.2.8 to Struts2.0, and I would like not to modify all the existing (and working) code... I've seen there is a TokenTag to put a token (into request I suppose)

Re: [Struts2] reading the ResultConfig parameters...

2006-10-12 Thread Sébastien LABEY
OK I'm a little surprised because so many parameters are defined with constants, but I will do it with location. Thanks On 10/11/06, Don Brown [EMAIL PROTECTED] wrote: I don't believe there is a constant for the location string; just use location :) Don On 10/11/06, Sébastien LABEY [EMAIL

Re: [Struts2] generating ActionErrors in the Action?

2006-10-11 Thread Sébastien LABEY
PROTECTED] wrote: From: Sébastien LABEY [mailto:[EMAIL PROTECTED] But with Struts 2, I cannot find how to build these ActionErrors / ActionError... ActionSupport exposes getFieldErrors for access to the field-specific map of errors (key: field name, value: *List* of String error msgs

[Struts2] reading the ResultConfig parameters...

2006-10-11 Thread Sébastien LABEY
Hi, I would like to read the parameters of a ResultConfig. But I can't find the constant for the parameter location... Someone could guide me? Thanks. Sebastien

[Struts2] scope attribute for Action configuration in struts.xml file

2006-10-11 Thread Sébastien LABEY
Hi, I was used to specify a scope (request or session) for in the action configuration in struts-config.xml with struts1.x, and I used it to know where to store some parameters. So my struts-config.xml was like this : action path=/login type=xxx.xxx.LoginAction

Re: [Struts2] scope attribute for Action configuration in struts.xml file

2006-10-11 Thread Sébastien LABEY
[EMAIL PROTECTED] wrote: From: Sébastien LABEY [mailto:[EMAIL PROTECTED] I was used to specify a scope (request or session) for in the action configuration in struts-config.xml with struts1.x, and I used it to know where to store some parameters. My understanding (as a Struts2 n00b

[Struts2] generating ActionErrors in the Action?

2006-10-10 Thread Sébastien LABEY
Hi, I was using Struts 1.x before and I was used to generate ActionErrors (that contains ActionError) from the errors returned by my 3rd party side (my own framework to access DB). But with Struts 2, I cannot find how to build these ActionErrors / ActionError... what are now the class to deal