[S2] Problem showing errors message with xxx-validation.xml

2008-10-14 Thread Juanjo Cuadrado
Hi, I'm having problems to show a error message with validation xml file. This is the code in my struts.xml /pages/opciones.jsp The action class is this: public class TestAction { private String dniParticipante; public String execute() { return A

Re: Any way to disable autowire on struts 2 actions?

2008-10-14 Thread Lukasz Lenart
2008/10/14 Peter Butler <[EMAIL PROTECTED]>: >>http://struts.apache.org/2.0.11/docs/spring-plugin.html > > Thanks for the link. I did try this, but these are all still autowire > options (just using different methods of autowiring - by type, by > constructor, etc). There isn't an option here to dis

Re: Old tiles site

2008-10-14 Thread Alex Coles
On Tue, Oct 14, 2008 at 12:53 PM, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > 2008/10/14 Lance Java <[EMAIL PROTECTED]>: >> When I type in tiles2 into google, the first result is this page >> http://struts.apache.org/struts-sandbox/tiles/index.html > > But if you type "tiles 2" (notice the space)

Re: Old tiles site

2008-10-14 Thread Antonio Petrelli
2008/10/14 Lance Java <[EMAIL PROTECTED]>: > When I type in tiles2 into google, the first result is this page > http://struts.apache.org/struts-sandbox/tiles/index.html But if you type "tiles 2" (notice the space) the first result is the correct one :-D > It would have been nice if the old site h

How to setup package based on Struts2-REST-Showcase app

2008-10-14 Thread Haulyn R. Jason
Hi, all I test my application based on Struts2-REST-Showcase.2.1.2Beta app. Without any changes, it works well and looks pretty good. But I need to do something more, so I create struts.xml and set up some new Interceptors and packages. I want to reset the package of OrdersController. I mean I cre

How to configurate struts2 based on Struts2-REST-Showcase app?

2008-10-14 Thread Haulyn R. Jason
Hi, all I test my application based on Struts2-REST-Showcase.2.1.2Beta app. Without any changes, it works well and looks pretty good. But I need to do something more, so I create struts.xml and set up some new Interceptors and packages. I want to reset the package of OrdersController. I mean I cre

How to setup package based on Struts2-REST-Showcase app?

2008-10-14 Thread Haulyn Jason
Hi, all I test my application based on Struts2-REST-Showcase.2.1.2Beta app. Without any changes, it works well and looks pretty good. But I need to do something more, so I create struts.xml and set up some new Interceptors and packages. I want to reset the package of OrdersController. I mean I cre

Re: [S2] Problem showing errors message with xxx-validation.xml

