Re: Simple helloworld test fails with "Could not find action orresult"

2008-03-05 Thread Dave Newton
--- Jeromy Evans <[EMAIL PROTECTED]> wrote: > Any theories where the 4th package is being created? CLUE: take a harder > look at web.xml in the original post. That's why I asked about the actionPackages element; is that it? Dave -

Re: Simple helloworld test fails with "Could not find action orresult"

2008-03-05 Thread Jeromy Evans
I can reproduce it using David's source. In his original broken struts.xml configuration (no namespace specification, reposted below) , four packages are configured: "struts-default" in namespace "", "string-default" in namesapce "", "helloworld" in namespace "", and "com.wamu.struts.helloworld

Re: More Struts Insanity

2008-03-05 Thread Dave Newton
--- Chris Pratt <[EMAIL PROTECTED]> wrote: > Since they're both the same Class (though not the same instance) they > definitely should be assignable, but Name implements Cloneable and > Serializable, not Comparable so it shouldn't be calling compareTo. You know, I'm looking at the OGNL source agai

Re: [struts] More Struts Insanity

2008-03-05 Thread Chris Pratt
On Wed, Mar 5, 2008 at 10:53 PM, Dale Newfield <[EMAIL PROTECTED]> wrote: > Chris Pratt wrote: > > > > > > > Was that case typo (CurrentMember instead of currentMember) introduced > in transcription? I would assume it would not have produced "true" if > it were in your code... > Yup, it was

Re: [struts] More Struts Insanity

