Re: Setting object from param tag fails in Struts 2.2.1

2010-11-17 Thread Raj Nagappan
I did some experimenting with this by removing the lazy load and putting the actual object directly on a property in the action class. This had no effect. So then I created a catch-all method setKeywordList(Object obj) to see what was being passed in. The actual data being passed in is a

Re: Another stupid question re: Interceptors

2010-11-17 Thread Paweł Wielgus
Hi all, then You have to state it: (pseudo code!) @Result(name='input', value='identify-success.jsp') in VerifyAction. But when it comes to action and result configuration best thing to do is: http://poulwiel.blogspot.com/2009/09/config-browser-plugin-in-struts2.html Best greetings, Paweł

Re: Another stupid question re: Interceptors

2010-11-17 Thread Li Ying
I suggest you to do these things in the following way: (1)put 2 method in IdentifyAction. The first [execute] method returns [input], show the input page to user. (2)In the Identify-input.jsp, submit fields to [IdentifyAction] itself, but another method: [verify] (3)when validation fails, the

Re: Another stupid question re: Interceptors

2010-11-17 Thread Greg Akins
On Wed, Nov 17, 2010 at 8:14 AM, Li Ying liying.cn.2...@gmail.com wrote: I suggest you to do these things in the following way: This is where I think I messed things up. My identifyAction didn't have setters/getters for the fields because the verifyAction captured the results of that input.

Re: Spring context for package

2010-11-17 Thread stanlick
Josep -- I believe this is what you are looking for. http://blog.springsource.com/2007/06/11/using-a-shared-parent-application-context-in-a-multi-war-spring-application/ Peace, Scott 2010/11/17 Josep María Formentí Serra jmforme...@aia.es Thanks Dave and Chris, Chris, that it's nice, we

Re: Setting object from param tag fails in Struts 2.2.1

2010-11-17 Thread Li Ying
I don't think this is a bug. Because the basic idea of WEB app is: everything is passed as String. Actually, there is a special layer in struts2 for data conversion. Your action may take int/long/boolean/date or something else as it's parameters, but all the original request parameters are

Re: Label problem in struts2

2010-11-17 Thread Emil Dombagolla
Try with, $getText('Label.Name') Emil On Tue, Nov 16, 2010 at 8:45 PM, stanl...@gmail.com wrote: Can we see the rest of your JSP? My hunch is, you are also using a textfield that is bringing the label in as well. On Tue, Nov 16, 2010 at 6:32 AM, Prabhubalaji Ragavan

OGNL map key reading

