quietly go GA?
Brad Cupit
LSU - University Information Systems
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
of the ContextLoaderServlet.
Brad Cupit
LSU - University Information Systems
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
you tried
WebApplicationContextUtils.getWebApplicationContext(sevletContext) ?
Brad Cupit
LSU - University Information Systems
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
to be accessed with a preceeding #
'elementInList' is not a property of the root object, so it does need to be
accessed with a preceeding #
[1] http://www.roseindia.net/tutorialhelp/comment/42997
Brad Cupit
LSU - University Information Systems
,
#innerList2:#valueList2}/
%-- end setup, for example only --%
%-- here's the code you'll really want --%
s:iterator id=innerList value=#listOfLists
s:iterator id=valueList value=#myMap[#innerList]
s:property value=#valueList/
br/
/s:iterator
/s:iterator
Brad
-POSIX-Regular-Expressions-for-Internationalized-Validation-td19844314.html#a19858027
Brad Cupit
Louisiana State University - UIS
want the value from Action1 rather than what's in the
request.
My question is: is there some reason why 'chain' appears where it does
in defaultStack? I'd like to move it later in the stack, after the
params interceptor, but is there a good reason not to do that?
Brad Cupit
Louisiana State
:-)
(note, OGNL 2.7+ can generate bytecode rather than use reflection, but from
what I understand, a different API must be used to get the benefits)
Brad Cupit
Louisiana State University - UIS
it. Then you'll have
one instance of Spring to manage all the beans, and the Struts 2
integration should work fine.
Hopefully you can edit the code in uk.co.prodia.prosoc.Config servlet!
Brad Cupit
Louisiana State University - UIS
on August 05, 2008 8:14 AM, doahh [EMAIL PROTECTED] wrote:
I didn't see your reply before I sent my last post.
You were absolutely correct and I must say that, looking
through that mass of config, well spotted.
Thanks for your help Bard.
Terrific!!!
Brad Cupit
Louisiana State University
)
Brad Cupit
Louisiana State University - UIS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
, you're not really going to care about this value, since
your Action is fully Spring managed, but if you telling it to autowire
by 'type' and it's picking 'name', that may be the symptom of something
else.
which version of struts and spring are you using?
Brad Cupit
Louisiana State University - UIS
include one Action
definition that you know doesn't work.
Any servlets, listeners, and filters in web.xml
And the Action bean definition in your spring config file.
By the way, if you have a struts.properties file, make sure none of its
settings conflict with what's in struts.xml
Brad Cupit
Louisiana
beta.
Brad Cupit
Louisiana State University - UIS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.
[1] see
http://struts.apache.org/2.0.11.2/docs/namespace-configuration.html#Name
spaceConfiguration-DefaultNamespace
or Struts 2 in Action, page 49, about half way down (the paragraph
under the NOTE).
Brad Cupit
Louisiana State University - UIS
with Validateable's validate() method
and the DefaultWorkflowInterceptor?
Even then, I guess I still don't understand why it is a method on
ActionSupport, if it was just a convention.
Brad Cupit
Louisiana State University - UIS
guess I still don't understand why it is a
method on ActionSupport, if it was just a convention.
So we didn't have to write our own if it didn't do
anything particularly special
Ah! Got it. I completely understand now.
Thank you very much for your enlightening response Dave!
Brad Cupit
{
return INPUT;
}
Brad Cupit
Louisiana State University - UIS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
://issues.apache.org/struts/browse/WW-2558#action_43525
Brad Cupit
Louisiana State University - UIS
Brad Cupit wrote:
I'm not sure which order the scopes are checked
For anyone who's interested, #attr appears to check scopes in the
following order:
1. page / action *
2. request
3. value stack
4. session
5. application
* I used s:set to set one value at page scope and one at action scope
prepareAdd() and prepareRemove() methods, each with preparation logic
specific to add() and remove(), respectively?
Brad Cupit
Louisiana State University - UIS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
I want to write an PreResultListener that checks the current
Result and performs actions based on the Result. I see that
the ActionInvocation that's passed into the beforeResult
method has a getResult() method, but when I tried this, the
result of the getResult() method is null.
just for
got a few ideas, but none of them are very nice.
Brad Cupit
Louisiana State University - UIS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
in the minority here...
Brad Cupit
Louisiana State University - UIS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
exactly what I was looking for!!
Brad Cupit
Louisiana State University - UIS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
wonder if the request that it's checking is the 'raw' request or the
specially-wrapped request which delegates to the value stack. If it's
the second one, then that makes sense why #attr does what I want!
Thanks again for the help guys!!
Brad Cupit
Louisiana State University - UIS
even when
there is a validation error. So you have a place to put code that you
want run both on initial display and on after a POST with validation
errors.
Brad Cupit
Louisiana State University - UIS
-Original Message-
From: Asleson, Ryan [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23
Hi, is there a simple tag I can use to just evaluate some OGNL? For
example, if I have the following line in a JSP it's kind of clunky:
s:set name=dummyValue value=%{#map.put(#enum.name(),
#enum.toString())}/
does anyone know of a more elegant way?
Brad Cupit
Louisiana State University - UIS
.
Brad Cupit
Louisiana State University - UIS
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2008 1:08 PM
To: Struts Users Mailing List
Subject: Re: simple struts tag to eval OGNL
If you have devMode set to true, you can add debug=console to your
value=[EMAIL PROTECTED]@values()}
s:set name=dummyVariable value=%{#enumMap.put(#enum.name(),
#enum.toString())}/
/s:iterator
s:select name=myEnum list=%{#enumMap}/
Brad Cupit
Louisiana State University - UIS
in struts.properties or
struts.xml
Brad Cupit
Louisiana State University - UIS
I'm curious if there is a neat way to have the page
parameter mapped onto action or something alike
You should be able to put a setter on the Action. So, if your url parameter is
named pageNum, your action would have a setPageNum() method.
Brad Cupit
Louisiana State University - UIS
your actions to the servlet api (making them more portable
and easier to test).
Not sure about getting the session in an interceptor though...
Brad Cupit
Louisiana State University - UIS
-
To unsubscribe, e-mail: [EMAIL
or
ServletActionRedirectResult, the exception is expected and acceptable.
Brad Cupit
Louisiana State University - UIS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The latter assuming you are implementing
StrutsStatics in the interceptor.
or using Java 5's static imports :-)
Brad Cupit
Louisiana State University - UIS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
://issues.apache.org/struts/browse/WW-2587
Brad Cupit
Louisiana State University - UIS
-INF/lib folder.
Brad Cupit
Louisiana State University - UIS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
files
are just zip files, so you can unzip it and look at its contents as
well.
Brad Cupit
Louisiana State University - UIS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Brad Cupit
Louisiana State University - UIS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
not yet had a GA release
Brad Cupit
Louisiana State University - UIS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
development, WW-2170 [1] was fixed, which should stop this issue.
Toni, are you using the latest version of Struts 2.1 from trunk?
[1] https://issues.apache.org/struts/browse/WW-2170
Brad Cupit
Louisiana State University - UIS
wouldn't need the @ParentPackage annotation.
[1] convention plugin (requires Struts 2.1):
http://cwiki.apache.org/S2PLUGINS/convention-plugin.html
Brad Cupit
Louisiana State University - UIS
-
To unsubscribe, e-mail: [EMAIL PROTECTED
is
managed by Spring and Spring creates a CGLIB proxy and certain
properties that are specific to CGLIB are copied from Action1 to Action2
thereby messing up the proxy. :-(
Brad Cupit
Louisiana State University - UIS
-
To unsubscribe
Ah, good point. Yes, please file this as a request, as it
should be pretty easy to do and would make things much easier.
done, thanks!
automatically set ActionMapper for ServletRedirectResult
https://issues.apache.org/struts/browse/WW-2598
Brad Cupit
Louisiana State University - UIS
of pressing back or refresh) will not find that
information, so the GET will have been inconsistent.
I guess this just pertains to flash scope in general though, and not any
particular implementation.
Brad Cupit
Louisiana State University - UIS
and
no xml configuration. What other kind of problems have you had?
Brad Cupit
Louisiana State University - UIS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
link to the webwork Flash result Ian mentioned:
http://wiki.opensymphony.com/display/WW/Flash+Result
Brad Cupit
Louisiana State University - UIS
-Original Message-
From: Ian Roughley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 15, 2008 8:39 AM
To: Struts Users Mailing List
Subject
wow that was a terrific explanation. Thanks Don!
[note: I was not the original poster]
Brad Cupit
Louisiana State University - UIS
e-mail: [EMAIL PROTECTED]
office: 225.578.4774
-Original Message-
From: Don Brown [mailto:[EMAIL PROTECTED]
Sent: Monday, April 14, 2008 10:13 AM
://www.gentleware.com/apollo.html
I'm not familiar with any of the open source UML tools.
Brad Cupit
Louisiana State University - UIS
-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Friday, April 11, 2008 7:01 AM
To: Struts Users Mailing List
Subject: [OT] UML
probably set up a quartz timer that Spring would manage for you. If
you're not using Spring you could probably implement a
ServletContextListener (configured in web.xml) to startup on application
startup and then use some type of timer in that class. None of it would
be specific to struts 2.
Brad Cupit
this would be done often enough that it could be built into the
Result.
At this point, however, the default behavior of not doing
POST-redirect-GET for validation errors seems to work just fine for me.
So I think I'll only do POST-redirect-GET on successful POSTs which pass
validation.
Brad Cupit
Louisiana
. By decoupling like
this, your code is more of a POJO and less of a Struts-specific Action
(and certainly less tied to the Servlet spec), thus enabling the logic
to be used elsewhere, perhaps in a different project, or in the same
project but after moving to an alternative front-end framework.
Brad Cupit
(perhaps extending ServletRedirectResult or
ServletActionRedirectResult)?
Brad Cupit
Louisiana State University - UIS
-Original Message-
From: Jeromy Evans [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 08, 2008 6:24 PM
To: Struts Users Mailing List
Subject: Re: interesting proxy
and release 2.0.12? The patch is there and ready to go) :-)
What I'm not sure how to do is to get the error messages into the
redirect url, and it seems like something you'd want often enough for it
to be built-in to ServletActionRedirectResult (or a class which extends
it).
Brad Cupit
Louisiana State
the static SimpleDateFormat (assuming this code is in an S2 Action that
is instantiated per request) is not thread safe.
http://java.sun.com/javase/6/docs/api/java/text/SimpleDateFormat.html#sy
nchronization
Brad Cupit
Louisiana State University - UIS
-Original Message-
From: Zoran
Consider placing the SimpleDateFormat as a local variable
exactly right
or, consider using a ThreadLocal
or, consider using commons-lang's FastDateFormat
http://commons.apache.org/lang/api-release/org/apache/commons/lang/time/
FastDateFormat.html
Brad Cupit
Louisiana State University - UIS
e
:
http://eirikhoem.wordpress.com/2007/06/15/generated-pdfs-over-https-with
-internet-explorer/
http://forum.java.sun.com/thread.jspa?threadID=233446forumID=45
Brad Cupit
Louisiana State University - UIS
-Original Message-
From: David Loup [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 08
Oh thank you so much for the response. I've been reading about the
POST-redirect-GET pattern and I'm starting to see the light. I found the
original article here, in case anyone else is interested:
http://www.theserverside.com/tt/articles/article.tss?l=RedirectAfterPost
Brad Cupit
Louisiana
whoops! I should have been more clear about it using the
HttpServletResponse
Brad Cupit
Louisiana State University - UIS
e-mail: [EMAIL PROTECTED]
office: 225.578.4774
-Original Message-
From: David Loup [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 08, 2008 10:57 AM
To: Struts Users
, since Actions are created per request.
If you want a thread safe version of SimpleDateFormat, Jakarta Commons lang has
FastDateFormat: http://commons.apache.org/lang/
Brad Cupit
Louisiana State University - UIS
e-mail: [EMAIL PROTECTED]
office: 225.578.4774
-Original Message-
From: Adam
.
I have a few ideas for workarounds, but I'd like to ask: has anyone else
seen this? Am I the first to try CGLIB proxies and Action chaining?
I've also read that action chaining is discouraged, but I don't
understand why. Maybe a completely different approach would work better?
Thanks!
Brad Cupit
JSP easily since all DB operations for it are
performed by its associated Action
Seems like a nice design, but Action chaining isn't recommended, and
isn't working with CGLIB proxies :-(
p.s. the codebehind plugin makes it so we don't have to write those dumb
actions. Nice!!
Brad Cupit
Louisiana
62 matches
Mail list logo