2008-10-14 Thread Lukasz Lenart
2008/10/14 Juanjo Cuadrado <[EMAIL PROTECTED]>: > No... but this too I have tried it :( Are you extending you package from struts-default? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [S2] Problem showing errors message with xxx-validation.xml

2008-10-14 Thread Néstor Boscán
The way it worked for me was: 1.- You have to extend ActionSupport because it contains the fieldErrors, actionErrors attributes and the validation logic. 2.- I use dniParticipante 3.- You must have de validation and workflow interceptors configured 4.- You must have an "input" result because in ca

Re: Is there a way for *-validate.xml to validate specific methods instead of Action Ids?

2008-10-14 Thread Sébastien Domergue
hi, actually, you can name your validation file with the following pattern : --validation.xml where actionAlias is the name of the action used to call the actionClass. regards Sébastien Néstor Boscán a écrit : Hi Is there a way I can create action-method-validate.xml to validate specific me

Re: [S2] Problem showing errors message with xxx-validation.xml

2008-10-14 Thread Juanjo Cuadrado
Néstor, thank for you reply... but: I have it all like you say (I don't know what do you mean with "You must have de validation and workflow interceptors configured" I have the struts file by default, I haven't configured any interceptor. Have I to do it?). I have put the result "input" but alway

RE: Any way to disable autowire on struts 2 actions?

2008-10-14 Thread Peter Butler
>>> http://struts.apache.org/2.0.11/docs/spring-plugin.html >> >> There isn't an option here to disable autowiring >> (unless I'm missing something). > In struts.xml use full class names for Action not names from spring > xml config...all Actions will be create by internal Struts class factory. T

Re: Using tiles 2 with struts 1

2008-10-14 Thread Yannick Haudry
On Mon, Oct 13, 2008 at 6:27 PM, Lance Java <[EMAIL PROTECTED]> wrote: >> 2. Use (and probably fix) the Struts 1/Tiles 2 plugin: > This is what I'm after... thanks! I'm kind of in the same situation as you Lance. I've completed the migration to Tiles2 (struts1.3, Tiles2.0.6, struts/tiles2-plugin-sn

@Result annotation not working

2008-10-14 Thread Dan C.
Hi, I have an app built on struts 2.0.11.2, Tiles 2.0.6 and spring 2.5.5. Everything is currently configured with xml. I wanted to start moving as much as I could to zero configuration. The result annotations do not seem to get recognized. I did a simple change to 1 class to see if it works and he

Error 404: SRVE0190E: File not found:

2008-10-14 Thread Trinad
Hi, I have created a struts action which construts a json string in the server side,action class successfully returned json string in the response, but I am getting an Error 404: SRVE0190E: File not found: /Test.action Any Idea about this problem. I am using struts2 and appserver is websphere.

Images && Portlets

2008-10-14 Thread Torsten Krah
Hi. Is it possible with struts stable (2.0.11.2) - afaik there is no portletUrlType resource there - to render images or other binary content? At the moment i am using the "workaround" to configure the FilterDispatcher (which got this annoying shutdown bug ...) and using the "" hack. I guess t

RE: Any way to disable autowire on struts 2 actions?

2008-10-14 Thread Peter Butler
>> the recommendation is to use explicit >> configuration using either the Spring config file or Annotations. Why did >> the Struts team choose >> not to follow these recommendations? >I don't think so, you can setup Spring-plugin to use autowiring by >type not by name and also Struts will ask Sp

How to make validator framework call the input method

2008-10-14 Thread Néstor Boscán
Hi I'm using the validator frame in Struts 2.0.11.2. When the validator framework fails I need to call the input method to load some combo data. But the validator framework automatically calls the input result. If I chain that input result with the input method I loose the fieldErrors and actionEr

Referring an external directory from web container

2008-10-14 Thread vimala
Hello all, I am working in a java struts project with jboss as the application server. I want to copy photo files selected from a client location to a particular directory at server (I don't want to store photo files within war). I am thinking of creating a directory outside WEB-INF and make this

Re: Any way to disable autowire on struts 2 actions?

2008-10-14 Thread Adam Hardy
Peter Butler on 14/10/08 16:45, wrote: the recommendation is to use explicit configuration using either the Spring config file or Annotations. Why did the Struts team choose not to follow these recommendations? I don't think so, you can setup Spring-plugin to use autowiring by type not by name

locale formatted date input via textfield

2008-10-14 Thread Ketil Holden
Hi. I'm using a a textfield that maps to a date. That works fine for American style dates, however my locale (NO) uses dd.MM.. I've searched and searched for this but can't find an answer... I've checked that my Locale in fact is set to no-NO. The textfield maps to a java.util.Date type.

Re: Old tiles site

2008-10-14 Thread Antonio Petrelli
2008/10/14 Alex Coles <[EMAIL PROTECTED]>: > Its not possible to put a 301 Redirect in there? I guess we can, I will try, thanks! Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: How to allow to download several files in a zip in Internet Explorer

2008-10-14 Thread Lance Java
Try zos.flush() instead of close() It is not your responsibility to close the servlet output stream, it is the container's. 2008/10/13 Ariel <[EMAIL PROTECTED]> > Hi Everybody: > I 'm using struts 1.2 version, in my web application I have a chart where > the user can add several files that are lo

Re: Images && Portlets

2008-10-14 Thread Nils-Helge Garli Hegvik
It's not really at limitation of struts 2. The portlet spec (jsr168) does not specify support for "resources". Some containers implement å custom window state for this, but since it's not portable, it's not supported in the portlet plugin. So until the jsr286 plugin is ready, you have to do

Re: java mail: send two mail one "HTML" and one "TEXT" to the same user.

2008-10-14 Thread Leonidas Papadakis
Hi there, recently i requested something similar. Please check the below links : http://opensource.atlassian.com/confluence/spring/display/DISC/Sending+FreeMarker-based+multipart+email+with+Spring http://static.springframework.org/spring/docs/2.5.x/reference/mail.html If you need something sim

transition data

2008-10-14 Thread EM_1984
Hi, I have a problem, I havo a PersonManager class that is a list of people,how can pass PersonManager from one class to another? -- View this message in context: http://www.nabble.com/transition-data-tp19976627p19976627.html Sent from the Struts - User mailing list archive at Nabble.com. ---

RE: Any way to disable autowire on struts 2 actions?

2008-10-14 Thread Peter Butler
>> Is there any way to test Struts 2 actions in isolation by >> populating dependencies using JMock objects, or am I stuck with >> Struts' insistence on autowiring everything? > Did you try one of the Spring plugin wiring settings? >http://struts.apache.org/2.0.11/docs/spring-plugin.html Thanks

Re: How to setup package based on Struts2-REST-Showcase app?

2008-10-14 Thread Haulyn Jason
Oh, really? I am very very sorry, but I am not sure why I always got this: I thought something wrong with my smtp server or others. I am very very sorry, but every times I always got the follow response. I am not sure what's wrong. I am sorry to send too much duplicated mails. -

How to setup package based on Struts2-REST-Showcase app?

2008-10-14 Thread Haulyn R. Jason
Hi, all I test my application based on Struts2-REST-Showcase.2.1.2Beta app. Without any changes, it works well and looks pretty good. But I need to do something more, so I create struts.xml and set up some new Interceptors and packages. I want to reset the package of OrdersController. I mean I cre

Re: Any way to disable autowire on struts 2 actions?

2008-10-14 Thread Lukasz Lenart
2008/10/14 Peter Butler <[EMAIL PROTECTED]>: > Just a question on the design of this: Why is the Spring object factory > configured to use auto-wire? > From what I've read (both in the Spring documentation and other sources) this > is not recommended > practice because it makes applications harde

How to pass a tiles attribute into an s:url

2008-10-14 Thread 928572663
I need to be able to pass a tiles2 attribute down into a tag, something like this: But I am unable to find a syntax that will work correctly. Any ideas? Thanks, John - To unsubscribe, e-mail: [EMAIL PROTE

How to setup package based on Struts2-REST-Showcase app?

2008-10-14 Thread Haulyn R. Jason
Hi, all I test my application based on Struts2-REST-Showcase.2.1.2Beta app. Without any changes, it works well and looks pretty good. But I need to do something more, so I create struts.xml and set up some new Interceptors and packages. I want to reset the package of OrdersController. I mean I cre

Re: session based pojo as form variables

2008-10-14 Thread 928572663
Thank you Gabriel. It wasn't exactly what I was hoping for, but at least I know that will not work as I expected. Thanks, John Gabriel Belingueres wrote: Because the textfield name is actually firstName, and because you don't have a setFirstName(String) method in your action, the parameter

Re: How to setup package based on Struts2-REST-Showcase app?

2008-10-14 Thread Musachy Barroso
You don't need to send the same email every 10 mins, this is the 5th I get. musachy On Tue, Oct 14, 2008 at 10:20 AM, Haulyn Jason <[EMAIL PROTECTED]> wrote: > Hi, all > > I test my application based on Struts2-REST-Showcase.2.1.2Beta app. > Without any changes, it works well and looks pretty go

Basic Struts 2 Examples

2008-10-14 Thread Phillips, Bruce A
I've posted some very basic Struts 2 examples on my blog that others may find useful. I'm not a Struts 2 expert so if I've gotten something wrong, please let me know. You can start here to read the articles and view the examples: http://tinyurl.com/3p433v or visit my blog home page at

Old tiles site

2008-10-14 Thread Lance Java
When I type in tiles2 into google, the first result is this page http://struts.apache.org/struts-sandbox/tiles/index.html I had been using this as a reference until I discovered it was out of date and has moved here http://tiles.apache.org/index.html It would have been nice if the old site had tol

Re: [S2] Problem showing errors message with xxx-validation.xml

2008-10-14 Thread Juanjo Cuadrado
No... but this too I have tried it :( 2008/10/14 Lukasz Lenart <[EMAIL PROTECTED]> > 2008/10/14 Juanjo Cuadrado <[EMAIL PROTECTED]>: > > Hi, > > > > I'm having problems to show a error message with validation xml file. > > > > This is the code in my struts.xml > > > > >cla

Re: [S2] Problem showing errors message with xxx-validation.xml

2008-10-14 Thread Lukasz Lenart
2008/10/14 Juanjo Cuadrado <[EMAIL PROTECTED]>: > Hi, > > I'm having problems to show a error message with validation xml file. > > This is the code in my struts.xml > >class="es.mec.adesi.ctl.actions.solicitudes.TestAction"> >/pages/opciones.jsp > Is es

Is there a way for *-validate.xml to validate specific methods instead of Action Ids?

2008-10-14 Thread Néstor Boscán
Hi Is there a way I can create action-method-validate.xml to validate specific methods instead of Action IDs. We have a lot of Actions with many methods and is a real problem to configure the *-validate.xml because it will validate all methods (except those in excludeMethods but this configuration

Struts 2 actions executing twice

2008-10-14 Thread wskent
I am using struts 2.0.11 in JBoss 4.2 and with a debugger I am seeing the action executing twice. The first time the values submitted from the form show up as expected. In the second execution the values are all null. I am also seeing this behavior when I deploy Struts2InAction.war from the book o

Re: Error 404: SRVE0190E: File not found:

2008-10-14 Thread Laurie Harper
Trinad wrote: Hi, I have created a struts action which construts a json string in the server side,action class successfully returned json string in the response, but I am getting an Error 404: SRVE0190E: File not found: /Test.action Any Idea about this problem. I am using struts2 and appserver

Hibernate and Struts

2008-10-14 Thread Anoop
Hi, We are looking forward to integrating struts with hibernate in our web application project. Could you guide us on how to to integrate them. I tried the hibernate plugin as recommended on the hibernate website, however that throws a null pointer exception(when i try to instantiate a session) whe

RE: Is there a way for *-validate.xml to validate specific methods instead of Action Ids?

2008-10-14 Thread Néstor Boscán
Yes but that's my point. If I have an Action with 5 methods with 5 different validations I have to create 5 different action aliases just to make the validation framework happy, makes no sense to me. Regards, Néstor Boscán -Mensaje original- De: Sébastien Domergue [mailto:[EMAIL PROTECTE

can not detect s:url tag when prints dynamically

2008-10-14 Thread Hardik Shah
hi i have used struts 2.0.11.2 and creating menu using yui(not metter what) when i put something like (this thing print in url) i could not understand what is problem help me -- View this message in context: http://www.nabble.com/can-not-detect-s%3Aurl-tag-when-pr

Re: How to pass a tiles attribute into an s:url

2008-10-14 Thread Antonio Petrelli
2008/10/14 928572663 <[EMAIL PROTECTED]>: > > > > > You can't nest a JSP tag into another. If "image" is a string, then you can do this: HTH Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: How to make validator framework call the input method

2008-10-14 Thread Lukasz Lenart
2008/10/14 Néstor Boscán <[EMAIL PROTECTED]>: > I'm using the validator frame in Struts 2.0.11.2. When the validator > framework fails I need to call the input method to load some combo data. But > the validator framework automatically calls the input result. If I chain > that input result with the