Confusing with convention plugin

2009-07-08 Thread Leegorous
Hi, I'm new here. I follow the http://struts.apache.org/2.x/docs/convention-plugin.html Some examples are not working in my case. like the simplest one, no action exist, always throws java.lang.IllegalArgumentException: The index() is not defined in action class

RE: using ajaxanywhere and struts

2009-07-08 Thread dusty
The nice thing about AjaxFrameworks is that they are really Struts agnostic. I would go with JQuery. I think the learning curve is low and it has a lot of momentum. It may not integrate with Struts 1 directly but what you learn will be applicable with other frameworks as well. The toughest

Re: help please

2009-07-08 Thread taj uddin
we are using struts2.0 and xworks2.0.6 so your solutrion does not apply for us. --- On Tue, 7/7/09, Wes Wannemacher w...@wantii.com wrote: From: Wes Wannemacher w...@wantii.com Subject: Re: help please To: Struts Users Mailing List user@struts.apache.org Date: Tuesday, July 7, 2009, 9:29 AM

dynamic return when validation failed

2009-07-08 Thread mailtolouis2020-struts
Hello, I'm new to struts2, and learning the validation in struts 2 at the moment. I'm not able to get the validation work in the way I want in the webflow (or wizard kind of page) design. Everytime when validation failed, it always return to INPUT page, I wondering is there a way I can tell

AW: [S2.1.2] sx:div targets AKA sx:a targets

2009-07-08 Thread Jan Fröhlich
Martin Musachy, thank you for your replies. @Martin, sorry that I couldn't make it that clear - dialogContainer is a div that is embedded in my page. @Musachy I did some more research, and I guess I can't solve it in any way. If my action returns prompt (tiles) it works like a charm and

RE: link to stylesheet in jsp doesn't work

2009-07-08 Thread Martin Gainty
correct you want to determine why your action is moving causing all of your relative paths to 404 btw: using absolute paths always works Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist

Re: Commercial framework based on struts2.

2009-07-08 Thread musomesa
Are you not mixing Struts 1 and Struts 2 concepts?  Chris -Original Message- From: Martin Gainty mgai...@hotmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Tue, Jul 7, 2009 2:26 pm Subject: RE: Commercial framework based on struts2. majority of

RE: AW: [S2.1.2] sx:div targets AKA sx:a targets

2009-07-08 Thread Martin Gainty
early here in EDT so I'll make the suggestion for the Action class changing the ContentType FileUploadAction.setContentType(application/octet-stream); mit freundlichen Grüßen Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist

Interceptors and Thread safety

2009-07-08 Thread ravi_eze
hi, http://struts.apache.org/2.x/docs/writing-interceptors.html says that interceptors are not thread safe, i wanted a deeper understanding on this. Case: 1. Suppose i have 2 action tags each having an interceptor (I) referenced in it 2. 2 action tags with interceptors referenced *twice in

Re: Interceptors and Thread safety

2009-07-08 Thread Jim Kiley
The easiest (I'm not saying best) way to ensure thread safety is to keep your data in method local variables, rather than in fields on the interceptor. Local variables are threadsafe. jk On Wed, Jul 8, 2009 at 9:08 AM, ravi_eze ravichand...@ivycomptech.comwrote: hi,

RE: Ajax Basics

2009-07-08 Thread Richard Gundersen
Thanks Dusty, and Martin I'm happily using JQuery now - and it looks great! Cheers Richard -Original Message- From: dusty [mailto:dustin_pea...@yahoo.com] Sent: 08 July 2009 05:06 To: user@struts.apache.org Subject: Re: Ajax Basics So I think straight JQuery is pretty easy,

Re: dynamic return when validation failed

2009-07-08 Thread Greg Lindholm
One way would be to pass a hidden parameter that tells you which page you came from. In page1.jsp form you could add: s:hidden name=page value=page1 / You would need to add a setter and getter in you action for page variable. Then your result could be: result

RE: Ajax Basics

2009-07-08 Thread Martin Gainty
good to hear..I have a build environment for that plugin in case you need it Cheers, Martin GMT+5 (this week) __ Note de déni et de confidentialité Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous

AW: AW: [S2.1.2] sx:div targets AKA sx:a targets

2009-07-08 Thread Jan Fröhlich
Hallo Martin, if I see that right, you speak german too - so lets make it a little easier - if not - just ignore the rest of the message! ;) Das Ganze ist ein bisschen komplizierter als das Ändern des Mime Types. Um das ganze mal ein bisschen detailierter zu umreißen - ist mir im englischen

