The only things I can think of to check would be, do you have the
struts2-spring-plugin.jar file in your WEB-INF/lib directory? And have you
set the struts.objectFactory property to spring?
constant name=struts.objectFactory value=spring/
(*Chris*)
On Sun, Oct 17, 2010 at 7:34 PM, cellterry
If the Spring plugin is deployed the object factory should already be
set to spring by the plugin, IIRC.
I'm more concerned by the reference to the convention plugin: are you
intending to use it? If not, it should not be deployed. If you are,
and are *also* using XML config, you'll need to
please understand this:
s:iterator value=listObject
s:component template=abc.vm
s:param name=text value=listValue /
s:param name=prefix value=listIndex /
/s:component
/s:iterator
listValue is a values of list. i am using iterator to traverse the list. now
on listValue, i want to put here
Hello folks,
Thanks for the replies Kushan and Li Ying. Reading through both of your
emails:
- Kushan, yes, my code for the class UserSearchAction has a field called:
int searchType
Along with a getter and setter for it like:
public int getSearchType()
public void setSearchType(int
I think you¹re missing the point.
Instead of:
s:param name=text value=listValue /
Use
s:param name=text value=%{getText(listValue)} /
Z.
please understand this:
s:iterator value=listObject
s:component template=abc.vm
s:param name=text value=listValue /
s:param name=prefix
Nabeel,
You dont have to write parameters separately when submitting the form.
say, you have a form called test
*s:form name=test action=submit
/s:form*
inside that form you have various of struts html components,
and your *struts.xml* file should be like this,
*action name=submit
I think it is [Parameters Interceptor]:
http://struts.apache.org/2.2.1/docs/parameters-interceptor.html
You can set a break point in the [setXXX] method of
your Action class, then you can find out who is invoking
it from the [Call Stack].
One other question, do you guys know where the writing
I think it is perhaps a JBoss error.
Because the parameters in ServletRequest should be immutable, that
means Struts (or other frameworks)
has no chance to change the Request parameters.
See:
http://download.oracle.com/javaee/5/api/javax/servlet/ServletRequest.html#getParameterMap%28%29
So the
can you please explain with action class
Alexandru BARBAT wrote:
Hi,
I suppose you didn't write the call for displaytag correctly
I give you an example (if you will still not find the problem plese send
an
excerpt from your displaytag code)
display:table name=requestScope.list
Yes Li Ying,
I agree. I did follow your suggestion of looking at the stack trace and
going through the debug of the application. I found that:
ParametersInterceptor.setParametersp(Object, ValueStack, Map)
Was called at some point. Running thru the code there, the parameters were
already
Wataru,
I'm not sure what you're looking for. It seems you are trying to match the
first wildcard-matched value with the id and the actionName? I've never
tried this, but perhaps you could split the two values like this?
action name={1}/{id}/detail
result type=chain
param
Hi Zoran
can you confirm the encoding attribute at the top of your web.xml e.g.
?xml version=1.0 encoding=UTF-8?
in which case you *should* be able to map
U+00C6Æc3 86LATIN CAPITAL LETTER AE
http://www.utf8-chartable.de/
please confirm
Martin Gainty
That defines the encoding of the web.xml file itself...
On Oct 18, 2010 10:32 AM, Martin Gainty mgai...@hotmail.com wrote:
Hi Zoran
can you confirm the encoding attribute at the top of your web.xml e.g.
?xml version=1.0 encoding=UTF-8?
in which case you *should* be able to map
U+00C6Æc3
I have just upgraded struts2 version from 2.0.11 to 2.2.1 and one issue seems
to be that i have amended templates
actionerror.ftl
actionmessage.ftl
and they were placed into WebContent\template\simple folder in the web app and
with 2.0.11 they overrided the templates in the struts2 core
I recently upgraded from Struts 2.0.x + SmartURLs to Struts 2.2.1 +
Convention plugin. However after upgrading all my static content is
no longer being served. I read all the release notes along the way
that I could find and nothing suggests that my old approach should
have stopped working. Can
Is there a good/standard way to use FreeMarker (or Velocity) to
template emails sent by a Struts2 application?
I hacked up something that works, but my solution doesn't know about
struts2, so it can't use the taglibs to produce URL. (Ie sending an
email for a new account with an activation
Yes, you are right. After removing it, the error is removed.
Terry.
Dave Newton-6 wrote:
If the Spring plugin is deployed the object factory should already be
set to spring by the plugin, IIRC.
I'm more concerned by the reference to the convention plugin: are you
intending to use it?
Are your setting:
constant name=struts.action.extension value= /
?
Try delete it, use the default setting instead.
I take a quick look of the struts source code.
In [org.apache.struts2.dispatcher.mapper.DefaultActionMapper],
it use the extension of request url to detect if this request should
By the way, if you DO want to set the extension of action to ,
try:
constant name=struts.action.extension value=, /
See if it works.
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail:
Hi adam:
what theme are you using?
The default theme in Struts2.2.1 is [xhtml].
Maybe you need change the default theme or the theme of your tag to [simple].
Can you show us your setting file(struts.xml and so on) and your jsp code?
2010/10/19 adam pinder apin...@hotmail.co.uk:
I have
Cool; glad you worked it out.
Dave
On Mon, Oct 18, 2010 at 10:10 PM, cellterry cellte...@gmail.com wrote:
Yes, you are right. After removing it, the error is removed.
Terry.
Dave Newton-6 wrote:
If the Spring plugin is deployed the object factory should already be
set to spring by the
Hi,
I'm trying to help a customer that is using Struts2 within a Java
EE-compliant application server. Unfortunately, I have no real
experience with Struts2 so I was hoping someone on this mailing list
could offer some help.
The main issue that I'm dealing with is this... An HTTP request is
What information is missing?
Dave
On Mon, Oct 18, 2010 at 11:34 PM, Phil Adams padam...@gmail.com wrote:
Hi,
I'm trying to help a customer that is using Struts2 within a Java
EE-compliant application server. Unfortunately, I have no real
experience with Struts2 so I was hoping someone on
Specifically, the thread context information placed on the original
thread by the servlet container that provides the J2EE name associated
with the webapp and component, etc. This information is (as far as I
know) specific to the servlet container implementation and is not
portable in any way,
Li Ying wrote:
Are your setting:
constant name=struts.action.extension value= /
?
Yes, I was intentionally setting the extension to the empty string.
This used to work under the SmartUrls plugin in 2.0.x days. I've dug
though and found the comments in his source about how the author made
that
It's a Struts2 specific interceptor to do background work, please read
about ExecuteAndWaitInterceptor. Just that interceptor is using new
Thread, normally Struts2 don't create additional threads.
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010
2010/10/18 Eric Nielsen ericdniel...@gmail.com:
Here are my filters from web.xml
filter
filter-namestruts-cleanup/filter-name
filter-classorg.apache.struts2.dispatcher.ActionContextCleanUp/filter-class
/filter
filter
filter-namesitemesh/filter-name
27 matches
Mail list logo