Re: Struts2 Tiles question

2007-08-24 Thread Ray Clough
Deploying Tiles in a S2 app is just like doing it in a completely Struts-free app. The Tiles site has instructions, but the last time I looked, they needed a lot of work. What you need to do, basically, is have the S2 result call SOME_TILE.tiles, and the Tiles Servlet, which is mapped to

How to access elements of server.xml at run-time

2007-08-24 Thread Brian Barnett
From within a Struts web app, is there a way to access the elements of server.xml at run-time, specifically the Connector element(s) information? Thanks, Brian Barnett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Struts2 POJO Forms

2007-08-24 Thread Piero Sartini
On Thursday 23 August 2007 23:43:40 Pavel Sapozhnikov wrote: Hi everybody. I remember in Struts1 we have those things ActionForms and when you submit a form everything gets copied to into a form in fact you can make your own form in Struts1. Is the same possible in Struts2 for instance I heard

Re: Struts2 POJO Forms

2007-08-24 Thread Laszlo Borsos
I also think about using Model-Driven interceptor. If some properties are in the action bean (e.g. hidden fields) and others in the model bean, will both be populated, because both object are found on the stack? If so, is the model object the upmost stack element? kuvera Piero Sartini írta: On

JAAS and S2 - how do they interact?

2007-08-24 Thread wild_oscar
Following up on my quest for Authentication and Authorization in web apps, I found out two approaches with JAAS. The first one is described here: http://www.jroller.com/tomdz/entry/using_jaas_with_struts_a http://www.jroller.com/tomdz/entry/using_jaas_with_struts_a and it basically involves

CN=Michaël LENEVEUT/OU=DEVELOPPEMENT/OU=GUNDER /O=ABW/C=FR is out of the office.

2007-08-24 Thread MLENEVEUT
Je serai absent(e) du 24/08/2007 au 12/09/2007.

struts-layout

2007-08-24 Thread Venu Madhav
Hi, am trying to use datagrid from struts-layout tags. While running the code am getting exception shown below javax.servlet.jsp.JspException: No getter method available for property datagrid for bean under name org.apache.struts.taglib.html.BEAN But i wrote setters and getters for

RE: Authentication and Authorization in S2

2007-08-24 Thread Arnaud Cogoluegnes
Just meant that I don't use other APIs/framework (JAAS, Acegi...) than what Struts 2 architecture offers. Of course I had to develop my own interceptors, but that's pretty straightforward. -Message d'origine- De : Alvaro Sanchez-Mariscal [mailto:[EMAIL PROTECTED] Envoyé : jeudi 23 août

Help needed in retrieving nested arraylists

2007-08-24 Thread Rajam T .
Hi My form Bean has an ArrayList say List1 which has objects of type Object1. The Object1 contains arraylist List2 which has objects of type Object2. The Object2 in turn contains an ArrayList List3 which has objects of type Object3. The Object3 has variables say v1, v2,v3 which are populated

Re: Struts2 POJO Forms

2007-08-24 Thread Piero Sartini
On Friday 24 August 2007 12:29:23 Laszlo Borsos wrote: If some properties are in the action bean (e.g. hidden fields) and others in the model bean, will both be populated, because both object are found on the stack? If so, is the model object the upmost stack element? I am not sure if both

Re: Struts2 Tiles question

2007-08-24 Thread Pavel Sapozhnikov
Hey Ray thanks. When you put that document together could you give me a link to it or what not. Thanks. On 8/24/07, Ray Clough [EMAIL PROTECTED] wrote: Deploying Tiles in a S2 app is just like doing it in a completely Struts-free app. The Tiles site has instructions, but the last time I

navigations inside tabbedPanel

2007-08-24 Thread Manuel Correa
Hey, I'm building one applications that have a lot of tabbedPanel. My questions is, I need to make some navigation inside the div's, but I only need that reload some part of the div, no all the page. Also when I have submit button for any form I need to show inside the div, the answer of the