RE: Ajax Basics

2009-07-08 Thread Richard Gundersen
Cheers Martin At the moment I'm not using any plugin for JQuery (although I noticed there are struts plugins for JSON etc). I'm just using the included javascript/css files. I'm an Ajax noob, but would love to use it more. Could you tell me what extra functionality the plugin version would

Re: Confusing with convention plugin

2009-07-08 Thread Musachy Barroso
do you have the REST plguin in your lib dir? musachy On Tue, Jul 7, 2009 at 11:26 PM, Leegorousleegor...@gmail.com wrote: Hi, I'm new here. I follow the http://struts.apache.org/2.x/docs/convention-plugin.html Some examples are not working in my case. like the simplest one, no action

Re: AW: [S2.1.2] sx:div targets AKA sx:a targets

2009-07-08 Thread Musachy Barroso
Trust me, it is not a language problem. musachy 2009/7/8 Jan Fröhlich jan.froehl...@infomotion.de: Hallo Martin, if I see that right, you speak german too - so lets make it a little easier - if not - just ignore the rest of the message! ;) Das Ganze ist ein bisschen komplizierter als das

Re: dynamic return when validation failed

2009-07-08 Thread mailtolouis2020-struts
Hi, Thanks for the reply, I try not to hardcode any file name in the jsp, prefer to put it in the struts config file, but don't know how to get the value out of it. Regards Louis From: Greg Lindholm greg.lindh...@gmail.com To: Struts Users Mailing List

Re: Confusing with convention plugin

2009-07-08 Thread Leegorous
The other examples are doing well. So. On Wed, Jul 8, 2009 at 10:48 PM, Musachy Barrosomusa...@gmail.com wrote: do you have the REST plguin in your lib dir? musachy On Tue, Jul 7, 2009 at 11:26 PM, Leegorousleegor...@gmail.com wrote: Hi, I'm new here. I follow the

Re: Struts 2 Validation

