What I have achieved is to set the template Dir for freemarker result type,
in web.xml:
templatePath
${form.templateDir}
with ${form.templateDir} being replaced by maven at compile or packaging
phases.
Cheers,
Josep
2011/11/21 Li Ying
> (1)I believe the word [t
Everything is fine, the problem is conventional plugin wont work with
jboss as 7... but the problem got solved by xwork-core patch.
On 21-11-2011 11:58, Li Ying wrote:
Do you want to map your action to the following url?
namespace: common
action: homepage
But your package configuration is:
(1)I believe the word [template] in struts2 means,
the template file to render a struts2 tag.
for example, the file
[struts2-core-2.2.3.jar]/template/xhtml/form.ftl
is a template file to render the tag using theme "xhtml"
(2)what you are trying to do, is to change the jsp file location which
wi
Do you want to map your action to the following url?
namespace: common
action: homepage
But your package configuration is:
I think maybe this setting maps all the actions in this package to
namespace "/",
but not "common" as you want.
Read the following documents, may help:
http://struts.apach
This document may help:
http://struts.apache.org/2.x/docs/convention-plugin.html#ConventionPlugin-Actionannotation
2011/11/21 叶伟平 :
> Dear All,
> I have a action class which's namespace is "/"(Annotation), and, I
> want to use another namespace for a method within the class. How to do
> that?
>
>
Dear All,
I have a action class which's namespace is "/"(Annotation), and, I
want to use another namespace for a method within the class. How to do
that?
Thanks & Regards.
Weiping Ye
-
To unsubscribe, e-mail: user-unsubscr...@str
If the default is something that doesn't change, try putting it in
application scope instead. You would be able to do that once during program
initialization and then forget about it.
(*Chris*)
On Nov 19, 2011 12:23 AM, "rohan jamkhedkar"
wrote:
> Hi Christian,
> Thanks again. I think I would h
Dave,
Thanks a lot for providing the solution. I put default stack in the
interceptor stack and the functionality is running properly. However if I
do not use stack and directly use the interceptor, it gives the following
error :
HTTP Status 404 -
/Struts2/login.action;jsessionid=B902A6322742861B
By using a complete stack in the action's config element,
or by combining stacks as with any interceptor configuration.
http://struts.apache.org/2.x/docs/interceptor-configuration.html
Dave
On Sun, Nov 20, 2011 at 2:59 PM, Srineel Mazumdar wrote:
> Hi Dave,
> *
> *
> *"In any case, when you de
Hi Dave,
*
*
*"In any case, when you define an for a specific action,*
*you must define *all* of the interceptors for that action"*
*
*
How can this be done ?
Thanks,
Srineel
On Mon, Nov 21, 2011 at 1:26 AM, Dave Newton wrote:
> On Sun, Nov 20, 2011 at 2:47 PM, Srineel Mazumdar >wrote:
>
> >
On Sun, Nov 20, 2011 at 2:47 PM, Srineel Mazumdar wrote:
> I intend to use only logger1 interceptor.
>
> I want to enable only one interceptor ie logger1. How can I do so?
>
By doing what you did.
However, as I stated, this means that essentially no other S2 functionality
will be present, includ
Apologies for posting my query in this fashion. I am a newcomer to this
group. The idea is to make a very simple Struts2 Login page. If the user
gives correct user id and password, the flow will get directed to the user
ino page where all the info will be put by user. After clicking submit, the
flo
How about you describe the code the code and behavior and post it, rather
than making us download a zip, extract it, look at it and/or run it, etc?
Btw, the comment in your PostViewInterceptor is a bit misleading; the S.o.p
will execute before the view is rendered, because it occurs before the
inv
Please enable and disable the interceptor logger1. When interceptor is
disable, I get userid/password in action, but not ,when enabled. If
possible please run the code and check
On Mon, Nov 21, 2011 at 12:56 AM, Dave Newton wrote:
> "The" interceptor? Which interceptor? What makes you think an i
"The" interceptor? Which interceptor? What makes you think an interceptor
is clearing the value stack?
Dave
On Sun, Nov 20, 2011 at 2:10 PM, Srineel Mazumdar wrote:
> Hi,
>
> I am creating a small struts2 application and the problem that I face is
> that the inteceptor is clearing the value stac
15 matches
Mail list logo