Does anyone have a use case for the params field in the Result
annotation? Currently it's defined in the annotation as:
String[] params() default {};
which I'm not sure makes sense as a name and value was passed in the XML
configuration.
/Ian
I also personally think that defining actions in a
service tier doesn't smell right.
I'm not sure what you mean by that... it's just a
class; it happens to be compiled on-the-fly during
bean instantiation. Not much else is different.
Yes, but it feels to me like you are reaching back
There should be a XSLT result type - using this result you can return
an XML document from an action. Is this what you are looking for?
/Ian
Quoting Jim Reynolds [EMAIL PROTECTED]:
I am implementing a treeview type of page to display categories in a
treeview type manner. The
3:22 PM, Ian Roughley [EMAIL PROTECTED] wrote:
Very cool. If only Groovy supported annotations so that the
configuration didn't need to be in the struts.xml file (but it looks
like annotation support is starting).
Ian,
From your lips to G_d's ears. I can't wait for annotations.
Mark
I think it was Chris from Adigio that had the blog entry. The proxy
basically always checked the filesystem for the latest .groovy script,
and then used it.
I'm not sure about Spring's groovy support, and whether it allows for
hot swapping. I also personally think that defining actions in a
Very cool. If only Groovy supported annotations so that the
configuration didn't need to be in the struts.xml file (but it looks
like annotation support is starting).
/Ian
Mark Menard wrote:
I've recently started using Groovy in my Struts 2 project to write my
actions. After some
I would create a constructor in the action, and place a
breakpoint/logging statement in there to make sure the correct action is
beng called. In the HTML you have:
s:form action=Logon name=login_form
So the action should be /Logon.action, but your configuration is:
action name=Logon_*
Piero Sartini wrote:
Am Donnerstag, 8. Februar 2007 schrieb Ian Roughley:
You probably don't need to send it to an action, you just need to render
the HTML form for authentication. So, login.jsp would suffice. As far
as s2 is concerned, authentication is completely external. The role
Do you have the web.xml init-param actionPackages listing the package
that the action is in?
/Ian
Dave Newton wrote:
--- Laurie Harper [EMAIL PROTECTED] wrote:
What do I need to do to make @Result annotations on
my action methods work?
What doesn't work/what are the symptoms? I
You probably don't need to send it to an action, you just need to render
the HTML form for authentication. So, login.jsp would suffice. As far
as s2 is concerned, authentication is completely external. The role
interceptor just uses the HttpServletRequest to obtain the roles that
the
This is most likely a bug, can you create a JIRA ticked?
/Ian
Philip Lorenz wrote:
Hi,
I am trying to use the Restful2ActionMapper for my project. However I have
not been able to configure it correctly so far.
My struts.xml looks like the following:
struts
constant
I think you may be confused, you say
The value of myKey is some.resource.key, and in the
property file I have:
some.resource.key = Some text
In fact, some.resource.key is the key and some text is the value.
Try -
s:text name=some.resource.key /
/Ian
--
From Down Around, Inc.
had a bunch of trouble
understanding OGNL and it might help you if you want it off-list.
-Original Message-
From: Ian Roughley [mailto:[EMAIL PROTECTED]
Sent: Friday, February 02, 2007 3:07 PM
To: Struts Users Mailing List
Subject: Re: [S2] s:text issue
I think you may be confused
Currently there is no EJB3 support in Struts, however I have done this
on a couple of projects. I used a custom annotation to mark action
setters as ejb3 then a custom interceptor that looks for the annotation,
looks up the ejb3 and injects it into the action. Doing it this way is
less than
interesting in Struts 2 and EJB 3 interoperability, but I can't
figure out how to get started. Thanks !
On 1/22/07, Ian Roughley [EMAIL PROTECTED] wrote:
Currently there is no EJB3 support in Struts, however I have done this
on a couple of projects. I used a custom annotation to mark action
setters
because there already is a webwork2 :-)
Zsolt Koppany wrote:
Hi,
as far as I see struts2 has very little to do with struts1. Why is it called
struts2 at all (and not webworks2)?
Zsolt
-
To unsubscribe, e-mail:
Ian Roughley wrote:
Have you looked at http://issues.apache.org/struts/browse/WW-1330?
It might be a great companion for your result type. I believe it
allows an action to be populated from a JSON request.
/Ian
Musachy Barroso wrote:
The JSON plugin has been added to the registry. Hosted
access to the
Google Code project :)
On 1/12/07, Ian Roughley [EMAIL PROTECTED] wrote:
I think Frank already has the code in the defect, adding it would be
very simple.
/Ian
-
To unsubscribe, e-mail: [EMAIL PROTECTED
Have you looked at http://issues.apache.org/struts/browse/WW-1330? It
might be a great companion for your result type. I believe it allows an
action to be populated from a JSON request.
/Ian
Musachy Barroso wrote:
The JSON plugin has been added to the registry. Hosted here:
I just noticed that the parameters for the XSLT result type in the
javadocs are not those in the showcase example, or there may be some
that are missing. Has anyone worked on these lately?
/Ian
-
To unsubscribe, e-mail:
What release of Struts2 are you using and which browsers?
/Ian
walidito wrote:
thanks, but I get an error with the code you gave me :
SEVERE: Error setting expr 'dojo.transport' with value
'[Ljava.lang.String;@179567c'
ognl.OgnlException: target is null for setProperty(null, transport,
My advice would be to look at the existing themes to see how they use
the parameters.
/Ian
--
From Down Around, Inc.
Innovative IT Solutions
Software Architecture * Design * Development
~
web: www.fdar.com
email [EMAIL PROTECTED]
I think you can (still) also use OGNL in the configuration files.
/Ian
--
From Down Around, Inc.
Innovative IT Solutions
Software Architecture * Design * Development
~
web: www.fdar.com
email [EMAIL PROTECTED]
phone:617.821.5430
I've used webwork 2.2.2 (the predecessor to s2) with Spring 2.0 without
issues. Hence, I will take the plunge and say that s2 and spring 2.0
are compatible.
/Ian
Bruno Melloni wrote:
Thanks, I just downloaded and looked at Struts 2. Seems like a nice
version, but I noticed it is not
At the moment WebWork and Struts2 are *mostly* the same. The difference
being that webwork is deemed production ready and s2 is just a little
ways away.
/Ian
Li wrote:
Hi,
WW is doing integration work with Struts. WW has more features, their
intercepters are powerful.
For starting new
I just had this issue myself. Pat explained it as a bug with Maven2,
the solution was to delete the struts and opensymphony directories from
your m2 repo (usually under /Documents and Settings/logon/.m2/repo.
/Ian
Arevalo, Cesar (GE Comm Fin, non-ge) wrote:
Hi,
I am new to struts2, I
I'm pretty sure there was a Tile ResultType in WebWork - Matt Raible was
a key factor to it's implementation if i remeber correctly. Did it come
across with the merger? if so, you could just use tiles.
/Ian
--
From Down Around, Inc.
Innovative IT Solutions
Software Architecture * Design
I think that the controller is always going to be in struts. There
reason is this - the action will be obtaining some input, coordinating
with the back-end services, retrieving the model to be rendered and then
rendering the model into a view which could be HTML or XML/JSON which is
more
The ww:action is not used for AJAX interactions with the server. There
are several UI widgets that can be AJAX enabled - the one you would be
looking for is the remote DIV. But, this would be most helpful in a
webwork application to make it portlet-like, not sure how it would help
when
below.
/Ian
--
From Down Around, Inc.
Innovative IT Solutions
Software Architecture * Design * Development
~
web: www.fdar.com
email [EMAIL PROTECTED]
phone:617.821.5430
~
Pilgrim,
101 - 130 of 130 matches
Mail list logo