Re: Struts 2.1.2 REST plug-in

2008-08-26 Thread Dustin Pearce
*is *cant Damn iPhone Sent from my iPhone On Aug 26, 2008, at 3:15 PM, Dustin Pearce <[EMAIL PROTECTED]> wrote: Problem us you can parameterize the actionRedirect vs. a straight servletRedirect. Unless that was fixed. Sent from my iPhone On Aug 26, 2008, at 3:10 PM, "Musa

Re: Struts 2.1.2 REST plug-in

2008-08-26 Thread Dustin Pearce
Problem us you can parameterize the actionRedirect vs. a straight servletRedirect. Unless that was fixed. Sent from my iPhone On Aug 26, 2008, at 3:10 PM, "Musachy Barroso" <[EMAIL PROTECTED]> wrote: On Tue, Aug 26, 2008 at 5:43 PM, stanlick <[EMAIL PROTECTED]> wrote: I have decided to dive i

Re: struts-hibernate-mysql date problem

2008-08-24 Thread Dustin Pearce
The best way to handle dates globally in your application is to use a TypeConverter by extending ognl.DefaultTypeConverter; and overriding public Object convertValue(Map map, Object object, Class aClass). You register your type converter in xwork-conversion.properties ja

Re: [S2] Does struts set null values for pojo fields?

2008-08-21 Thread Dustin Pearce
What you are saying when you post user.group.id = '' is to set the group object of the user id property to null. What you want to say is set user.group to null. To do that create a TypeConverter for Group rather than try to maintain the id directly. This way when the id (String representa

Re: teardown

2008-08-20 Thread Dustin Pearce
What about Don's OSGi plugin? I have not tried it buy it seems like a good fit, if I understand the question. Sent from my iPhone On Aug 20, 2008, at 10:47 AM, "Musachy Barroso" <[EMAIL PROTECTED]> wrote: I guess you could write a custom action mapper, the mapper would detect that the request

Re: [S2]Problems using property of POJO stored in a HashMap stored in the session

2008-08-19 Thread Dustin Pearce
tell.) /Ylva On Tue, Aug 19, 2008 at 5:20 PM, Dustin Pearce <[EMAIL PROTECTED] > wrote: Everything is fine except try: you don't need the %{#thisValue}, its already being evaluated. You also don't need the set, just navigate the object graph in your test. On Aug 19,

Re: how to use pager tag in struts2?

2008-08-19 Thread Dustin Pearce
Most likely it is a problem on how you are handling the request in your action. Are you using the HttpServletRequestAware interface? Dave is right though, it is generally bad form to make your Actions ServletRequest dependent. One way to fix this is to have a setter/getter for maxPageItem

Re: [S2]Problems using property of POJO stored in a HashMap stored in the session

2008-08-19 Thread Dustin Pearce
Everything is fine except try: you don't need the %{#thisValue}, its already being evaluated. You also don't need the set, just navigate the object graph in your test. On Aug 19, 2008, at 5:43 AM, Ylva Degerfeldt wrote: Hi, First of all: This problem is about jsp tags. Secondly: This

Re: DOJO Dialog Problem? Please help me

2008-08-19 Thread Dustin Pearce
It sounds like you want your iFrame to put up a modal? dialog on the page that contains the iframe? This can be difficult if the pages are served from different servers. You are getting into cross-site scripting issues. If I remember there are ways to sign or secure scripts these days so

Re: Object put in HttpSession can't be found by S2

2008-08-18 Thread Dustin Pearce
Thanks Dave. So without the # it only hunts for wabbits in the value stack? -D On Aug 18, 2008, at 8:51 AM, Dave Newton <[EMAIL PROTECTED]> wrote: --- On Mon, 8/18/08, Martin Gainty wrote: yes OGNL will 'hunt' for Page,Request,Session andd then application for #attr.VariableName http://struts.a

Re: Object put in HttpSession can't be found by S2

2008-08-18 Thread Dustin Pearce
Isn't OGNL supposed to search the value stack, then request, then session for a property value? Or his was a s:if test, so it is only the value stack? Sent from my iPhone On Aug 18, 2008, at 4:02 AM, "Ylva Degerfeldt" <[EMAIL PROTECTED]> wrote: Thank you all for your answers! "#session.skillsF

Re: Struts loses action configuration

2008-08-18 Thread Dustin Pearce
Are you seeing any thing in the log that would suggest that the app was reloaded? Are there any exceptions before the missing configuration? When you first start it up you can address this action fine? What does the action do/use? How long before the action starts thowing the error? Sent from