s2 in tomcats shared lib/

2008-04-18 Thread Marc Ende
Hi, a few years ago everyone told that's not good to have the sturts.jar's in a shared location in a tomcat-instance. What about now (struts 2)? I'm asking because I've got several webapps which belongs together and most of them are build using struts 2 and spring. After assembling the war (di

Re: Trouble executing scripts in returned ajax content

2008-04-18 Thread Jeromy Evans
Jukka Välimaa wrote: Thanks for input, Yes, I have debug on. Interestingly enough, with firefox it gives me just this: DEBUG: Error running scripts from content However, I just noticed that with IE, I get this: DEBUG: Error running scripts from content:Could not complete the operation due to er

Re: Clearing form value

2008-04-18 Thread Dustin S.
If your using Spring as the objectFactory then you would need to define your action bean as prototype instead of singleton in your applicationContext.xml for example: On Fri, Apr 18, 2008 at 10:59 PM, aum strut <[EMAIL PROTECTED]> wrote: > yes you are right > > not providing complete informatio

Re: Clearing form value

2008-04-18 Thread aum strut
yes you are right not providing complete information in one mail is really not good i wil take this in to account in future... well i am not using spring in my application i have a simple form which is sending the input values to my action where i am adding these in to the data base using simple

Re: ParameterAware Arrays

2008-04-18 Thread Dustin S.
Hi Gabriel, I just wanted to say that I ended up putting instance variables with getters/setters for the request parameters (as you suggested). I wasn't aware they auto-binded like that. Thanks for your response. Dustin. On Wed, Apr 16, 2008 at 4:55 PM, Gabriel Belingueres <[EMAIL PROTECTED]> w

Re: Clearing form value

2008-04-18 Thread Dave Newton
Are you using Spring? Would it be possible for you to provide more useful information in your initial emails rather than generating a stream of a half-dozen or more? It's rather frustrating; we've gone through this before. One common error is to not have your action defined as being "prototype" s

Re: Clearing form value

2008-04-18 Thread aum strut
currently i am using struts-2.0.11.1 On 4/19/08, Dave Newton <[EMAIL PROTECTED]> wrote: > > Which version of Struts? > > --- aum strut <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > a little point which i want to know. > > i have a form by which we can add billing detais in the database > > > >

RE: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Brad A Cupit
>> I'm wondering if this is related to the CGLIB issue. Hrm...he's using the redirectAction which has been immune to the CGLIB issue (assuming we're talking about the same issue). The 'chain' result is prone to the CGLIB problem. Having said that, I haven't used Struts 2.1.x at all. The exception

how to replace a button (ajax) with a simple link?

2008-04-18 Thread xianwinwin
I have the following button-action: this button, when clicked, does some action (removes a form from the screen) I would like to 'convert' the button (the image-button) into a simple link: close-form (so the user actually clicks the link and

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Dave Newton
--- Toni Lyytikäinen <[EMAIL PROTECTED]> wrote: > Well, as I already posted in the issue, it turned out that this is somehow > caused by the Spring plugin. If I disable the Spring plugin, it works fine > (apart from the fact that my DAOs won't get injected to the actions, of > course). I'm wonderi

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Randy Burgess
Make sure to set your actions in your application context with scope="prototype". Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: Toni Lyytikäinen <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Fri, 18 Apr 2008 21:54:14 +0300 > To: Struts U

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Toni Lyytikäinen
Well, as I already posted in the issue, it turned out that this is somehow caused by the Spring plugin. If I disable the Spring plugin, it works fine (apart from the fact that my DAOs won't get injected to the actions, of course).

Re: Clearing form value

2008-04-18 Thread Dave Newton
Which version of Struts? --- aum strut <[EMAIL PROTECTED]> wrote: > Hi all, > > a little point which i want to know. > i have a form by which we can add billing detais in the database > > form is working fine, it is adding the value to the database as expected, > the problem whcih i am facing i

Re: Clarification on Type Conversion?

2008-04-18 Thread Jukka Välimaa
Yes. Struts calls the setters in the target action based on the name of the form element. If the name attribute of your select field is 'status', it will try to call method setStatus, with the value of the form element--in this case id, as it's the listKey--as the parameter. On Fri, Apr 18, 2008 a

Clearing form value

2008-04-18 Thread aum strut
Hi all, a little point which i want to know. i have a form by which we can add billing detais in the database form is working fine, it is adding the value to the database as expected, the problem whcih i am facing is even after successfully submitting the values, it is not clearing the form value

RE: Clarification on Type Conversion?

2008-04-18 Thread Griffith, Michael *
Martin, First of all, thanks for the reply. The full action is listed below: I guess what is not clear to me is whether I need to create a StrutsTypeConverter to convert the selected item from the list back to a model. As I have been thrashing about trying to get this to work, I have tried cr

RE: Clarification on Type Conversion?

2008-04-18 Thread Griffith, Michael *
Jukka, First of all, thanks for the reply. I don't think I made my question clear enough. The form isn't editing the model/object called Status, its editing a model on which Status is an associated object. Such as in this example, where I have a class named Call, that has a field called Status

Re: Clarification on Type Conversion?

2008-04-18 Thread Martin Gainty
Good Afternoon Mike- Tough to diagnose without seeing the service interface defined in your action e.g. public class HHSAction implements Preparable { private HHSService service; } package quickstart.service; import java.util.List; import quickstart.model.Person; public interface HHSService {

Re: Clarification on Type Conversion?

2008-04-18 Thread Jukka Välimaa
name="status" means that you are trying to pass the status object itself as a parameter to a method setStatus. That is not possible--you need to pass the id of the status if you want to indicate which status the user chose, like this for example: You also need setId method in the action you submi

ParametersInterceptor problem for simple java.util.Date.

2008-04-18 Thread sharath karnati
Title Date Date (e.g. 24.12.2009) When it is calling action setDate(Date date) method it is throwing below error 10:34:06,841 ERROR ParametersInterceptor:204 - ParametersInterceptor - [setParam eters]: Unexpected Exception caught setting 'date' on 'class events.EventManager : Error settin

RE: Struts2, SiteMesh and Struts Menu

2008-04-18 Thread Matthew Seaborn
Discovered it was a simple case of user (i.e. my) error. The actual problem was "The displayer mapping for the specified MenuDisplayer does not exist." which was causing the JSP to not be rendered and thus resulting in SiteMesh to report the error I detailed previusly. -Original Message---

Clarification on Type Conversion?

2008-04-18 Thread Griffith, Michael *
Hello All, I am having a problem with Struts 2 form submission, because I believe a related field is not being converted correctly. I have read the documentation at: http://struts.apache.org/2.x/docs/select.html and http://struts.apache.org/2.0.11.1/docs/type-conversion.html It is my unders

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Toni Lyytikäinen
Well, I found out that the problem is not the ognl expression, as trying to set static parameters won't work. I already filed a bug, WW-2600 My action config is quite large, I wonder which are the relevant parts...? Here's the interceptor stack:

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Al Sutton
Toni, Can you post your updated action config and the full stack trace here, there may be something simple we can spot before needing to log a bug. Al. - Original Message - From: "Toni Lyytikäinen" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, April 18, 2008 2:2

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Toni Lyytikäinen
Yes I forgot to mention in the original post that I already changed the "redirect-action" to "redirectAction" as per the migration guide here: http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html On Fri, Apr 18, 2008 at 4:26 PM, Dave Newton <[EMAIL PROTECT

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Dave Newton
I'm confused; I didn't think "redirect-action" would even work; that result type isn't mapped in 2.1 and you should get an exception stating exactly that. Dave --- Jukka Välimaa <[EMAIL PROTECTED]> wrote: > For Struts 2.1.1, use type="redirectAction" instead of > type="redirect-action". I just h

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Toni Lyytikäinen
Yep, already did that as per the migration guide, but the problem could to be the ognl expression which doesn't seem to work in 2.1.1. I'll have to look into it further. And yes, the exception actually causes an HTTP status 500 with Caught OgnlException while setting property 'name' on type 'org

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Al Sutton
Toni, Try using redirectAction instead of redirect-action. Al. - Original Message - From: "Don Brown" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, April 18, 2008 2:12 PM Subject: Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Jukka Välimaa
For Struts 2.1.1, use type="redirectAction" instead of type="redirect-action". I just had the pleasure of debugging some problems caused by it. On Fri, Apr 18, 2008 at 4:12 PM, Don Brown <[EMAIL PROTECTED]> wrote: > Hmm...what should happen is those exceptions should be logged as a > warn, but the

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Don Brown
Hmm...what should happen is those exceptions should be logged as a warn, but the process should continue like normal. If that isn't the case, definitely file a bug and put it against 2.1.2 Don On Fri, Apr 18, 2008 at 11:11 PM, Toni Lyytikäinen <[EMAIL PROTECTED]> wrote: > Hello, > > I'm in the

Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Toni Lyytikäinen
Hello, I'm in the process of converting a Struts 2.0.11 application to Struts 2.1.1, and ran into some trouble concerning the action result configuration in struts.xml. Basically this is what I had in 2.0.11: Users_edit true ${user.username} This resulted in an url like http://.../Users_

Re: [S2] IE 7 - Secure and non-secure pop up message when using https

2008-04-18 Thread Jeromy Evans
Simon Sew wrote: Hi, I'm trying to create a simple ajax using struts2. The ajax is running fine.But I'm trying to fix this error message when using https server. The alert message is "This page contains both secure and nonsecure items. Do you wish to display the nonsecure items?". ...

Re: Struts2 Array of Elements

2008-04-18 Thread Dave Newton
--- Arun <[EMAIL PROTECTED]> wrote: > I have > > > > > And in action class I have > private String[] arr; > and getter and setters. > > But it causes an error . It might be helpful to be more specific. Dave - To unsubscrib

Re: FileUpload exception

2008-04-18 Thread Pablo Vázquez Blázquez
Hi, Any idea? Pablo Vázquez Blázquez escribió: Hi! How and where can I catch a org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException to inform the user? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: doesn't have attribute in the tld.

2008-04-18 Thread Dave Newton
--- zubair syed <[EMAIL PROTECTED]> wrote: > the documentation or strut 2 core say has a var as attribute . but > the tld doesn't define the var attribute. > > please advice what is correct one. S2.0: id, S2.1: var. Dave - To

Struts2 Array of Elements

2008-04-18 Thread Arun
Hi, I have a neat strust2 app with spring/hibernate and jsp. I have set of array properties. How do I populate to action. I am using JSP/JSTL and no ognl or struts tags. I have And in action class I have private String[] arr; and getter and setters. But it causes an error . How could I popula

[S2] IE 7 - Secure and non-secure pop up message when using https

2008-04-18 Thread Simon Sew
Hi, I'm trying to create a simple ajax using struts2. The ajax is running fine.But I'm trying to fix this error message when using https server. The alert message is "This page contains both secure and nonsecure items. Do you wish to display the nonsecure items?". Here's my code. <%@ page cont

Re: Tiles2 runtime definition

2008-04-18 Thread Antonio Petrelli
2008/4/17, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > I think the tiles definition attributes should be exposed through the > tiles-plugin XML file. Can you elaborate on this? I wish to know what's your point. Thanks Antonio