Re: pls help: how to upload file if use struts 1.x

2008-03-05 Thread Antonio Petrelli
2008/3/5, john lee [EMAIL PROTECTED]: Could any expert tell me how to upload file if use struts 1.x? any example will be greatly appreciate. Google struts file upload and the first result is: http://www.roseindia.net/struts/strutsfileupload.shtml Antonio

Re: get the Locale from Action[S2]

2008-03-05 Thread aj2r
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 determine the user's locale? thanks. --adam aj2r wrote: slideharmony

apostrophe does not appear

2008-03-05 Thread Paranoid_Fabio
Hello. I've a problem. Apostrophe in resource files of my application does not appear. example: Property1=L'ID è sbagliato is showed (using text tag in the jsp page) as : LID è sbagliato I'm using ISO-8859-1 in Eclipse editor and I include this on top of every jsp page: %@ page language=java

Re: apostrophe does not appear

2008-03-05 Thread Antonio Petrelli
2008/3/5, Paranoid_Fabio [EMAIL PROTECTED]: Hello. I've a problem. Apostrophe in resource files of my application does not appear. example: Property1=L'ID è sbagliato is showed (using text tag in the jsp page) as : LID è sbagliato If you are using Struts 2, then the reason is that

Re: application based annotations

2008-03-05 Thread meissa . sakho
In other world, do you mean that an action with an interceptor ref will not work with struts 2.0.11 ? An idea about the availlability of the 2.1 release ? thanks. Meissa Dave Newton [EMAIL PROTECTED] 04/03/2008 17:50 Veuillez répondre à Struts Users Mailing List user@struts.apache.org A

Submitting in Struts 2 from outside the Form

2008-03-05 Thread Matthew Seaborn
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 from there via a Javascript call. Many thanks.

Re: apostrophe does not appear

2008-03-05 Thread Paranoid_Fabio
Solved! Thank you :) Paranoid_Fabio wrote: Hello. I've a problem. Apostrophe in resource files of my application does not appear. example: Property1=L'ID è sbagliato is showed (using text tag in the jsp page) as : LID è sbagliato I'm using ISO-8859-1 in Eclipse editor and I

Re: how to pass object through request parameter

2008-03-05 Thread Arpan Debroy
Thanks Nils.. On Wed, Mar 5, 2008 at 1:13 PM, Nils-Helge Garli Hegvik [EMAIL PROTECTED] wrote: You can store objects as request attributes, which lives as long as the request. If you need an object to live between requests, use the session. Nils-H On Wed, Mar 5, 2008 at 8:24 AM, Arpan

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

2008-03-05 Thread Jonny Cavell
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=professions

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:

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

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

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 from

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.xml

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 input.

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

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

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 path

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): select name=mobileEmailService logic:iterate id=item

Re: Problem with logic:equal tag

2008-03-05 Thread Dave Newton
--- Ken Bowen [EMAIL PROTECTED] wrote: logic:equal name=configCommsForm property=mobileEmailService value=bean:write name='item' property='key'/SELECTED/logic:equal That's not valid JSP; you can't nest custom tags like that. Dave

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

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

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

Re: Problem with logic:equal tag

2008-03-05 Thread Antonio Petrelli
2008/3/5, Ken Bowen [EMAIL PROTECTED]: select name=mobileEmailService logic:iterate id=item name=mobileEmailProviders option value=bean:write name='item' property='key'/ logic:equal name=configCommsForm property=mobileEmailService value=bean:write

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

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

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: %

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

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]: select name=mobileEmailService logic:iterate id=item

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.

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 has?

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. interceptor-ref name=scope param name=sessionModel/param param name=keypartialEvent/param

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 not

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 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
PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ NOD32 2924 (20080305) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com - To unsubscribe, e-mail: [EMAIL

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: Problem with logic:equal tag

2008-03-05 Thread Laurie Harper
Something like html:select property=mobileEmailService html:optionsCollection name=mobileEmailProviders property=key value=value/ /html:select should produce what you want. The option values/names will be retrieved from the mobileEmailProviders each time the page is rendered;

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

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

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

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 does that

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 that

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

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

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:

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

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 you

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. I then

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

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

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 result

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 code

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: 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

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

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

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 temp [EMAIL

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. --adam

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 http://struts.apache.org/download.cgi#struts20111. This release is a fast track security fix release,

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,

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 returns

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.1 is now

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

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

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 located?

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 specify

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

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. 1.

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: 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 the

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 still

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: debug parameters/ context struts.actionMapping classclass org.apache.struts2.dispatcher.mapper.ActionMapping/class namemain/name namespace//namespace /struts.actionMapping attr/

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 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 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 response...

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

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:

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 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 Mailing

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.

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
--- 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 else

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

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:

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

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 find

I cannot transfer html:select 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 html:select property=formatList in my jsp page, what is it does is for sorting purposes. here's the snippet: html:form

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

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: !-- Original: s:property value='%{originalMember.name}'/ (s:property value='%{originalMember.name.class.name}'/) -- !-- Current:

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 Could not

Re: [struts] More Struts Insanity

2008-03-05 Thread Dale Newfield
Chris Pratt wrote: !-- Equals(): s:property value='%{originalMember.name.equals(currentMember.name)}'/ -- Just to be pedantic, can you also verify that: !-- Equals(): s:property value='%{currentMember.name.equals(originalMember.name)}'/ -- yields: !-- Equals(): true -- ? All correctly

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

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

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: !-- Equals(): s:property value='%{originalMember.name.equals(currentMember.name)}'/ -- Just to be pedantic, can you also verify that: !-- Equals(): s:property

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 s:if test. OGNL actually checks for isAssignableFrom; if either class isAssignableFrom the other it checks for Comparable and calls

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

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

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 s:if test. OGNL actually checks for isAssignableFrom; if either class isAssignableFrom the other it checks for

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

  1   2   >