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, Pe

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 deploy

Re: Adding the ability to include a validation xml file from another inside another validation xml file in Struts2

2007-10-10 Thread Ian Roughley
Have you looked at the visitor validator? It might serve your purposes if the fields are on objects in the action. /Ian Arup Francis wrote: Hi, We have this problem of having to repeat certain validations for the same fields in multiple validation xml files because they occur in multiple

Re: struts2 validation for only one method in action

2007-10-17 Thread Ian Roughley
you can always use and - then you don't need the logic to determine which button was clicked in the execute() method, and you can use the validation config below. /ian Igor Vlasov wrote: This is not a solution. I have 2 submit button in one form: one for save and another for delete. All o

Re: any struts 2 unit testers out there?

2007-10-29 Thread Ian Roughley
And 4 - have you looked in the source for unit tests testing this functionality? Tom Schneider wrote: My first suggestion is the make sure that the package.properties files are on the classpath when you run your junit test. Secondly, it would be helpful for us to help you figure this out if yo

Re: s2 and DispatchAction

2007-11-12 Thread Ian Roughley
I wonder if you could use OGNL, i.e. ${paramName}, although I have not tested it. [EMAIL PROTECTED] wrote: as far as I know, no :-( How can i use a parameter to choose wich action executed? I have a crud action etc user.action is it possible to choose the action fires with a paramenter

[ANN] Practical Apache Struts2 Web 2.0 Projects

2007-11-20 Thread Ian Roughley
9781590599037. I also believe it will be available through most major bookstores. /Ian -- Ian Roughley From Down & Around, Inc. Consulting * Training / Mentoring * Agile Process * Open Source web: http://www.fdar.com - email: [EMAIL PROTECTED] --

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

2007-11-24 Thread Ian Roughley
No idea. I can check though. /Ian -- Ian Roughley From Down & Around, Inc. Consulting * Training / Mentoring * Agile Process * Open Source web: http://www.fdar.com - email: [EMAIL PROTECTED] Ted Husted wrote: Amazon is showing the book as available now! If you order through this

Re: is there any book on struts 2 in the market.................

2007-11-24 Thread Ian Roughley
Practical Apache Struts2 Web 2.0 Project was published a few days ago. You can purchase it via Apache at http://opensource.atlassian.com/confluence/oss/display/BOOKS/ISBN-1590599039 /Ian -- Ian Roughley From Down & Around, Inc. Consulting * Training / Mentoring * Agile Process *

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

2007-11-24 Thread Ian Roughley
f the book is like. /Ian -- Ian Roughley From Down & Around, Inc. Consulting * Training / Mentoring * Agile Process * Open Source web: http://www.fdar.com - email: [EMAIL PROTECTED] Martin Gainty wrote: Ian- If you provide the ISBN some of us can do a quick search at local bookst

[ANN] Javapolis 2007

2007-11-26 Thread Ian Roughley
those that are not "officially" attending Javapolis, and those that are, is anyone interested in an informal get together during the conference? Meet some new people, have some beers, and maybe even talk about Struts2. /Ian -- Ian Roughley From Down & Around, Inc. Consult

Re: Practical Apache Struts2 - compile fails on annotation

2007-11-29 Thread Ian Roughley
This is chapter 3, right? I just ran the command "mvn clean compile" from my local copy and everything compiles correctly. Are you compiling from an IDE? If so, do you have all the JAR files in the project? /Ian -- Ian Roughley From Down & Around, Inc. Consulting * Traini

Re: Practical Apache Struts2 - compile fails on annotation

2007-11-29 Thread Ian Roughley
Weird. I opened the ZCAction.java file, and I can see the imports right there :-) -- Ian Roughley From Down & Around, Inc. Consulting * Training / Mentoring * Agile Process * Open Source web: http://www.fdar.com - email: [EMAIL PROTECTED] Robert Harrison wrote: Ian/Dave, Thanks for

Re: I18N problem

