[s2] @Result annotation - params field

2007-02-22 Thread Ian Roughley
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

Re: [s2] Groovy Actions in Struts 2

2007-02-16 Thread Ian Roughley
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

Re: S2 Seeking Suggestion for XML/Dom

2007-02-15 Thread Ian Roughley
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

Re: [s2] Groovy Actions in Struts 2

2007-02-14 Thread Ian Roughley
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

Re: [s2] Groovy Actions in Struts 2

2007-02-14 Thread Ian Roughley
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

Re: [s2] Groovy Actions in Struts 2

2007-02-13 Thread Ian Roughley
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

Re: form submission problem in struts2 (release 2.0.5) j4

2007-02-13 Thread Ian Roughley
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_*

Re: Authentication / RolesInterceptor

2007-02-10 Thread Ian Roughley
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

Re: [S2] @Result annotation not working

2007-02-08 Thread Ian Roughley
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

Re: Authentication / RolesInterceptor

2007-02-08 Thread 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 interceptor just uses the HttpServletRequest to obtain the roles that the

Re: Using the Restful2ActionMapper

2007-02-05 Thread Ian Roughley
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

Re: [S2] s:text issue

2007-02-02 Thread Ian Roughley
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.

Re: [S2] s:text issue

2007-02-02 Thread Ian Roughley
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

Re: [s2] Struts Dependency Injection and EJB3 - support ? or how can i Do it?

2007-01-22 Thread Ian Roughley
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

Re: [s2] Struts Dependency Injection and EJB3 - support ? or how can i Do it?

2007-01-22 Thread Ian Roughley
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

Re: Why is struts2 called struts2 and not webworks2?

2007-01-21 Thread Ian Roughley
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:

Re: Struts 2 JSON

2007-01-12 Thread Ian Roughley
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

Re: Struts 2 JSON

2007-01-12 Thread Ian Roughley
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

Re: Struts 2 JSON

2007-01-11 Thread Ian Roughley
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:

[S2] XSLT result params

2006-12-28 Thread Ian Roughley
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:

Re: Still Ajax and Struts 2

2006-12-08 Thread Ian Roughley
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,

Re: Extending Themes

2006-11-26 Thread Ian Roughley
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]

Re: Struts 2 and JSTL

2006-11-12 Thread Ian Roughley
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

Re: Using Spring 2.0 - should I use Struts 1.2.9, 1.3.5, or 2.0?

2006-10-05 Thread Ian Roughley
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

Re: Choosing a Struts-ish framework

2006-09-25 Thread Ian Roughley
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

Re: Struts2 - BUILD FAILURE - cannot find symbol

2006-09-15 Thread Ian Roughley
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

Re: [Struts 2] Templating available like Tiles

2006-08-28 Thread Ian Roughley
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

Re: Ajax and MVC pattern

2006-05-25 Thread Ian Roughley
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

Re: Action Oriented Framework Rendering Mode

2006-02-22 Thread Ian Roughley
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

Re: Action Oriented Framework Rendering Mode

2006-02-21 Thread Ian Roughley
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,

<    1   2