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
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
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
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
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
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
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
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
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
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,
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Can it be changed?
Frank Russo
Developer ▪ Financial Services Division
SAS® … THE POWER TO KNOW®
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
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
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
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[
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)
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
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
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
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:
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
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
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
47 matches
Mail list logo