2007-12-05 Thread Ian Roughley
You should probably try using the "key" rather than the "label" attribute, I'm not even sure whether it will accept OGNL: -- Ian Roughley From Down & Around, Inc. Consulting * Training / Mentoring * Agile Process * Open Source web: http://www.fdar.com - emai

Re: Is Struts2 ready for prime time?

2007-12-13 Thread Ian Roughley
Finally, in terms of education, there's some good books out now and there's a lot of sites providing tutorials (that reminds me, I'm going to order Ian's book today[1]). However, I don't know of any professional training courses yet and there's far fewer developers already knowledgeable on S

Re: New to Struts

2007-12-17 Thread Ian Roughley
bhaarat Sharma wrote: I am reading Practical struts2 web 2.0 projects book. I dont have a lot of nice things to say Please contact me off list. I am interested in why you have this opinion. about the book but its practically the complete struts2 book thats out there. -

Re: New to Struts

2007-12-17 Thread Ian Roughley
Dave Newton wrote: --- Ian Roughley <[EMAIL PROTECTED]> wrote: bhaarat Sharma wrote: I am reading Practical struts2 web 2.0 projects book. I dont have a lot of nice things to say Please contact me off list. I am interested in why you have this opinion. Doesn

Re: Question about validation mechanism

2007-12-19 Thread Ian Roughley
The validator interceptor doesn't do anything. If you are using the s2 tags, then the getter matching the name attribute will be called on the action or model. /Ian -- Ian Roughley From Down & Around, Inc. Consulting * Training / Mentoring * Agile Process * Open Source

Re: S2: chart result type not recognized

2008-01-04 Thread Ian Roughley
How are you referencing the action? I always use an img tag like this: /Ian -- Ian Roughley From Down & Around, Inc. Consulting * Training / Mentoring * Agile Process * Open Source web: http://www.fdar.com - email: [EMAIL PROTECTED] John Cartwright wrote: Hello All, I'm

Re: struts2: interceptor - validation doesn't work :-(

2008-01-04 Thread Ian Roughley
I didn't see an INPUT result configured, which will be needed. /Ian -- Ian Roughley From Down & Around, Inc. Consulting * Training / Mentoring * Agile Process * Open Source web: http://www.fdar.com - email: [EMAIL PROTECTED] Dave Newton wrote: Please post the entire relevant

Re: Struts training...

2008-01-08 Thread Ian Roughley
I'm looking into providing some public training, at the moment I'm scouting out cities and locations that can accommodate training. Of course, if its private training, then that's easy! /Ian -- Ian Roughley From Down & Around, Inc. Consulting * Training / Mentoring * A

[ANN] Struts2 Workshop: April 28-30, Sunnyvale CA

2008-02-11 Thread Ian Roughley
ow to effectively write applications using Struts2. We'll take a practical and hands-on approach, dividing the time into 40% theory and 60% exercises. Our instructor, Ian Roughley, has extensive experience developing Struts2 applications; is a committer on the Apache Struts2 project; and is the

Re: Struts2 WebApp context

2008-02-13 Thread Ian Roughley
Implement the ServletContextListener and configure it in web.xml - this has the initialize and destroy methods you are looking for, and they are called when the container loads and destroys your application. /Ian -- Ian Roughley From Down & Around, Inc. Consulting * Training / Mento

Re: Struts2 WebApp context

2008-02-14 Thread Ian Roughley
This question will probably result in an answer / better solution if asked on the Spring forums. /Ian -- Ian Roughley From Down & Around, Inc. Consulting * Training / Mentoring * Agile Process * Open Source web: http://www.fdar.com - email: [EMAIL PROTECTED] Rushikesh Thakkar w

Re: Scope interceptor / Practical Apache Struts 2

2008-02-14 Thread Ian Roughley
? /Ian -- Ian Roughley From Down & Around, Inc. Consulting * Training / Mentoring * Agile Process * Open Source web: http://www.fdar.com - email: [EMAIL PROTECTED] Selckin wrote: Hello, In Chapter 6 of "Practical Apache Struts 2 Web 2.0 Projects", It explains how to

Re: Dynamic Results