rewrite must be declared for element type forward error

2007-08-24 Thread ian . blenk
Hi My app is using Struts 1.02 and I've moved it onto a Tomcat 5.5.23 and Java 5 platform, previous it worked fine on Java 1.4 and Tomcat 4.1 platform. Now I get the following error message, and one of my Logon Action Mappings doesn't work, the rest of the application runs fine though. Any

Re: Struts2 POJO Forms

2007-08-24 Thread Laszlo Borsos
Thank you. Actually that's exactly what I meant and what I need. Piero Sartini írta: On Friday 24 August 2007 12:29:23 Laszlo Borsos wrote: If some properties are in the action bean (e.g. hidden fields) and others in the model bean, will both be populated, because both object are found on

effect of removing commons-logging from classpath?

2007-08-24 Thread Ashish Kulkarni
Hi I have a struts 1.2.4 application, and i have log4j.jar and commons-logging.jar in classpath In my application i use log4j for logging, i wanted to know what would be effect of removing commons-logging.jar file from classpath

setting an option as selected in select tag

2007-08-24 Thread himanshu ranavat
Hi, Consider I have an s:select tag which has the entries a,b,c,d,e in that order. the select tag is populated by a method wich returns a string array containing a-e. the name of the string array is assigned to the list attribute of s:select . now I set 'c' as selected by explicitly specifying

Re: effect of removing commons-logging from classpath?

2007-08-24 Thread Paul Benedict
Impossible. Struts is built with Commons Logging. On 8/24/07, Ashish Kulkarni [EMAIL PROTECTED] wrote: Hi I have a struts 1.2.4 application, and i have log4j.jar and commons-logging.jar in classpath In my application i use log4j for logging, i wanted to know what would be effect of removing

Re: effect of removing commons-logging from classpath?

2007-08-24 Thread Ashish Kulkarni
Hi How do i configure sturts logging then, i have a log4j.properties file where i set my application logging, can i use the same for struts logging Ashish On 8/24/07, Paul Benedict [EMAIL PROTECTED] wrote: Impossible. Struts is built with Commons Logging. On 8/24/07, Ashish Kulkarni [EMAIL

Re: effect of removing commons-logging from classpath?

2007-08-24 Thread Paul Benedict
Just drop a log4.properties or log4j.xml in the root of your classpath. On 8/24/07, Ashish Kulkarni [EMAIL PROTECTED] wrote: Hi How do i configure sturts logging then, i have a log4j.properties file where i set my application logging, can i use the same for struts logging Ashish On

Actions with same name but different packages namespaces

2007-08-24 Thread Alvaro Sanchez-Mariscal
Hi, Is it possible to have actions with the same name but different packages namespaces? package name=dashboard extends=hidra3-default action name=main result/WEB-INF/jsp/dashboard/main.jsp/result /action /package package name=search extends=hidra3-default action name=main

Re: Struts 2 and DWR

2007-08-24 Thread Oleg Mikheev
Néstor Boscán wrote: I created a code based on the WebWork code that can invoke a Struts 2 Action from DWR. You can invoke it just like the WebWork version and you can use DWRActionUtil.js. It does not do everything that the WebWorks code does, it invokes de Action method and returns the Action

Struts 2 and DWR

2007-08-24 Thread Néstor Boscán
Hi I created a code based on the WebWork code that can invoke a Struts 2 Action from DWR. You can invoke it just like the WebWork version and you can use DWRActionUtil.js. It does not do everything that the WebWorks code does, it invokes de Action method and returns the Action object. Hope

Re: effect of removing commons-logging from classpath?

2007-08-24 Thread Chris Pratt
I have a struts 1.2.4 application, and i have log4j.jar and commons-logging.jar in classpath In my application i use log4j for logging, i wanted to know what would be effect of removing commons-logging.jarfile from classpath Commons Logging isn't really a logger itself. It is a framework

DataGrid

2007-08-24 Thread Venu Madhav
hi, can anybody help me in creating struts data grid. The layout tags in jsp is unable to find getter method for datagrid bean. -- Regards, Venu madhav.Yelamanchili Developer, WCS Team, Miracle Software Systems, [EMAIL PROTECTED] Ph.No:+919963503613

S2 : Struts tags and scriptlets

2007-08-24 Thread j alex
Hi, How do we make variables set by struts tags available to scriptlets? . In Struts 1 , we could set an object using bean:define and access it within a scriptlet ? ; what's the equivalent for S2 ? In the app i'm converting to S2, there's a lot of scriptlet code and we are trying to retain that

RE: S2 : Struts tags and scriptlets

2007-08-24 Thread Crume, Adam
The best thing to do would be to get rid of the scriptlets. Barring that, though, you could use the Struts 2 set tag to set a request attribute, then in the scriptlet do something like this: % String myVar = request.getAttribute(myVar); % There's probably a faster way by accessing the

Re: Session problem

2007-08-24 Thread Dave Newton
--- MARollins [EMAIL PROTECTED] wrote: I'm having a problem whereby objects saved on the Session are visible to other sessions. For example, the login page saves a new User object on the session using session.put (I have a base class for all my Actions which implements SessionAware in

use the same validation file for two actions...

2007-08-24 Thread Manuel Correa
Hi, I need to know if I can use two validation file for two action but for the others methods use another. For example: I have the method save() , update() and delete(), I need to use the same validation file to save and update but for delete I need to use another one. Some knows ???

s2 equivalent of logic:messagesNotPresent

2007-08-24 Thread Pavel Sapozhnikov
Hey does anyone know which tag in struts2 would be equivalent to the tag logic:messagesNotPresent in struts1. Thanks. -- Pavel Sapozhnikov xFact, Inc [EMAIL PROTECTED]

Re: Session problem

2007-08-24 Thread MARollins
I am running everything from one machine, but access the app from different browsers in order to get different sessions (ie IE and Firefox). I have tried the second user from another machine and it didn't make any difference. The app also uses Spring, but I have configured this to give me a new

[S2] raw XML response

2007-08-24 Thread John Cartwright
Hello All, I'd like to simply return some text from a Action w/o redirecting to a page. I did this sort of thing in Struts1 by using the response's PrintWriter and returning null from the Action's execute method. From the documentation, I'd expected that a return type of xslt w/o the

Re: [S2] raw XML response

2007-08-24 Thread Chris Pratt
I'd like to simply return some text from a Action w/o redirecting to a page. I did this sort of thing in Struts1 by using the response's PrintWriter and returning null from the Action's execute method. You can do it exactly the way you did in Struts 1 (or mostly anyway). If you implement

Re: S2 : Struts tags and scriptlets

2007-08-24 Thread j alex
Yeah, i was also looking how to get it from valuestack ; Getting rid of scriptlets may be too much work, but i will definitely consider that. On 8/24/07, Crume, Adam [EMAIL PROTECTED] wrote: The best thing to do would be to get rid of the scriptlets. Barring that, though, you could use the

Re: S2 : loading dropdown from resource bundle

2007-08-24 Thread j alex
Resending... In S1, we used to have a servlet that loads the properties into VOs on startup, and we use that in the JSP. I'm thinking if we can get rid of this step completely and directly load the properties using S2 tags. Also, can we reload the properties without restarting the app? On

Re: ognl, url and text

2007-08-24 Thread JM
Sorted. Thanks Rene for the help. Rene Gielen wrote: s:url value=%{getText('anon.page.home.banner')}/ should do the trick. JM schrieb: Greetings, I want to get the text of an url from a resource bundle. I have the following test snippet from a jsp: s:text

Re: Session problem

2007-08-24 Thread Laurie Harper
You have some cross-talk somewhere in your code, by the sound of it. Take a look at any code that touches the session; you probably have something somewhere that's at the wrong scope (in application scope when it should be session/request, a Spring bean accidentally configured as singleton