Hi John,
We have fixed several issues that might be related to this, can you
try with a version built from svn? Or download the files from here:
http://people.apache.org/builds/struts/2.1.8/. That is not a release
(yet), but it was built from trunk yesterday.
musachy
On Wed, Sep 23, 2009 at 8:52
I think Pawel omitted something in the original reply.
You can't say:
That won't work.
Instead, you have to say:
2009/9/23 Paweł Wielgus
> Hi again,
> firstly You should read about OGNL basics because You are using it,
> then if You write it works, why?,
> because struts is treating it
Hi again,
firstly You should read about OGNL basics because You are using it,
then if You write it works, why?,
because struts is treating it like a regular getter,
so it adds get and makes can to camel case Can and in result it
searches for getCanEditCustomer() method, and it finds it in action.
I have gone through Pawel's example and it is not working for me.
Here is the iterator:
I created three methods in my action class:
public boolean getCanEditCustomer()
{
return false ;
}
public boolean getCanEditCustomer(Integer anInt)
{
return false ;
}
public boolean getCa
In addition to what Pawel is saying, be careful that you also check
the 'canEditCustomer(target)' call in the target action since there is
nothing to stop someone from figuring out the URL pattern and editing
people they weren't intended to edit.
-Wes
2009/9/23 Paweł Wielgus :
> Hi Dennis,
> You
Martin,
Good find, but I am not sure if I
understand how that
relates to the OP question or musachy's
answer
nevermind
i think you are confused which interceptors we are
dealing with
if you take a closer look at the
original poster's question you'll see that this
thread is about struts intercep
Look into "widget" frameworks for client side such as Dojo, DWR, etc.
We use Dojo and particularly happy with it.
http://dojocampus.org/explorer/#Dijit_Tree
Greg
-Original Message-
From: Tommy Pham [mailto:tommy...@yahoo.com]
Sent: Wednesday, September 23, 2009 1:18 PM
To: Struts Users
Hello
Thanks very much to all responses this issue is resolved
with this message.
Kostya
- Original Message -
From: "Martin Gainty"
To: "Struts Users Mailing List"
Sent: Saturday, September 19, 2009 11:53 PM
Subject: RE: Hello Help please with Struts2
the struts-tags URL <%@ tagl
Hi Dennis,
You are nesting tags, it's not possible/permitted,
what You should do is something like:
or
Which simply is naming your iterator variable to "iter" and use it in if tag,
depending on struts2 version it will be id or var.
Best greetings,
Paweł Wielgus.
2009/9/23 Dennis Atkinso
Doh! Sorry for the goose chase, I'll review my code and post it if I'm
still stuck...
>-Original Message-
>From: Musachy Barroso [mailto:musa...@gmail.com]
>Sent: Wednesday, September 23, 2009 1:59 PM
>To: Struts Users Mailing List
>Subject: Re: Interceptor IOC with Spring
>
>Meh, it all
Hi all.
In my Struts2 application, I have a collection of Customer objects, and various
users have the rights to edit some of them and not others. I have created a
Struts iterator tag, and in the iterator, I put the various Customer attributes
into an HTML table. All this works.
In one cell
Meh, it all works. Autorired with/without annotations and @Resource
also works (in interceptors). @OP, something is wrong in your
configuration, show us the code :)
musachy
On Wed, Sep 23, 2009 at 10:51 AM, Musachy Barroso wrote:
> Chris, if autowiring works then using @Autowire with @Qualifier
Chris, if autowiring works then using @Autowire with @Qualifier
(equivalent to @Resource) should also work, I have to try that.
musachy
On Wed, Sep 23, 2009 at 9:18 AM, Chris Pratt wrote:
> In my struts.xml I have:
>
>
>
> And at the top of my applicationContext.xml I have:
>
>
>
> And my Int
lol
On Wed, Sep 23, 2009 at 10:06 AM, Martin Gainty wrote:
>
> what you said originally about Interceptors being built only with Struts
> specific org.apache.struts2.impl.StrutsObjectFactory
> (and not spring's StrutsSpringObjectFactory and not
> StrutsSpringObjectFactory) is true
>
> Spring do
OK, thanks, is there a JIRA for this? I'll be happy to request it as an
enhancement...
>-Original Message-
>From: Musachy Barroso [mailto:musa...@gmail.com]
>Sent: Wednesday, September 23, 2009 11:23 AM
>To: Struts Users Mailing List
>Subject: Re: Interceptor IOC with Spring
>
>intercepto
- Original Message
> From: Hanen Ben Rhouma
> To: Struts Users Mailing List
> Sent: Wednesday, September 23, 2009 3:06:23 AM
> Subject: How to load a tree dynamically?
>
> Morning,
>
> Is it possible to load a tree dynamically with a jsp in an MVC architecture
> (using struts 1.3). Dyn
what you said originally about Interceptors being built only with Struts
specific org.apache.struts2.impl.StrutsObjectFactory
(and not spring's StrutsSpringObjectFactory and not StrutsSpringObjectFactory)
is true
Spring does handle injected interceptors via setInterceptorNames of
ProxyFactory
that makes sense, I use @Resource(name = "mybean") on my setter
methods, so I guess it is just the annotations the ones that do not
work.
musachy
On Wed, Sep 23, 2009 at 9:18 AM, Chris Pratt wrote:
> In my struts.xml I have:
>
>
>
> And at the top of my applicationContext.xml I have:
>
>
>
>
In my struts.xml I have:
And at the top of my applicationContext.xml I have:
And my Interceptors are getting injected just fine. On another project, I
have autowiring turned off, but then you have to define each interceptor as
a bean in the applicationContext.xml and specifically define th
Hi there
I'm trying to get started with Struts2 in particular the Convention plugin.
I've copied the code in the User guide and it works fine but only if I DON'T
have a META-INF directory in my War file, even if that directory is empty.
We are using Maven to build the War so the META-INF director
interceptors and results do net get dependencies injected. If you
implement BeanFactoryAware, or ApplicationContextAware it will pass
you the bean factory or the context. I will take a look at this, as it
has been bothering me for a while.
musachy
On Wed, Sep 23, 2009 at 7:21 AM, Mike Baranski
hi all
anyone work with REST, i want to send an object in more complex than
just name with value, but in array,
the case study is array with id value dan item id, quantity, like purchase order
so there is master data and detail data
just think sending soap xml data
in this case i create a rest
Hi Muthu,
check how your generated html looks like.
I don't know if struts isn't adding namespace if it's not specified.
Best greetings,
Pawel Wielgus.
2009/9/23, Muthu Velappan :
>
> Hi,
>
> I have 3 different modules in my project and added that into struts.xml like
> this
>
>
>
Correct me if I'm wrong, please, but if I have an interceptor, it should get
injected by spring.
I have a bean I'm expecting, the set method written, and the bean defined in
applicationContext.
My main struts.xml has:
My setter is not getting called, is there anything else I need to do?
M.
One easy fix would be to add another result to your /admin namespace
that redirects to /home/Home... i.e.
Home
/home
Then, link your s:submit to 'goHome'
Of course, if you want to use this everywhere, define this result as a
global-result in your parent package and have the rest
Chris,
This is the content of my home.xml
/membership/Home.jsp
It's namespace is /home where as admin.xml's namespace will be "/admin" and
that's where feedback.jsp related actions are configured
BeansUtils just call your converter, if your form bean property "warType",
will be a 'WarrType' .
On Wed, Sep 23, 2009 at 7:16 AM, senderj wrote:
>
> I wrote a converter to convert a enum for BeanUtils.copyProperties(). I
> have
> this in my struts config:
>
> type="org.apache.struts.validator
I wrote a converter to convert a enum for BeanUtils.copyProperties(). I have
this in my struts config:
Here is my converters (embedded class in my Action)
public class MyConverter1 implements Converter {
@Override
public WarrType convert(Class c, Object s) {
Morning,
Is it possible to load a tree dynamically with a jsp in an MVC architecture
(using struts 1.3). Dynamically means I got a perforce depot which I need to
retrieve its children as nodes but progressively (on clicking on any parent
directory it will display its children).
Till now, I've jus
The name of the xml file is immaterial -- what is the namespace attribute on
the package you defined inside of home.xml?
I would use the config-browser to check that the configuration is what you
intended.
Chris
-Original Message-
From: Muthu Velappan
To: user@struts.apa
Hi,
I have 3 different modules in my project and added that into struts.xml like
this
I got a feedback.jsp page in admin module. When user hit the cancel button
from this form, I want that to submit to home.action available in home
module. Since I don’t have the name
bump.
--
View this message in context:
http://www.nabble.com/Problem-testing-my-action-when-I%E2%80%99ve-got-a-springbean-inside-the-validators.xml-tp24862185p25531029.html
Sent from the Struts - User mailing list archive at Nabble.com.
I have a class Stk with property warType of type enum WarrType
public enum WarrType {
NONE, CALL, PUT; }
I have in my struts config
and in my Action
MyConverter mc = new MyConverter();
ConvertUtils.register(mc, WarrType.class);
PropertyUtils.copyProperties(stk, form);
Hi,
I have 3 different modules in my project and added that into struts.xml like
this
I got a feedback.jsp page in admin module. When user hit the cancel button
from this form, I want that to submit to home.action available in home
module. Since I don't h
34 matches
Mail list logo