2008-02-15 Thread Ian Roughley
both result types and action can take parameters from the config, what is the best way to differentiate them without making the config more complicated? /Ian -- Ian Roughley From Down & Around, Inc. Consulting * Training / Mentoring * Agile Process * Open Source web: http://www.fdar.co

Re: Dynamic Results

2008-02-15 Thread Ian Roughley
this case there was no clear context. /Ian -- Ian Roughley From Down & Around, Inc. Consulting * Training / Mentoring * Agile Process * Open Source web: http://www.fdar.com - email: [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Actually when OGNL fails to locate a setXXX(String) on the re

Re: Struts 2: map-backed bean

2008-03-04 Thread Ian Roughley
If you implement the RequestAware interface, the map will contain all the form values. /Ian -- Ian Roughley From Down & Around, Inc. Consulting * Agile Process * Open Source Advanced Struts2 Workshop, April 28-30, Sunnyvale CA web: http://www.fdar.com - email: [EMAIL PROTECTED] Cheng

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

2008-03-05 Thread Ian Roughley
displayed. I believe it may be based on OS. The solution provided to me was to change the scope interceptor reference to use a session value of "Model" rather than "model" - see below. Model partialEvent /Ian -- Ian Roughley From Down & Around, Inc. Consult

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

2008-03-05 Thread Ian Roughley
les to work through testing it. /Ian Dave Newton wrote: --- Ian Roughley <[EMAIL PROTECTED]> wrote: The solution provided to me was to change the scope interceptor reference to use a session value of "Model" rather than "model" - see below. Model pa

[ANN] Struts2 Workshop - Early Bird Discount ends Friday, March 14th

2008-03-12 Thread Ian Roughley
ow to effectively write applications using Struts2. We'll take a practical and hands-on approach, dividing the time into 40% theory and 60% exercises. Our instructor, Ian Roughley, has extensive experience developing Struts2 applications; is a committer on the Apache Struts2 project; and is the

Re: authentication question

2008-03-12 Thread Ian Roughley
m the s2 dispatcher). Otherwise, I would suggest a servlet filter or header code for all JSPs that make the necessary checks. /Ian -- Ian Roughley From Down & Around, Inc. Consulting * Training / Mentoring * Agile Process * Open Source web: http://www.fdar.com - email: [EMAIL

Re: authentication question

2008-03-12 Thread Ian Roughley
m the s2 dispatcher). Otherwise, I would suggest a servlet filter or header code for all JSPs that make the necessary checks. /Ian -- Ian Roughley From Down & Around, Inc. Consulting * Training / Mentoring * Agile Process * Open Source web: http://www.fdar.com - email: [EMAIL

Re: any struts 2 unit testers out there?