2010-11-17 Thread Emil Dombagolla
Dear all, - s:property value=currentPageHotelList[#stat.index].room0/ //this works , i want room0 make

Re: OGNL map key reading

2010-11-17 Thread Steven Yang
so currentPageHotelList[#stat.index] gives a Map? if ur using an iterator u can just do s:iterator value=list var=map -- of course u can use top as well but l like giving it a name s:property value=map[#roomindex]/ /s:iterator On Wed, Nov 17, 2010 at 4:13 PM, Emil Dombagolla

Re: Setting object from param tag fails in Struts 2.2.1

2010-11-17 Thread Maurizio Cucchiara
2010/11/17 Raj Nagappan r...@velocitylabs.com I would say this is a regression bug from 2.0.x, yes? I guess you're right. Take a look at https://issues.apache.org/jira/browse/WW-1960 Could you open an issue, referencing the one above? I'm sure someone helps you. In the meanwhile could you try

Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Aaron Brown
I've been working on implementing Struts 2.1.8 on WebSphere 6.1 and I'm having trouble with the convention plugin and annotation-based configuration. It appears that none of my struts configs are being scanned and/or processed from the annotations. Here's what I know: 1) Struts2 and WebSphere is

Filed Error message withput bullets.

2010-11-17 Thread Satheesh Kannan A B
Hi, I need to display the field error message below each text field without the bullet points. Please suggest me a how to do. Since am getting error message with bullet points. Thanks in Advance. Satheesh Kannan A B ::DISCLAIMER::

Re: Filed Error message withput bullets.

2010-11-17 Thread Maurizio Cucchiara
Did you try to redefine css property like list-style-type? 2010/11/17 Satheesh Kannan A B satheesh.kan...@hcl.com Hi, I need to display the field error message below each text field without the bullet points. Please suggest me a how to do. Since am getting error message with bullet

Re: Filed Error message withput bullets.

2010-11-17 Thread Chris Pratt
You can either update the standard theme template, create your own theme template, or use CSS to style the bullet points to look any way you would like. (*Chris*) On Wed, Nov 17, 2010 at 9:05 AM, Satheesh Kannan A B satheesh.kan...@hcl.com wrote: Hi, I need to display the field error

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Dave Newton
Without further information it'll be difficult to help; is devMode turned on? Do you have DEBUG set for *everything*, or just s2 packages, or xwork, or...? It shouldn't matter, but do you have the WebFear filter compatibility flag set (or don't need it due to patch level)? Dave On Wed, Nov 17,

Re: Filed Error message withput bullets.

2010-11-17 Thread Dave Newton
On Wed, Nov 17, 2010 at 12:05 PM, Satheesh Kannan A B wrote: I need to display the field error message below each text field without the bullet points. Please suggest me a how to do. Since am getting error message with bullet points. What version of Struts? Dave

RE: Filed Error message withput bullets.

2010-11-17 Thread Satheesh Kannan A B
Struts version 2.1.8. Thanks and Regards, Satheesh Kannan A B -Original Message- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: Wednesday, November 17, 2010 10:49 PM To: Struts Users Mailing List Subject: Re: Filed Error message withput bullets. On Wed, Nov 17, 2010 at 12:05

Re: Filed Error message withput bullets.

2010-11-17 Thread Chris Pratt
Sorry, I assumed it was Struts 2. I didn't remember Struts 1 automatically putting the errors in lists, did it? (*Chris*) On Wed, Nov 17, 2010 at 9:18 AM, Dave Newton davelnew...@gmail.com wrote: On Wed, Nov 17, 2010 at 12:05 PM, Satheesh Kannan A B wrote: I need to display the field error

Re: Filed Error message without bullets.

2010-11-17 Thread Anjib Mulepati
I need help on same problem . I am using 1.3.8. Anjib On 11/17/2010 12:18 PM, Dave Newton wrote: On Wed, Nov 17, 2010 at 12:05 PM, Satheesh Kannan A B wrote: I need to display the field error message below each text field without the bullet points. Please suggest me a how to do. Since am

RE: Filed Error message withput bullets.

2010-11-17 Thread Satheesh Kannan A B
Hi, I have configured in struts.properties as theme=simple. I don't know where to define list-style-type. Please provide me some examples. Thanks and Regards, Satheesh Kannan A B -Original Message- From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] Sent: Wednesday,

Re: Filed Error message withput bullets.

2010-11-17 Thread Maurizio Cucchiara
take a look at http://struts.apache.org/2.2.1/docs/struts-2-themes.html 2010/11/17 Satheesh Kannan A B satheesh.kan...@hcl.com Hi, I have configured in struts.properties as theme=simple. I don't know where to define list-style-type. Please provide me some examples. Thanks and Regards,

Re: Filed Error message withput bullets.

2010-11-17 Thread Chris Pratt
Maybe try http://lmgtfy.com/?q=CSS+Style+UL (*Chris*) On Wed, Nov 17, 2010 at 9:21 AM, Satheesh Kannan A B satheesh.kan...@hcl.com wrote: Hi, I have configured in struts.properties as theme=simple. I don't know where to define list-style-type. Please provide me some examples. Thanks

Re: Filed Error message withput bullets.

2010-11-17 Thread Maurizio Cucchiara
more specifically http://struts.apache.org/2.2.1/docs/struts-2-themes.html#Struts2Themes-SpecifyingTheCSSUsedByTheStruts2Tag You should also consider to switch to css or xhtml theme template in order to see display message below fields 2010/11/17 Maurizio Cucchiara maurizio.cucchi...@gmail.com

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Aaron Brown
Thanks for the quick reply. Here is my full struts.properties: = = = = = = = = = = = = = = = = = = struts.enable.DynamicMethodInvocation = true struts.devMode = true struts.convention.classes.reload = true struts.ui.theme = simple struts.convention.action.disableScanning = false

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Harsh C
Hi, I have an input page which has a checkbox list in a form. Clicking submit takes the user to a 2nd JSP. The problem is that when I don't select a checkbox and click on submit, I get to the output page, of course no value is displayed on the output page though. But if I select a checkbox and

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Dave Newton
Failed validation will send user back to the input result. Dave On Nov 17, 2010 2:29 PM, Harsh C hchau...@gmail.com wrote: Hi, I have an input page which has a checkbox list in a form. Clicking submit takes the user to a 2nd JSP. The problem is that when I don't select a checkbox and click

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Harsh C
So, result input is some kind of default result that struts sends a user to? Is validation turned on by default, as I did not specify any validation? If so, how can I turn it off? Thanks, HC On Wed, Nov 17, 2010 at 11:39 AM, Dave Newton davelnew...@gmail.com wrote: Failed validation will send

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Dave Newton
Could also be a type conversion error. On Nov 17, 2010 2:46 PM, Harsh C hchau...@gmail.com wrote: So, result input is some kind of default result that struts sends a user to? Is validation turned on by default, as I did not specify any validation? If so, how can I turn it off? Thanks, HC

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Harsh C
I think that is probably what it was. Basically in my action, I had a list of model objects (modelList) and a model object (selectedModel). I changed the Model type object selectedModel to String type selectedModelId and things work fine now. Now my question is, if I had a checkboxlist backed by

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Harsh C
I am using Struts 2.2.1 and would like to get some AJAX functionality in my app, specifically, I would like to use Dojo. The Dojo plugin was deprecated for this release, is there some good documentation/tutorials for getting into Struts 2.2.1 with DOJO?

Re: Struts2, convention plugin, websphere 6.1

2010-11-17 Thread Dave Newton
Please start new threads for new questions. There's a jquery plugin, or you can use any framework in its raw form. The latter is almost always my personal recommendation so the JavaScript can be optimized for the application. Dave On Nov 17, 2010 4:30 PM, Harsh C hchau...@gmail.com wrote:

struts2.1 validation problem! with fileUploadStack

2010-11-17 Thread Mead Lai
Hello all, I am now using struts2 UserInfoAction-doModify-validation.xml to validate my form input. It is work fine. but when I add a interceptor into this action, the validation not work anymore. action name=doModify method=doModify

Re: struts2.1 validation problem! with fileUploadStack

2010-11-17 Thread Mead Lai
While, I add the default interceptor into that action, everything work fine. But I am also do not know why,Ha ha... Thank you, all... interceptor-ref name=defaultStack/ interceptor-ref name=fileUploadStack/ Regards, Mead On Thu, Nov 18, 2010 at 2:19 PM, Mead Lai laiqi...@gmail.com wrote:

Label problem in struts2

2010-11-17 Thread Prabhubalaji Ragavan
Hi I am using the below code to label, which is using a resource bundle. When the application starts up, the label appears twice. JSP code --- s:label key=Label.Name / Resource bundle - Label.Name = Legal Name Output --- Legal Name Legal Name