2008-03-05 Thread Dale Newfield
Chris Pratt wrote: Was that case typo (CurrentMember instead of currentMember) introduced in transcription? I would assume it would not have produced "true" if it were in your code... -Dale - To unsubscribe, e-mail: [EM

Re: [struts] More Struts Insanity

2008-03-05 Thread Dave Newton
--- Dale Newfield <[EMAIL PROTECTED]> wrote: > ...some of my models implement Comparable, but not nearly all. Not sure > how that slipped through... Probably most of the time people aren't comparing entire objects, but simple properties like Strings or numbery-things, so it hasn't come up until

Re: More Struts Insanity

2008-03-05 Thread Chris Pratt
On Wed, Mar 5, 2008 at 10:20 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Chris Pratt <[EMAIL PROTECTED]> wrote: > > Notice that the last statement (using the OGNL == operator) doesn't > > return anything at all, which makes it useless in a test. > > OGNL actually checks for isAssignableFro

Re: [struts] More Struts Insanity

2008-03-05 Thread Dave Newton
--- Dale Newfield <[EMAIL PROTECTED]> wrote: > There's a chance those bugs were introduced between 2.6.11 and 2.7, but > I'm betting not. Nope; it's in 2.6.9 at least. The behavior happens because of the isAssignableFrom sequence I mentioned in my previous post. Dave --

Re: [struts] More Struts Insanity

2008-03-05 Thread Dale Newfield
Dave Newton wrote: --- Chris Pratt <[EMAIL PROTECTED]> wrote: Notice that the last statement (using the OGNL == operator) doesn't return anything at all, which makes it useless in a test. OGNL actually checks for isAssignableFrom; if either class isAssignableFrom the other it checks for Compa

Re: [struts] More Struts Insanity

2008-03-05 Thread Dale Newfield
Chris Pratt wrote: I added some instrumentation and it appears that OGNL is not calling the equals method when I use the == operator, only when I explicitly call .equals(). Look! A clue! I believe the jar file is ognl-2.6.11.jar Yep: http://jira.opensymphony.com/browse/OGNL-96 http://jira

RE: Simple helloworld test fails with "Could not find action orresult"

2008-03-05 Thread Dave Newton
I think you mentioned this, but is it still broken (no result config) when you take out the actionPackages element? If it is, I have no clue; I can't dupe. I'd have to start over again tomorrow. Dave --- "Karr, David" <[EMAIL PROTECTED]> wrote: > Below the main "Action Information - main" table,

Re: More Struts Insanity

2008-03-05 Thread Dave Newton
--- Chris Pratt <[EMAIL PROTECTED]> wrote: > Notice that the last statement (using the OGNL == operator) doesn't > return anything at all, which makes it useless in a test. OGNL actually checks for isAssignableFrom; if either class isAssignableFrom the other it checks for Comparable and calls com

Re: [struts] More Struts Insanity

2008-03-05 Thread Chris Pratt
On Wed, Mar 5, 2008 at 9:56 PM, Dale Newfield <[EMAIL PROTECTED]> wrote: > Chris Pratt wrote: > > > > Just to be pedantic, can you also verify that: > > > > yields: > > > > ? > All correctly implemented equals methods are symmetric, so in the event > OGNL decides that neither of these ar

FW: get the Locale from Action[S2]

2008-03-05 Thread Raghuveer
>From browser settings request.getLocale() request.getAttribute("org.apache.struts.action.LOCALE") request.getSession().getAttribute(Globals.LOCALE_KEY) -Original Message- From: slideharmony [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2008 2:45 PM To: user@struts.apache.org Sub

Re: [struts] More Struts Insanity

2008-03-05 Thread Dale Newfield
Chris Pratt wrote: Just to be pedantic, can you also verify that: yields: ? All correctly implemented equals methods are symmetric, so in the event OGNL decides that neither of these are null and that it should call the equals() method, it could theoretically do so in either order. I

RE: Simple helloworld test fails with "Could not find action orresult"

2008-03-05 Thread Karr, David
Below the main "Action Information - main" table, the contents of the "Results" tab is empty. > -Original Message- > From: Dave Newton [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 05, 2008 9:21 PM > To: Struts Users Mailing List > Subject: RE: Simple helloworld test fails with "Cou

Struts 2 + GWT problem

2008-03-05 Thread Shoaib Gauhar
Hello, I am trying to integrate Struts 2 and GWT. I am using the tutorial on the following link: http://cwiki.apache.org/WW/struts-2-gwt.html. I have been able to create the deployment structure according to that tutorial. But the problem is that my action does not submit. It doesnt do anything.

More Struts Insanity

2008-03-05 Thread Chris Pratt
I am seeing some very unexpected behavior using OGNL in the Struts tags. I have two objects that contain equivalent Name objects and when I run the following code: it outputs the following: Notice that the last statement (using the OGNL == operator) doesn't return anything at all, whic

RE: Simple helloworld test fails with "Could not find action orresult"

2008-03-05 Thread Dave Newton
And the config browser isn't recognizing the "success" result configuration? Normally it will list the configured results under the information you said it listed. Man, I sure haven't been able to dupe this yet. --- "Karr, David" <[EMAIL PROTECTED]> wrote: > "No result defined for action com.wamu

I cannot transfer property to Form Bean

2008-03-05 Thread ryan webb
Dear fellow Struts users, I am new in using Struts and I request your help. Situation: I am using Netbeans 6.0; Struts 1.2.9; Tomcat 6.0.14 I created an in my jsp page, what is it does is for sorting purposes. here's the snippet: And

RE: Simple helloworld test fails with "Could not find action orresult"

2008-03-05 Thread Karr, David
"No result defined for action com.wamu.struts.helloworld.MainAction and result success" > -Original Message- > From: Dave Newton [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 05, 2008 8:41 PM > To: Struts Users Mailing List > Subject: RE: Simple helloworld test fails with "Could not

RE: Simple helloworld test fails with "Could not find action orresult"

2008-03-05 Thread Karr, David
Without the namespace attribute, config-browser reports this: Action name:main Namespace: Action class: com.wamu.struts.helloworld.MainAction Action method: Parameters: Default location: /struts-helloworld/main.action > -Original Message- > From: Dave Newton [mai

RE: Simple helloworld test fails with "Could not find action orresult"

2008-03-05 Thread Dave Newton
And when you visit that location it's giving you the error about not having a result for "success"? Dave --- "Karr, David" <[EMAIL PROTECTED]> wrote: > Without the namespace attribute, config-browser reports this: > > Action name: main > Namespace: > Action class: com.wamu.struts.helloworld

Re: Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-05 Thread Dave Newton
If you turn on devMode do you see any additional log messages that might indicate a problem? I don't see anything immediately obvious, but it's late and I'm crabby ;) You can also turn the logging levels up for both S2 and XWork and see if any additional information is provided. I'd also fire up t

RE: Simple helloworld test fails with "Could not find action orresult"

2008-03-05 Thread Dave Newton
--- "Karr, David" <[EMAIL PROTECTED]> wrote: > Changing the package name to "default" didn't seem to have an impact on > the error. I assume you meant to do that while not having the namespace > attribute? Correct. I'll try to duplicate your issue tomorrow; you can send me a copy as someone els

Struts 2 issue with Spring, Hibernate, and Tiles

2008-03-05 Thread Kelly Graus
Hello, I am trying to setup my first Struts 2 project with Spring, Hibernate, and Tiles (and only my second Struts 2 project). I think I have Spring, Hibernate, and Tiles all working correctly. I'm using Tomcat 6, with the newest released versions of Struts, Spring, Hibernate, and Tiles. I

RE: Simple helloworld test fails with "Could not find action orresult"

2008-03-05 Thread Dave Newton
Go to http://localhost:8080/YOUR_CONTEXT/config-browser/index.action --- "Karr, David" <[EMAIL PROTECTED]> wrote: > How do you run the config-browser? The wiki page has some info on it, > but it's ambiguous. I copied the jar into WEB-INF/lib and redeployed, > but I'm not sure what to do now.

RE: Simple helloworld test fails with "Could not find action orresult"

2008-03-05 Thread Karr, David
Changing the package name to "default" didn't seem to have an impact on the error. I assume you meant to do that while not having the namespace attribute? > -Original Message- > From: Dave Newton [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 05, 2008 8:05 PM > To: Struts Users Mail

RE: Simple helloworld test fails with "Could not find action orresult"

2008-03-05 Thread Karr, David
How do you run the config-browser? The wiki page has some info on it, but it's ambiguous. I copied the jar into WEB-INF/lib and redeployed, but I'm not sure what to do now. > -Original Message- > From: Dave Newton [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 05, 2008 8:05 PM > To

RE: Simple helloworld test fails with "Could not find action orresult"

2008-03-05 Thread Dave Newton
I'm still a little puzzled by this. If you have a chance could you remove the namespace bit on the package and see what the config-browser reports? I'm also curious what happens if you change the name of the package to "default". Thanks, Dave --- "Karr, David" <[EMAIL PROTECTED]> wrote: > > ---

Tabpanel narrow in Firefox, ok in IE

2008-03-05 Thread Karr, David
Struts 2.0.11, Tomcat 6.0.14, JDK 1.5.0_06. This is probably due to my inexperience with HTML, but I'm experimenting with the tabbedpanel component. I noticed statements that some of the Ajax components don't work in IE. Ironically, when I tested my simple tabpanel page, I found that it has a bu

RE: Simple helloworld test fails with "Could not find action orresult"

2008-03-05 Thread Karr, David
> -Original Message- > From: Wes Wannemacher [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 05, 2008 7:11 PM > To: Struts Users Mailing List > Subject: RE: Simple helloworld test fails with "Could not > find action orresult" > > David, > > This has been bugging me since my first res

RE: Simple helloworld test fails with "Could not find action or result"

2008-03-05 Thread Wes Wannemacher
David, This has been bugging me since my first response... Although it may not explain why it's not working, try adding 'namespace="/"' to your package declaration. I was reading through the docs, and I don't think it indicates that it is necessary. But, just for testing sake, see if that fixes it

Re: Simple helloworld test fails with "Could not find action or result"

2008-03-05 Thread Jeromy Evans
I'm intrigued because of the strange problems you were also having a few days ago. Can you email me me your project as a zip? (directly to the address below) Don't include the libs, but make sure it's clear where they out to be. You're deploying into tomcat 5.x right? Karr, David wrote: ---

RE: Simple helloworld test fails with "Could not find action or result"

2008-03-05 Thread Karr, David
Oh, and if it helps, this is the output on my browser when executing with "debug=xml": class org.apache.struts2.dispatcher.mapper.ActionMapping main / false class com.wamu.struts.helloworld.MainAction USA eng class java.util.Locale US United States English English (United States)

RE: Simple helloworld test fails with "Could not find action or result"

2008-03-05 Thread Karr, David
> -Original Message- > From: Jeromy Evans [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 05, 2008 4:53 PM > To: Struts Users Mailing List > Subject: Re: Simple helloworld test fails with "Could not > find action or result" > > I can't see anything wrong. My guess is still that it st

RE: Simple helloworld test fails with "Could not find action or result"

2008-03-05 Thread Karr, David
> -Original Message- > From: Martin Gainty [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 05, 2008 6:07 PM > To: Struts Users Mailing List > Subject: Re: Simple helloworld test fails with "Could not > find action or result" > > Jeromy is correct > At the very least we'll need to see

Re: Simple helloworld test fails with "Could not find action or result"

2008-03-05 Thread Martin Gainty
Jeromy is correct At the very least we'll need to see the configuration files located in /WEB-INF such as web.xml struts-xml struts-config.xml validation.xml web.xml struts-tags.xml validation.xml struts-tags.xml struts-actionchaining.xml struts-integration.xml struts-jsf.xml These configuration

Re: validation excludeMethods version 2.0.11

2008-03-05 Thread Dave Newton
--- akash agrawal <[EMAIL PROTECTED]> wrote: > I am using validation framework and would like to disable validation for > all the query methods like getA(), getB(), getC(). > > There is a excludeMethods property using which I can turn off validation > for above methods by spelling out each method.

Structure of a Struts Application

2008-03-05 Thread getElectro
Hi ppl, I got a lil doubt, What do you guys are used to do when developing simple applications such as a small BookStore? I did mean what I should use: * Action or DipatchAction ? * form-bean or ActionForm ? * Validate by calling the validate() method on an ActionForm or something els

Re: Simple helloworld test fails with "Could not find action or result"

2008-03-05 Thread Jeromy Evans
I can't see anything wrong. My guess is still that it still hasn't deployed correctly. Time to use the source... Put a breakpoint in your action and trace what happens after you return "success". Immediately you'll have access to the ActionInvocation and ActionConfig. The latter will specif

RE: Simple helloworld test fails with "Could not find action or result"

2008-03-05 Thread Karr, David
> -Original Message- > From: Othon Reyes Sanchez [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 05, 2008 4:24 PM > To: Struts Users Mailing List > Subject: Re: Simple helloworld test fails with "Could not > find action or result" > > Maybe it sounds dumb but where is lyour struts.xml

Re: Simple helloworld test fails with "Could not find action or result"

2008-03-05 Thread Othon Reyes Sanchez
* I do have the Spring plugin in there. Could that be an issue? I'm going to want to use that soon, but I'm not really using it yet. * Not, it is not a problem. Maybe it sounds dumb but where is lyour struts.xml located? In your struts.xml your action named "main2" has no class. can you post m

validation excludeMethods version 2.0.11

2008-03-05 Thread akash agrawal
Hi, I am using validation framework and would like to disable validation for all the query methods like getA(), getB(), getC(). There is a excludeMethods property using which I can turn off validation for above methods by spelling out each method. 1. Is there a way to generalize this so that w

Re: [ANN] Struts 2.0.11.1 General Availability Release with Important Security Fix

2008-03-05 Thread Dave Newton
--- Othon Reyes Sanchez <[EMAIL PROTECTED]> wrote: > Can somebody tell us what was the security problem fixed with this version? Did you consider reading the links provided in the posting? Dave > On Wed, Mar 5, 2008 at 11:41 AM, Rene Gielen <[EMAIL PROTECTED]> wrote: > > > Apache Struts 2.0.11.

RE: Simple helloworld test fails with "Could not find action or result"

2008-03-05 Thread Karr, David
> -Original Message- > From: Jeromy Evans [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 05, 2008 3:11 PM > To: Struts Users Mailing List > Subject: Re: Simple helloworld test fails with "Could not > find action or result" > > I don't see anything wrong with it, provided MainAction

Re: how to aliened checkbox list in a matrix style (10x5) [pic included]

2008-03-05 Thread Othon Reyes Sanchez
I think you have to do it like a huy called mark that has his blog called vita rara. There he explain and post a code of how you can change the layout that is generated by the xhtml theme. Of course there is not a complete solution for your case but i think it can help you alot. On Wed, Mar 5, 200

Re: [ANN] Struts 2.0.11.1 General Availability Release with Important Security Fix

2008-03-05 Thread Othon Reyes Sanchez
Can somebody tell us what was the security problem fixed with this version? On Wed, Mar 5, 2008 at 11:41 AM, Rene Gielen <[EMAIL PROTECTED]> wrote: > Apache Struts 2.0.11.1 is now available from > . > > This release is a fast track security fix r

Re: Struts App - Tomcat on Windows in India and Poland

2008-03-05 Thread Alberto A. Flores
I just solved the same problem on a linux and windows servers. Please use UTF-8. On Wed, Mar 5, 2008 at 5:58 PM, Jeromy Evans < [EMAIL PROTECTED]> wrote: > Adam Gordon wrote: > > > > Maybe if we invented magic, it would allow him to do what he needed > > without following our advice. > > > > --

Re: any tag library to set an object in request in jsp

2008-03-05 Thread Othon Reyes Sanchez
You can use JSTL too. On Wed, Mar 5, 2008 at 5:45 PM, Alberto A. Flores <[EMAIL PROTECTED]> wrote: > In case this was not a Struts question, check out: > > http://java.sun.com/products/jsp/tags/11/syntaxref11.fm14.html > > Hope this helps! > > Alberto > > On Wed, Mar 5, 2008 at 5:08 PM, temp tem

dynamic Field Table

2008-03-05 Thread Othon Reyes Sanchez
Hi to everyone: I'm trying to make a tag that has an "add" button and a "remove" button. The "add" button adds and viceversa with the remove button. Every cell can contain only one of the following type of fields, but you can repeat type of fields in different cells: Text, Datepicker, select, radi

Re: any tag library to set an object in request in jsp

2008-03-05 Thread Alberto A. Flores
In case this was not a Struts question, check out: http://java.sun.com/products/jsp/tags/11/syntaxref11.fm14.html Hope this helps! Alberto On Wed, Mar 5, 2008 at 5:08 PM, temp temp <[EMAIL PROTECTED]> wrote: > I usally use scriptlet in jsp to set some object in request is there a way > tro do

Re: Conversation Scope?

2008-03-05 Thread Othon Reyes Sanchez
Jeromy Evans wrote: *You're correct. ModelDriven does not give you much benefit other than to put a single Model object, rather than the Action, at the top of the ValueStack (the Action falls to second). In many respects, that's a limitation rather than a benefit.* It depends how the architectur

Form bean

2008-03-05 Thread Juanjo Cuadrado
Hi, Where is the Form bean into the request??? What is the label?? I want to put a actionform in the request and I dont know where... (prepopulate???) Thanks.

Re: Simple helloworld test fails with "Could not find action or result"

2008-03-05 Thread Jeromy Evans
I don't see anything wrong with it, provided MainAction returns "success" (MainAction.java wasn't attached). Is it possible you have a conflicting struts.xml deployed in the webapp, or any plugin jars deployed? The only other time I've seen the response you're returning the correct result cod

Re: Simple helloworld test fails with "Could not find action or result"

2008-03-05 Thread Wes Wannemacher
On Wed, 2008-03-05 at 14:48 -0800, Karr, David wrote: > I'm sure I have a simple error here, but I don't see it. > > I'm trying to construct a simple "hello, world" app with v2.0.11. I > have an "index.jsp" that redirects to "main.action". I started out with > the "main" action just having a re

Re: Struts App - Tomcat on Windows in India and Poland

2008-03-05 Thread Jeromy Evans
Adam Gordon wrote: Maybe if we invented magic, it would allow him to do what he needed without following our advice. --adam Thanks Adam! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

how to aliened checkbox list in a matrix style (10x5) [pic included]

2008-03-05 Thread xianwinwin
Hi there, I wonder if anyone knows how to align the check-box list in groups of 10 (or 20). as you can see from the picture below, the list (US states) are aliened vertically (not a user friendly) is there anyway to have them in a matrix-style (meaning all states will be in a matrix of 10x5 (plus

Simple helloworld test fails with "Could not find action or result"

2008-03-05 Thread Karr, David
I'm sure I have a simple error here, but I don't see it. I'm trying to construct a simple "hello, world" app with v2.0.11. I have an "index.jsp" that redirects to "main.action". I started out with the "main" action just having a result (name="success") going to "/main.jsp". That appears to work

Re: How can I combine a result (tiles + xslt)?

2008-03-05 Thread Wes Wannemacher
On Wed, 2008-03-05 at 17:18 -0500, Griffith, Michael * wrote: [snip] > > > Is this a good application for writing my own interceptor for? You would want to write your own "Result Type" for this. Writing your own results is not as well documented as writing your own interceptors, but since y

Re: REST and i18n

2008-03-05 Thread Jeromy Evans
Magnus Haraldsen Amundsen wrote: Hi, Using the REST-plugin (Struts 2.1.1) and with a requirement for i18n URLs. Is it possible to have a single action that maps to different URLs using the REST-plugin? Ie. OrdersController.index() kicks in on both the english and the norwegian word in the U

Re: any tag library to set an object in request in jsp

2008-03-05 Thread Nils-Helge Garli Hegvik
Since this is a Struts user list, I assume that you're looking for a "Struts way" to do this. In that case, the taglib documententation would be a very good place to start! You don't specify which version of Struts, so here are some references: Struts 1: http://struts.apache.org/1.3.8/struts-tagli

How can I combine a result (tiles + xslt)?

2008-03-05 Thread Griffith, Michael *
Hi, Can anyone advise me on the best way to approach this problem? I have a Struts2 application using Tiles 2 for UI. I have a page where the body of my tiles composition needs to be generated dynamically from XSLT. I want to transform XML into HTML tags including a form and inputs, which w

any tag library to set an object in request in jsp

2008-03-05 Thread temp temp
I usally use scriptlet in jsp to set some object in request is there a way tro do this using any tag library instead of this <%request.setAttribute(CustomReviewFormflowAction.IReviewFormFlowProperties.ATTRIBUTE_REVIEW_FORM_SECTION,vReviewFormSectionHeader); %> can I use any exsisting taglibra

RE: Re: Index.jsp hit 20 times and fails with "The page isn't redirecting properly"

2008-03-05 Thread Karr, David
The code of IndexAction doesn't matter, as before I set "actionPackages" it wasn't even going there at all. In any case, it's execute() method just returns SUCCESS. The two "index.jsp" files are not identical. I even tried renaming the second one to "index2.jsp" (and changing the reference), but

Re: get the Locale from Action[S2]

2008-03-05 Thread Dave Newton
--- Adam Gordon <[EMAIL PROTECTED]> wrote: > That's what I figured, so how does it determine the user's locale? The dispatcher gets it from the request and puts it in the context map. Dave > aj2r wrote: > > Return the locale of the user's browser. > > Adam Gordon wrote: > >> dumb question, but d

Re: get the Locale from Action[S2]

2008-03-05 Thread Adam Gordon
That's what I figured, so how does it determine the user's locale? aj2r wrote: Return the locale of the user's browser. Adam Gordon wrote: dumb question, but does that return the locale of the user or the locale of the server on which the web app is running? if the former, how does it det

REST and i18n

2008-03-05 Thread Magnus Haraldsen Amundsen
Hi, Using the REST-plugin (Struts 2.1.1) and with a requirement for i18n URLs. Is it possible to have a single action that maps to different URLs using the REST-plugin? Ie. OrdersController.index() kicks in on both the english and the norwegian word in the URL: /orders --> OrdersControll

Re: Struts App - Tomcat on Windows in India and Poland

2008-03-05 Thread Adam Gordon
Jeremy- Dude, don't waste your time with this guy. He's been given all the answers he needs and he ignores them. Basically, he needs to ensure that his web app uses UTF-8 character encoding and it will work correctly, but instead of following everyone's advice here, he keeps posting new mes

Re: Problem with logic:equal tag

2008-03-05 Thread Laurie Harper
Something like should produce what you want. The option values/names will be retrieved from the mobileEmailProviders each time the page is rendered; nothing is hardcoded into the page. Does that not do what you need? L. Ken Bowen wrote: The list comes up out of the database, and

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

2008-03-05 Thread Ian Roughley
I'm not sure, and I'm only taking an educated guess at it being OS/platform-dependent (since a JAR that worked for me had problems for another user). Unfortunately I can't reproduce the error. I'm all for doing the work to fix the problem if someone has the problem and cycles to work through

RE: short-circuit="true" not working in field validator

2008-03-05 Thread Chamara Gunaratne
ong. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ NOD32 2924 (20080305) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -

RE: short-circuit="true" not working in field validator

2008-03-05 Thread Dave Newton
--- Chamara Gunaratne <[EMAIL PROTECTED]> wrote: > Is anybody using the short-circuit attribute in the validations > successfully? Yes. I'm not in front of my dev machine so I can't do much more at the moment. I don't recall seeing anything wrong with your configuration. Dave

RE: short-circuit="true" not working in field validator

2008-03-05 Thread Chamara Gunaratne
Is anybody using the short-circuit attribute in the validations successfully? -Original Message- From: Chamara Gunaratne [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2008 12:56 PM To: 'Struts Users Mailing List' Subject: RE: short-circuit="true" not working in field validator --

Re: short-circuit="true" not working in field validator

2008-03-05 Thread Laurie Harper
Chamara Gunaratne wrote: Dave: Thank you for your reply. I changed type attribute to "requiredstring". But it doesn't help with the short-circuit problem. Yes, both the first name and last name validators fire successfully and the regex is correctly evaluated. Just the short-circuit part is no

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

2008-03-05 Thread Dave Newton
--- 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 > partialEvent > Hmm, why does that fix it? If it's an OS-dependent issue we sh

Re: Problem with logic:equal tag

2008-03-05 Thread Antonio Petrelli
2008/3/5, Ken Bowen <[EMAIL PROTECTED]>: > The list comes up out of the database, and changes (slowly) over time. > There will be other cases were the list changes rapidly. So I can't > hardcode it onto the page. What do you mean with "hard code"? Can't you use EL to determine the value that it

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

2008-03-05 Thread Ian Roughley
There have been cases (unfortunately not with myself or the tech reviewer, otherwise it would have been corrected) when the same error message (No object in the CompoundRoot has a publicly accessible property named 'model' (no setter could be found). - [unknown location]) has been displayed. I

Re: Problem with logic:equal tag

2008-03-05 Thread Ken Bowen
The list comes up out of the database, and changes (slowly) over time. There will be other cases were the list changes rapidly. So I can't hardcode it onto the page. Antonio Petrelli wrote: 2008/3/5, Ken Bowen <[EMAIL PROTECTED]>: SELECTED > Why did you

Re: Struts 2 + Freemarker - how to set a select list option to selected from a request param

2008-03-05 Thread Laurie Harper
Jonny Cavell wrote: If I set a request param with ?professionId=3, this does not make the professionId with value 3 selected. What am I doing wrong? <@s.select name = "professionId" key="profession" headerKey="" headerValue="select_profession" list="p

Re: Index.jsp hit 20 times and fails with "The page isn't redirecting properly"

2008-03-05 Thread Laurie Harper
What does the index action look like? What does it return? And what's in /jsp/index.jsp? It's not just a copt of /index.jsp is it, with the same redirect directive...? ;-) L. Karr, David wrote: Note that the "index.jsp" at the root of the webapp looks like this: <% response.sendRedir

Re: Struts 2: map-backed bean

2008-03-05 Thread Laurie Harper
Yes, ParameterAware is the interface if you want HTTP request parameters. L. Cheng Wei Lee wrote: Should I be implementing ParameterAware interface instead since the RequestAware gives me attributes instead of parameters from the form? On Wed, Mar 5, 2008 at 1:15 AM, Ian Roughley <[EMAIL PROTE

Re: [ANN] Practical Apache Struts2 Web 2.0 Projects

2008-03-05 Thread guillermodl
Im having 1 little problems with Practical Apache Struts2 Web 2.0 Projects examples The first one is that even EntityManager do not persist when submiting the contestants says "detached persist", I have solved it using entityMgr.merge(event); instead of entityMgr.persist(event); the second is a pr

Re: Problem with logic:equal tag

2008-03-05 Thread Antonio Petrelli
2008/3/5, Ken Bowen <[EMAIL PROTECTED]>: > > > property="mobileEmailService" > value=" property='key'/>">SELECTED > > > > > > putting the correct "value"? Antonio - To

Re: Problem with logic:equal tag

2008-03-05 Thread Ken Bowen
Argh! Can you point me at a technique for accomplishing this? The input for the SELECT is a list of pairs of string (A1,A2) where A1 is to be the value tag of the option, and A2 is the visible display for the option element. The list comes up out of the database, and changes (slowly) over tim

RE: short-circuit="true" not working in field validator

2008-03-05 Thread Chamara Gunaratne
-Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2008 12:38 PM To: Struts Users Mailing List Subject: Re: short-circuit="true" not working in field validator by what Im seeing from XWork validators the first 'required' validator you declared is u

Re: short-circuit="true" not working in field validator

2008-03-05 Thread Dave Newton
--- Martin Gainty <[EMAIL PROTECTED]> wrote: > by what Im seeing from XWork validators the first 'required' validator you > declared is unnecessary as the second regex validator will identify that > condition > http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/va > lidator/V

Re: short-circuit="true" not working in field validator

2008-03-05 Thread Martin Gainty
by what Im seeing from XWork validators the first 'required' validator you declared is unnecessary as the second regex validator will identify that condition http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/va lidator/Validator.html Anyone? M- - Original Message -

[ANN] Struts 2.0.11.1 General Availability Release with Important Security Fix

2008-03-05 Thread Rene Gielen
Apache Struts 2.0.11.1 is now available from . This release is a fast track security fix release, including important security fixes regarding possible cross site scripting exploits when using the or Struts 2 tags. For more information about the

Re: Problem with logic:equal tag

2008-03-05 Thread Dave Newton
--- Ken Bowen <[EMAIL PROTECTED]> wrote: > property="mobileEmailService" > value=" property='key'/>">SELECTED > > That's not valid JSP; you can't nest custom tags like that. Dave - To unsubscrib

Problem with logic:equal tag

2008-03-05 Thread Ken Bowen
Hi, I'm using: Struts 1.2.7; Tomcat 5.5.25; Java 1.5 I am having a problem using logic:equal in implementing a SELECT statement on a page. It should be simple. The code snippet is this (stripped out scopes to simplify it): value="property='key'/>">SELECTED > The

Re: Spring-injected model results in error for ModelDriven action after 10mins

2008-03-05 Thread Dave Newton
--- Jonny Cavell <[EMAIL PROTECTED]> wrote: > I get the following error, but only after about 10 mins after a server > restart. To fix, I need to restart the server. > > Unable to instantiate Action, xxx, defined for 'aaa' in namespace '/' > Error creating bean with name 'xxx' defined in class pa

Does an Annotation exist to mark a setter as persist to session?

2008-03-05 Thread matt.payne
Same goes for getter. Does an Annotation exist to say get this value from session if not in the request? If these exist, it might take some boilerplate code way that would otherwise involve http request/session objects in an action Does this exist or anything on the roadmap? Matt -- View this

Spring-injected model results in error for ModelDriven action after 10mins

2008-03-05 Thread Jonny Cavell
I get the following error, but only after about 10 mins after a server restart. To fix, I need to restart the server. Unable to instantiate Action, xxx, defined for 'aaa' in namespace '/' Error creating bean with name 'xxx' defined in class path resource [spring/struts2/yyy.xml]: Error setting p

RE: short-circuit="true" not working in field validator

2008-03-05 Thread Chamara Gunaratne
-Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2008 10:54 AM To: Struts Users Mailing List Subject: Re: short-circuit="true" not working in field validator --- Chamara Gunaratne <[EMAIL PROTECTED]> wrote: > I am using struts2 to validate form inp

Re: short-circuit="true" not working in field validator

2008-03-05 Thread Dave Newton
--- Chamara Gunaratne <[EMAIL PROTECTED]> wrote: > I am using struts2 to validate form input. For some reason I can't figure > out, the short-circuit="true" attribute is not working. Everything else > seems to be working fine. The validation rules are embedded in a > action_class_name-validation.x

Re: Submitting in Struts 2 from outside the Form

2008-03-05 Thread Dave Newton
--- Matthew Seaborn <[EMAIL PROTECTED]> wrote: > Is there any documentation regarding how to submit a Struts 2 form using > something other than the submit button whilst keeping all of the > AJAX/Javascript validation etc. > > We are putting in drop down menus and would like to be able to do it >

Re: application based annotations

2008-03-05 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > In other world, do you mean that an action with an > interceptor ref will not work with struts 2.0.11 ? I mean there's no interceptor annotations in 2.0.11 and, as I said, I don't recall if it's been added in 2.1 or not. > An idea about the availlability of the 2.1

iterating through a Dynaactionform Arraylist bean

2008-03-05 Thread jmejiaa
Hey folks, this is my first post. I have a little problem with an arrayList. I'm trying to populate a drop down box in my main JSP. This is what's happening. I have a dynaactionform with a years property which is an arraylist of reportYear objects. A reportYear object has a getYear and a setYear.

short-circuit="true" not working in field validator

2008-03-05 Thread Chamara Gunaratne
Hello, I am using struts2 to validate form input. For some reason I can't figure out, the short-circuit="true" attribute is not working. Everything else seems to be working fine. The validation rules are embedded in a action_class_name-validation.xml file. Here's a sample from the xml file:

  1   2   >