2008-04-04 Thread Ian Roughley
Or look at the xwork / s2 test cases - there are some test classes in there that can help you. /Ian Karr, David wrote: And did you investigate using either of the common Java frameworks for Mock objects, jMock and EasyMock? -Original Message- From: paulbrickell [mailto:[EMAIL P

Re: Does Struts 2 support clustering?

2008-04-10 Thread Ian Roughley
How are you clustering the HTTP session? Usually this involves configuration of the app server so that it is stored in some type of non-transient storage. /Ian mojoRising wrote: We have struts running great on a single server but when we test in our clustered environment there are problems:

Re: Is there such a thing as flash in S2?

2008-04-15 Thread Ian Roughley
There is also a flash result type / interceptor in webwork - very easy (<2 min) to convert to s2. /Ian Don Brown wrote: There is the Struts 2 Scope Plugin [1], which does flash scope and a lot more. Also, the message store interceptor, available in core out-of-the-box, will persist action and

Re: Is there such a thing as flash in S2?

2008-04-17 Thread Ian Roughley
this something that should be developed? Cheers, GB Ian Roughley wrote: There is also a flash result type / interceptor in webwork - very easy (<2 min) to convert to s2. /Ian Don Brown wrote: There is the Struts 2 Scope Plugin [1], which does flash scope and a lot more. Also, the me

Re: Struts 2 providing injection

2007-05-18 Thread Ian Roughley
Struts2, or more precisely XWork, uses an early version of Guice. I was wondering about doing the same thing on a current project, and my initial thought was that you would need to define the beans being injected via the struts.xml configuration file or to provide a way to supply the managed b

Re: Struts 2 validation and Redirect After Post

2007-05-22 Thread Ian Roughley
I think what you are after is a flash scope implementation. There is a flash result and flash interceptor that Pat/Toby checked into the webwork project. With a couple small changes they will work in s2. At some point I guess they should be moved across. /Ian Fowler, Perryn wrote: Hi,

[ANN] "Starting with Struts2" Book

2007-05-24 Thread Ian Roughley
I am pleased to announce the release of the mini-book "Starting with Struts2" from InfoQ.com. "Starting with Struts2" is aimed at those who are new to Strut2, and those familiar with MVC frameworks but unfamiliar with Struts2. It provides everything you need to know to get up and running usin

Re: [ANN] "Starting with Struts2" Book

2007-05-25 Thread Ian Roughley
om: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ted Husted Sent: 25 May 2007 12:40 To: Struts Users Mailing List Subject: Re: [ANN] "Starting with Struts2" Book Is anyone else having trouble logging into the InfoQ site? On 5/24/07, Ian Roughley <[EMAIL PROTECTED]> wrote:

Re: [ANN] "Starting with Struts2" Book

2007-05-29 Thread Ian Roughley
Ah - thanks for the link Ted. And for all the kind words on the list. /Ian Ted Husted wrote: Done :) * http://struts.apache.org/index.html#Newbies On 5/29/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: Good job! Finally a book to recommend to new users :) musachy

Re: [ANN] "Starting with Struts2" Book

2007-05-30 Thread Ian Roughley
Yep. Still in Boston. I'll have to ping them about that. /Ian Ted Husted wrote: On 5/29/07, Ian Roughley <[EMAIL PROTECTED]> wrote: Ah - thanks for the link Ted. And for all the kind words on the list. Don't forget the blog :) * http://husted.com/ted/blog/ Hey, isn&#

Re: [ANN] "Starting with Struts2" Book

2007-05-31 Thread Ian Roughley
anyone else having trouble logging into the InfoQ site? On 5/24/07, Ian Roughley <[EMAIL PROTECTED]> wrote: > I am pleased to announce the release of the mini-book "Starting with > Struts2" from InfoQ.com. > > "Starting with Struts2" is aimed at those who

Re: Flash scope in Struts 2?

2007-06-06 Thread Ian Roughley
There is an interceptor and result in webwork that can be used with about 2 mins for package corrections. /Ian mraible wrote: mraible wrote: Does Struts 2 have support for a flash scope - where messages can be easily stuffed into this scope so they live through a redirect? Thanks, Matt

Re: Struts2 Not Executing Actions

2007-06-14 Thread Ian Roughley
Can you verify that the struts.xml is in the WAR file, and the location of it? /Ian Danny Hurlburt wrote: Hello, I am new to Struts2 and am running into some problems. I have read much of the documentation on the wiki but I am still stuck. I have added the filter declaration and filter ma

Re: Spring-webflow exception

2007-06-19 Thread Ian Roughley
The source is available from the project site on google code. I haven't seen this error before, but I imagine it is a XML config issue. /Ian Rikard wrote: Hi im trying out the spring-weblow example. But i get this exception: 09:43:42,494 ERROR [[/spaceport].listenerStart] Exception sending

Re: Spring-webflow exception

2007-06-19 Thread Ian Roughley
Let me know how it goes. I've worked with it a little, but had to drop the integration due to time constraints. /Ian Rikard wrote: Thanks Ian for the quick response. Now i can continue explore the spring-webflow plugin! :) Ian Roughley wrote: The source is available from the pr

Re: [S2] login action w/FORM authentication?