2009-07-08 Thread Robson Rodrigues
Someone can solve my problem? the validator always say the validation failed :( Robson Rodrigues wrote: Hello People, i´m using the struts 2 in a project and i´m with a problem on the validation. When i try validate a form, the struts say the validation failed, even when the field

Re: dynamic return when validation failed

2009-07-08 Thread Greg Lindholm
There is nothing in a request that will tell you which page you came from unless you put it there (as with the hidden parameter). If you don't like that then use the multiple actions so the action name tells you where the request came from (and where to go back). On Wed, Jul 8, 2009 at 11:05

AW: AW: [S2.1.2] sx:div targets AKA sx:a targets

2009-07-08 Thread Jan Fröhlich
Hi musachy, oops - I thought I sent the mail just to Martin. :D However with that mail I just wanted to explained to him, what my problem is - cause I thought he might have misunderstood what I mean. What I think is, that there is no way to achieve what I want to do. Guess that's what you are

caching Java objects

2009-07-08 Thread Mitch Claborn
What is the preferred method of caching arbitrary Java objects locally in a Struts application? I've been making my actions implement ApplicationAware and storing objects in that Map. (I think this comes from the ServletContext?) Is that the best way or is there something else? Mitch

Re: dynamic return when validation failed

2009-07-08 Thread Dale Newfield
Greg Lindholm wrote: There is nothing in a request that will tell you which page you came from unless you put it there (as with the hidden parameter). While this is mostly true, it's not 100% true. HTTP has a referer (yes, misspelled in the spec) field so most of the time you can know from

Re: dynamic return when validation failed

2009-07-08 Thread Greg Lindholm
The referer header will contain the URL of the last request, which will be the action URL not the jsp page that rendered the result. So this wouldn't help the OP if I understood his problem. On Wed, Jul 8, 2009 at 11:50 AM, Dale Newfield d...@newfield.org wrote: Greg Lindholm wrote: There is

Re: caching Java objects

2009-07-08 Thread Oscar Alvarez
Hi... It depends on what the objects mean on your system... exist ApplicationAware, SessionAware and RequestAware interfaces... You decide what to use in your design. HTH 2009/7/8 Mitch Claborn mi...@claborn.net What is the preferred method of caching arbitrary Java objects locally in a

Re: dynamic return when validation failed

2009-07-08 Thread Dale Newfield
Greg Lindholm wrote: The referer header will contain the URL of the last request, which will be the action URL not the jsp page that rendered the result. So this wouldn't help the OP if I understood his problem. I think you misunderstand what the referer field contains. It'll be the url that

Re: dynamic return when validation failed

2009-07-08 Thread mailtolouis2020-struts
what I mean is since in the action I already define the result, which has the jsp name, if struts2 provide a way that I can get this info, then I can set it to ${input} easily. E.g if there is something like .getResult(page1) and it give me the value /WEB-INF/pages/page1.jsp then this

dynamic tiles configuration in struts1.2.x?

2009-07-08 Thread jo_atman
Folks, I have an existing project which makes heavy use of tiles definitions for pages. now there's a requirement to change the pages shown based on the user. Any ideas on how to do this would be greatly appreciated. I would of course prefer not to create a static tiles definition for each page

Re: dynamic return when validation failed

2009-07-08 Thread Greg Lindholm
Greg Lindholm wrote: The referer header will contain the URL of the last request, which will be the action URL not the jsp page that rendered the result. So this wouldn't help the OP if I understood his problem. I think you misunderstand what the referer field contains. It'll be the url

Re: dynamic tiles configuration in struts1.2.x?

2009-07-08 Thread Antonio Petrelli
2009/7/8 jo_atman nth...@yahoo.com: I have an existing project which makes heavy use of tiles definitions for pages. now there's a requirement to change the pages shown based on the user. Any ideas on how to do this would be greatly appreciated. I would of course prefer not to create a static

Re: dynamic return when validation failed

2009-07-08 Thread Oscar Alvarez
Hi... Try to get the Ian Roughley's Starting Struts2 online ebook for free, and study PRODUCTIVITY TIPS - Re-Using Action Configurations... and see if there are some other tips for you. HTH 2009/7/8 Greg Lindholm greg.lindh...@gmail.com Greg Lindholm wrote: The referer header will

Re: dynamic return when validation failed

2009-07-08 Thread Oscar Alvarez
2009/7/8 Oscar Alvarez oialva...@gmail.com Hi... Try to get the Ian Roughley's Starting Struts2 online ebook for free, and study PRODUCTIVITY TIPS - Re-Using Action Configurations... and see if there are some other tips for you. And of course PRODUCTIVITY TIPS - Use Pattern Matching

Re: dynamic return when validation failed

2009-07-08 Thread Dale Newfield
Greg Lindholm wrote: Not sure why you think I don't understand referer. I already quoted the bits that illustrate this perceived misunderstanding, but since you apparently want me to be more specific: Greg Lindholm wrote: The referer header will contain the URL of the last request It

How is the max file size controlled for file uploads in Struts 1.3.8?

2009-07-08 Thread Frank Russo
Can it be changed? Frank Russo Developer ▪ Financial Services Division SAS® … THE POWER TO KNOW®

RE: How is the max file size controlled for file uploads in Struts 1.3.8?

2009-07-08 Thread Martin Gainty
FileUploadInterceptor has a setMaximumSize(Long size) method http://struts.apache.org/2.1.2/struts2-core/apidocs/org/apache/struts2/interceptor/FileUploadInterceptor.html hth Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de

Re: dynamic return when validation failed

2009-07-08 Thread Greg Lindholm
Dale Newfield d...@newfield.org wrote: Greg Lindholm wrote: Not sure why you think I don't understand referer. I already quoted the bits that illustrate this perceived misunderstanding, but since you apparently want me to be more specific: Actually I just wanted to move off the whole

Re: Struts 2 Validation

2009-07-08 Thread Robson Rodrigues
People, If someone want help me about my university project, here is my e-mail: robsonsil...@gmail.com . I can send to you the entire projcect. This project is about control of stock and MRP. I´m using Struts2, Hibernate and MYSQL. It is separate on three layers with MVC. Robson Rodrigues

RE: Struts 2 Validation

2009-07-08 Thread Martin Gainty
you are taking this course to learn about J2EE apps? did you even read the email i sent you on setting up min and max params field name=integerValidatorField field-validator type=int param name=min1/param param name=max10/param message![CDATA[

Re: How is the max file size controlled for file uploads in Struts 1.3.8?

2009-07-08 Thread Paul Benedict
Struts 1.3 does control when the file upload size hits a limit. The controller element has a @maxFileSize attribute: http://applegrew.blogspot.com/2008/10/struts-1-config-file-reference.html Paul 2009/7/8 Martin Gainty mgai...@hotmail.com: FileUploadInterceptor has a setMaximumSize(Long size)

Re: Commercial framework based on struts2.

2009-07-08 Thread Wes Wannemacher
On Wednesday 08 July 2009 00:00:49 dusty wrote: I know a guy who knows a guy that ported Icefaces to Struts2 + stuff you probably need and don't know it. He even has a ponytail. He wants eleventy thousand dollars. sharath wrote: Dear All, I'm looking for chimerical framework

RE: How is the max file size controlled for file uploads in Struts 1.3.8?

2009-07-08 Thread Martin Gainty
i couldnt locate the 1.3.8 distro..i was assumining EOLed? also there was no maxFileSize available in 2.1.6 tree? could you confirm that maxFileSize was dropped or deprecated? in the meanwhile struts2 users try specifying MaximumSize as a interceptor=ref param e.g. interceptors interceptor

RE: Commercial framework based on struts2.

2009-07-08 Thread Martin Gainty
From: w...@wantii.com To: user@struts.apache.org Subject: Re: Commercial framework based on struts2. Date: Wed, 8 Jul 2009 21:37:24 -0400 On Wednesday 08 July 2009 00:00:49 dusty wrote: I know a guy who knows a guy that ported Icefaces to Struts2 + stuff you probably need and don't

RE: Commercial framework based on struts2.

2009-07-08 Thread dusty
JSF programming requires a ponytail, so when in Rome.In order to really get inside the head of The Fail, you use a random XML document generator and generate 10,000 files and then try to wrestle that into a functioning web app. mgainty wrote: From: w...@wantii.com To:

Re: Confusing with convention plugin

2009-07-08 Thread dusty
Let the record the response was non-responsive. Struts is trying to call index() on your action. Since you likely don't have index() in your action it seems likely that the REST plugin is in your path and is trying to auto-map a URL to the index() method of a registered Controller. So lets

Re: caching Java objects

2009-07-08 Thread dusty
For stuff like data dictionary lists, or other random stuff I don't need to reload I will initialize on startup and store in the servletContext. I will use EhCache for handling cache of model objects when I have a lot of reads and want to improve performance when there are lots of things. I

exceute() method in action class didn't called

2009-07-08 Thread jayadevan
hi all I am using struts 1.1 for my accadamic project . My exceute() method in action class did n't called . but the instance of action class created struts - config.xml ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts