Re: Form values getting empty After validation failure

2010-03-24 Thread pundarik rajkhowa
Hi Adam, You are right. The problem is fixed now. However I am facing a different issue now. I also have a couple of html select controls in the page. For them , how do I get the select state restored ? As of now , they take the default value even after making a different selection. regards, Pund

Re: [Struts 2.1.8.1] Internationalization: how to remain in the current page ?

2010-03-24 Thread Zoran Avtarovski
I wrote a small custom tag which builds the link with the existing action and parameters. This way it just reloads the page. I also included a parameter that wouldn¹t allow the change (a jQuery dialog would give the user feed back) to take place if there might me an issue with system integrity ­ fo

RE: org.apache.struts2.dispatcher.FilterDispatcher cannot be cast to javax.servlet.Filter

2010-03-24 Thread Martin Gainty
The chief Struts build and release engineer from ohio put that into the latest 2.1.8 distro.. import javax.servlet.Filter public class FilterDispatcher implements StrutsStatics, Filter { d/l the struts-2.1.8 distro if you need that functionality my danish is rusty but here goes *Tak a

Convention plugin doesn't exclude packages

2010-03-24 Thread jonathan doklovic
the exclude packages functionality wasn't actually implemented in the convention plugin. I've logged an issue and attached a patch that fixes it. https://issues.apache.org/jira/browse/WW-3418 Thanks, - Jonathan - To unsubscri

Interesting behavior of struts 2.1

2010-03-24 Thread Eduard Neuwirt
Hello all, I am facing a strange problem. If I redefine in web.xml the struts-filters (see following xml-snip), the struts works fine, but I loose my location settings after FORWARDING. Any idea ? Please advice. Regards Eduard P.S.: I haven't debugged the struts code. openSessionIn

Re: Struts 2 AJAX grid

2010-03-24 Thread srinivas1977
Hi Evans, I am working on Struts 2 Ajax Grid. I am getting the results using Ajax but could not able to display it in Grid. Grid is simple with sorting and pagination but no inline editining. The grid should be displayed inside Struts 2 Tabbed Panel. I am not what to use for the Grid inside the

RE: Form values getting empty After validation failure

2010-03-24 Thread adam pinder
as long as you are simply re-displaying the same form associated with the same action it should work like any other page - the input fields are struts2 tags and there are getters for each property in the action it should retrieve the value and re-display them i have a similar thing and it w

RE: Weird behavior in getText()

2010-03-24 Thread adam pinder
the only thing i have different is a space before and after the = in the resource file apart from that i'm using getText as you are. adam > Date: Tue, 23 Mar 2010 11:12:19 -0700 > Subject: Weird behavior in getText() > From: thechrispr...@gmail.com

Re: retrieve i18n application messages.

2010-03-24 Thread Stephen Ince
Stan, Thx for your response. I was under the assumption that struts had a search pattern for resource bundles and I wanted to use the same search pattern, or at least leverage their api. Steve - Original Message - From: To: "Struts Users Mailing List" Sent: Wednesday, March 24, 20

Struts OSGi doesn't support Spring outside of bundles

2010-03-24 Thread jonathan doklovic
Details are here: https://issues.apache.org/jira/browse/WW-3417 I've already attached a patch that corrects the issue. - Jonathan - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: us

Re: Form values getting empty After validation failure

2010-03-24 Thread Alex Rodriguez Lopez
Hi, don't know if it will be usefull, but some days ago someone in the user list suggested using the getters and setters of the properties that map to your form to call get() and put() methods of the current session ( ActionContext.getContext().getSession() ) , so you get "automatic" session

Re: org.apache.struts2.dispatcher.FilterDispatcher cannot be cast to javax.servlet.Filter

2010-03-24 Thread Wes Wannemacher
That error doesn't make a lot of sense... Check a few of the following - Which version of Glassfish are you using (2.x, 3) Restart glassfish Make sure that you don't have servlet.jar or jsp-api.jar in your /WEB-INF/lib Deploy the app to another container (jetty or tomcat) to make sure that your

Re: retrieve i18n application messages.

2010-03-24 Thread stanlick
S2 doesn't do anything special. It leverages the native Java resource bundles and locale. I would advise you to begin by looking at the Locale class. On Wed, Mar 24, 2010 at 4:01 AM, Stephen Ince wrote: > Does anyone know how to programmatically retrieve the i18n messages outside > the context

retrieve i18n application messages.

2010-03-24 Thread Stephen Ince
Does anyone know how to programmatically retrieve the i18n messages outside the context of an action class. I know with the action you can call getText. I need similiar functionality. I have access to the http request headers. I assume I need the accept language request header. e.g. String acc