2007-06-25 Thread Ian Roughley
yes - it is definitely possible. The thing to remember is that if you are using struts2 tags (which I'm pretty sure you are), you need to redirect through an action first so the value stack is available to the tag. /Ian Jon Wilmoth wrote: To add a little more context...The login action load

Re: Implementing wizard like interface in struts

2007-06-25 Thread Ian Roughley
An interceptor, especially useful if the wizard is the only code in a specific directory. /Ian semaj wrote: It's been a week; have not found any solutions... any idea guys!! semaj wrote: Hi there, May be someone has already solved this problem. I need to implement a wizard like page flo

Re: Implementing wizard like interface in struts

2007-06-25 Thread Ian Roughley
My mistake, are you using s1 or s2? I was providing an s2 solution, but on further inspection you may have been asking about s1. /Ian semaj wrote: I didn't get the picture what you are trying to say... Ian Roughley wrote: An interceptor, especially useful if the wizard is the only

Re: Is S2 Ready for Prime Time?

2007-06-26 Thread Ian Roughley
Yes. I know of several companies that are using s2 in production environments. I also know of an extremely large company that has started to use s2 for prototyping. As far as your other questions go - this really depends on the project. Like any design decision, the choices need to made dep

Re: [S2] Template testing

2007-06-27 Thread Ian Roughley
Take a look in the source, I believe there are examples on how the theme templates are tested. /Ian Mark P Ashworth wrote: Good Day, I am busy in the process of developing a theme that uses the css_xhtml theme as the base and currently the process is 1. Make a change to the template 2. Depl

Re: Has anyone tried this in S2

2007-06-29 Thread Ian Roughley
Take a look at the value stack via the debug tag. Usually the property tag will keep stepping through the value stack until a getter for the property is found (the object for the current iteration is placed on the top of the value stack). Although, if you are explicitly defining the object (v

Re: Struts 2 Theme that doesn't generate extra HTML

2007-07-16 Thread Ian Roughley
You can always use JSTL and HTML. /Ian Chris Pratt wrote: Simple seems to be the closest, but unfortunately it is still run through the Freemarker templates, so it has the same overhead that the other themes have. You can, change the simple theme to remove those & the same way any other them

Re: Struts 2 Theme that doesn't generate extra HTML

2007-07-16 Thread Ian Roughley
oscán -Mensaje original- De: Ian Roughley [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 16 de Julio de 2007 09:10 a.m. Para: Struts Users Mailing List Asunto: Re: Struts 2 Theme that doesn't generate extra HTML You can always use JSTL and HTML. /Ian Chris Pratt wrote: Simple seems to be t

Re: Struts 2 Theme that doesn't generate extra HTML

2007-07-16 Thread Ian Roughley
ation?. Regards, Néstor Boscán -Mensaje original- De: Ian Roughley [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 16 de Julio de 2007 11:51 a.m. Para: Struts Users Mailing List Asunto: Re: Struts 2 Theme that doesn't generate extra HTML Then use HTML and the property tag to obtain valu

Re: Date Problem

2007-07-25 Thread Ian Roughley
I believe its localization. try the date tag to specify a date format. /Ian rrecoba wrote: Hi, I´m using an input field where the user must put a date in the format "dd/MM/" But in the Action, when struts 2 set the value for the date attribute, the format change´s to "MM/dd/" , do

Re: Date Problem

2007-07-25 Thread Ian Roughley
try setting it to a locale that uses a date format of "dd/MM/". rrecoba wrote: I don´t have the struts.locale, neither th struts.properties. This is the problem. Ian Roughley wrote: what is the locale set to? It is the "struts.locale" property in the struts.xml

Re: Date Problem

2007-07-25 Thread Ian Roughley
form input field, in my action i get in other format. (I cannot use datetimepicker) Thanks.- Ian Roughley wrote: I believe its localization. try the date tag to specify a date format. /Ian rrecoba wrote: Hi, I´m using an input field where the user must put a date in the format &

Re: S2 + REST urls

2007-07-27 Thread Ian Roughley
I have found the order is important in the struts.xml file - i.e. if you are changing a property that is being used by another (say the names of the mappers for the CompositeActionMapper), you need to add the declaration of the property and then define the object (the CompositeActionMapper) tha

Re: Struts 2 URL parameters lost

2007-07-31 Thread Ian Roughley
e Struts 2 FAQs about the ParametersInterceptor not setting values, but the answer there turns out to be that your setter and getter have to use the same type. (See http://struts.apache.org/2.x/docs/faqs.html, in the Interceptors section.) Ian Roughley has a handy book available as a free PDF on InfoQ.com (http:

Re: S2 : XML vs annotation validation - thoughts?

2007-08-07 Thread Ian Roughley
And you can place them on the domain objects and use a visitor validator ;) Dave Newton wrote: --- j alex <[EMAIL PROTECTED]> wrote: My understanding is that the validators are tied to fields and not methods - right? They *can* be tied to the fields (in other words, every action metho

Re: S2 : XML vs annotation validation - thoughts?

2007-08-07 Thread Ian Roughley
"please enter valid firstname for coapp" if coapp name has an error. I know this can be done easily in XML by having separate entries for primary and coapp and using params to manipulate the error message accordingly. Thanks, Joseph On 8/7/07, Ian Roughley <[EMAIL PROTECTED]> wrot

Re: Extending ActionConfig in Struts2

2007-08-08 Thread Ian Roughley
Have you tried overriding the struts.configuration property with a new Confguration class that builds and returns your new ActionConfig? Vinod Singh wrote: Any clues?? Thanks, Vinod Original Message Subject: Extending ActionConfig in Struts2 From: Vinod Singh <[EMAIL PROTEC

Re: Possible to package struts2 actions/code in a reusable jar?

2007-08-08 Thread Ian Roughley
Looks like you are talking about creating a plugin. I think the issue is that struts.xml needs to be renamed to the plugin specific name. WiltOnTilt wrote: We have several projects that will have many common actions and links to common JSP names. For example, all of our projects will have a

Re: struts2 ajax jsps

2007-08-14 Thread Ian Roughley
This line: There is no Action mapped for namespace /struts/dojo/src/widget/templates and action name TabContainer. Seems to suggest that you may have changed the extension from ".action" to ".html", so s2 is looking for an action called TabContainer. /Ian Struts2 Fan wrote: I met the same e

Re: struts2 ajax jsps

2007-08-15 Thread Ian Roughley
can I make struts to ignore this and read them as html? Or do I have to change the extention to get it work. Thanks for the answer. Ian Roughley wrote: This line: There is no Action mapped for namespace /struts/dojo/src/widget/templates and action name TabContainer. Seems to suggest that yo

Re: struts2 ajax jsps

2007-08-15 Thread Ian Roughley
Struts2 Fan wrote: I know that discussion but it "html" extention locks some of the functionality of struts2, it would be better to change it from "html" to something else. If you say *it is not easy*, at least I will post a message on the appfuse forum. Ian Roughley wrote:

Re: multilingual support in struts2

2007-08-20 Thread Ian Roughley
This is not one of the supported patterns. Although, you should be able to provide a TextProvider implementation to do what you want, rather than using the implementation provided in ActionSupport. /Ian Hari Prasad wrote: Hi frends, I'm able to load my properties from classpath, provided all

Re: Sanitize Text

2007-08-23 Thread Ian Roughley
This is a good approach. In fact, you might start with the params interceptor - as it is responsible for assigning data to the action, and all that is needed is to sanitize before assignment. /Ian Richard Sayre wrote: I was wondering what the best approach would be for taking form data pass

Re: Extended conversation/Wizards

2007-09-17 Thread Ian Roughley
The two options are (1) Spring WebFlow plugin as you mentioned, and (2) Session interceptor, that will move attributes from the action in and out of session scope for the duration of the wizard. /Ian Martin Gilday wrote: Hi, I am currently maintaining a WebWork 2 based web application. A cha

Re: JAAS struts 2 Tutorial?

2007-09-18 Thread Ian Roughley
By implementing the PrincipalAware interface, the Principal object will be injected into the action with those values from the request (the user, roles, etc.). The values can be be used in the action, or the Principal can be exposed with a setter for the actions to use. /Ian Mark McLaren wro

Re: JAAS struts 2 Tutorial?

2007-09-18 Thread Ian Roughley
her, could also be used to declaratively configure those actions that require a specific role from the security context in order to be invoked. /Ian Chris Pratt wrote: On 9/18/07, Ian Roughley <[EMAIL PROTECTED]> wrote: By implementing the PrincipalAware interface, the Principal ob

Re: JAAS struts 2 Tutorial?

2007-09-24 Thread Ian Roughley
particular roles 3) Create an AnnotationRolesInterceptor (as described in this forum) to determine if the user has the role required by the annotation What are the advantages of using acegi over this custom implementation? And what is the license model of acegi? Ian Roughley wrote: If you are

Re: Bug in scenario

2007-09-24 Thread Ian Roughley
This is the fundamental way the value stack works - if it can't evaluate an expression at the topmost level, it starts to work it's way down until the expression can be evaluated. I guess my question really is "why are you trying to set value on a null object?" It sounds to be like you need t

Re: Struts 2: Unable to catch exceptions via global-exception-mappings

2007-10-01 Thread Ian Roughley
Is the exception occurring during the call to execute() (or equivalent) business logic method? This is where the exception handler interceptor is applied. It seems like the exception you are receiving is from a rendering phase outside the execution of the actions logic. /Ian mikeh96 wrote:

Re: Struts 2: Unable to catch exceptions via global-exception-mappings

2007-10-01 Thread Ian Roughley
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:481) at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:685) at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:607) at java.lang.Thread.run(Thread.java:613) Ian Roughley wrote: Is the exception occu

Re: Struts 2: Unable to catch exceptions via global-exception-mappings

2007-10-01 Thread Ian Roughley
ocityResult and configuring it with a template name to return (e.g. 404.vm) if the requested template throws the ResourceNotFoundException a viable one ? Or is there a way to handle this more elegantly ? thanks again for your time! mike Ian Roughley wrote: The result is executed after the i

Re: Struts 2: Unable to catch exceptions via global-exception-mappings

2007-10-01 Thread Ian Roughley
, the exception is not caught. bar /templates/screens/{1}.vm That works like a charm, remove the foo/bar and I get 500 error. struts.xml file is the same as I posted. Any ideas? Ian Roughley wrote: Yes, that's definitely a valid approach. I

Re: ModelDriven Resource Bundle not working ?

2007-10-08 Thread Ian Roughley
Model properties files are used for supplying field description and validation messages for a model object. I know it works ;-) but I don't know how you are using it from the code supplied. /Ian Dave Newton wrote: Hmm, in the docs [1] it says that it will search for "ModelDriven's model", a

Re: Bug in 2.0.9 regarding validation localization?

2007-10-09 Thread Ian Roughley
I can confirm that it works. Do you have the struts-messages.properties defined as an additional properties file in struts.xml? This is not a standard property file name that is picked up by default. /Ian Dean Pullen wrote: Further to my message below, com.opensymphony.xwork2.util.Localized

Re: Bug in 2.0.9 regarding validation localization?

2007-10-09 Thread Ian Roughley
s.xml: struts.custom.i18n.resources=struts-messages If thats what you mean? I get other localized properties from it no problem, e.g. using -Original Message- From: Ian Roughley [mailto:[EMAIL PROTECTED] Sent: 09 October 2007 19:48 To: Struts Users Mailing List Subject: Re: Bug in 2.0.9 regarding valid

Re: Bug in 2.0.9 regarding validation localization?

2007-10-09 Thread Ian Roughley
ion.properties and a package.properties, (exact naming), in the same folder. They both contain: hello=Hello -Original Message- From: Ian Roughley [mailto:[EMAIL PROTECTED] Sent: 09 October 2007 21:00 To: Struts Users Mailing List Subject: Re: Bug in 2.0.9 regarding validation localization? Now I kno

Re: Struts Annotation

2008-05-14 Thread Ian Roughley
Results are annotated at the class level, see http://struts.apache.org/2.0.6/docs/annotations.html /Ian Felipe Lorenz wrote: Hi. Im try to use annotations for action results. but, the annotations is for a class, not for each method in an class... fallow this idea, for each CRUD operations i

Re: Struts Annotation

2008-05-14 Thread Ian Roughley
o implement CRUD methods!! On Wed, May 14, 2008 at 10:08 AM, Ian Roughley <[EMAIL PROTECTED]> wrote: Results are annotated at the class level, see http://struts.apache.org/2.0.6/docs/annotations.html /Ian Felipe Lorenz wrote: Hi. Im try to use annotations for action results.

Re: What can you do with S2?

2008-06-16 Thread Ian Roughley
. This might be writing a very simple app, but it could also be to work on a plug-in, or fix specific bugs. I wonder if there would interest to do something similar for s2? -- Ian Roughley From Down & Around, Inc. Consulting * Training / Mentoring * Agile Process * Open Source web:

Re: [OT] What slows you down?

2008-06-20 Thread Ian Roughley
[EMAIL PROTECTED] wrote: I think a web page generator from action/model would be a huge shot in the arm. Of course it would need to be gussied up a bit, but doing these by hand is a leach on time. I recall a product back in the day that would generate pages from db tables. The is a company

Re: [OT] What slows you down?

2008-06-20 Thread Ian Roughley
And don't forget and the debug interceptor (that I believe dumps to log file/xml) :-) Martin wrote: something about the difference between developer (someone who only works one version of an IDE) and a software engineer who can engineer a solution (regardless of the IDE) for debugging chec

Re: Jazoon 08 conference wo/Struts 2 :(

2008-06-24 Thread Ian Roughley
I was thinking about submitting a talk for Jazoon - not sure what happened, I think the deadline passed before I realized (and the deadline, from what I remember, was really early - maybe 7 months before). /Ian Giovanni Azua wrote: Hi, I attended today the Jazoon conference here in Zurich an

Re: Showing messages after a redirect

2008-07-01 Thread Ian Roughley
Have you looked at the message store interceptor? /ian Antonio Petrelli wrote: 2008/7/1 Dimitris Mouchritsas <[EMAIL PROTECTED]>: ActionMessages msg = new ActionMessages(); msg.add(Constants.MESSAGE_CONFIRM, new ActionMessage("prompt.changes.saved")); saveMessages(request, msg); But when I

Re: Showing messages after a redirect

2008-07-01 Thread Ian Roughley
my mistake, only saw the last message. Antonio Petrelli wrote: 2008/7/1 Ian Roughley <[EMAIL PROTECTED]>: Have you looked at the message store interceptor? For Struts 1? Antonio - To unsubscribe, e-mail:

Re: Firefox 3 and render issues

2008-07-03 Thread Ian Roughley
This might be a dojo issue, as I think nearly all the JS code being loaded is dojo now. Have you tried their mailing lists? /Ian georz1 wrote: I'm using Struts 2.0.11 and it seem with Firefox 3 only there are rendering issues on pages where I have . I can see the page load fully and there is

Re: Struts2 and Jquery problem with LightBox or thickbox

2008-07-15 Thread Ian Roughley
I've used lightbox successfully without problem. If this is the error message it looks like you are passing the height and width attributes as URL params and they are being applied against the action (hence the error). I bet (I don't have the code anymore) these are instead meant to be passed

Re: Struts2 and Jquery problem with LightBox or thickbox

2008-07-15 Thread Ian Roughley
ample, could u pl tell me, was that u were displaying dynamic content or static content. And which ajax framework have u used for thick/light box. In My case I need to get the data from DB, and display accordingly on the THICKBOX. An early reply would be appreciatable. Thanks Ian Roughley wro

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 "ajax

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: 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//.m2/repo. /Ian Arevalo, Cesar (GE Comm Fin, non-ge) wrote: Hi, I am new to struts2, I checked ou

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 p

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 liste

  1   2   >