RE: Mapping of form object to a java bean

2009-08-31 Thread Lee Clemens
First off, you don't necessarily need getters for every form field (or any) What IDE are you using? Most should generate setters for you pretty easily, once you declare the class variables. -Original Message- From: vishalj [mailto:vish...@ivycomptech.com] Sent: Friday, August 28, 2009 1:

Re: Mapping of form object to a java bean

2009-08-31 Thread Rusty Wright
You could do it with lombok: http://projectlombok.org/features/index.html vishalj wrote: Is it possible to map all the form fields from struts form to some java bean without writing getter and setters in the action class for each field --

Re: How To Post A Message To the Struts User Mailing List

2009-08-31 Thread Java Struts
Hey, thanks a lot for your help. On Mon, Aug 31, 2009 at 5:52 PM, phillips1021 wrote: > > Someone asked me this on a different thread. > > I use nabble.com (http://www.nabble.com/Struts---User-f206.html) to > search, > read, post new topics, and reply to topics on the Struts user mailing list.

code inserting data into database twice

2009-08-31 Thread Struts234
Hi folks, I wrote the following code to insert values into database. But it's crazy, this is inserting the values twice. here are the code below. if(activity.equalsIgnoreCase(" declineParticipation")){ if(isTokenValid(request)){

How To Post A Message To the Struts User Mailing List

2009-08-31 Thread phillips1021
Someone asked me this on a different thread. I use nabble.com (http://www.nabble.com/Struts---User-f206.html) to search, read, post new topics, and reply to topics on the Struts user mailing list. After I subscribed (see http://www.nabble.com/mailing_list/MailingListOptions.jtp?forum=206) to the

Re: ResourceBundle with DB backend

2009-08-31 Thread Dave Newton
Martin Gainty wrote: this is good information where is QueryRunner? Commons DbUtils. where to obtain a working PHP version (dll/so or source) for drupal site? The Drupal site: http://drupal.org/ would be my first choice. Dave -

Re: Convention Plugin and Method Called In Action Class

2009-08-31 Thread phillips1021
I thought that was the case. One of the references I'm using for the Convention plugin is the MEAP draft of Struts 2 in Practice (was sorry to learn that the book isn't being finished, the first few chapters were excellent). Using the bang (!) operator doesn't work with the Convention plugin. O

Re: Convention Plugin and Method Called In Action Class

2009-08-31 Thread Wes Wannemacher
On Mon, Aug 31, 2009 at 4:27 PM, Java Struts wrote: > Hi, > > could you please tell me how to post my question to this list? > You just did... The next one will cost you $1 (just kidding), but for your next question, you'd be better off sending a separate email (not a reply to an existing message)

RE: Any way to inject Spring bean properties into Struts plugin properties?

2009-08-31 Thread KARR, DAVID (ATTCINW)
> -Original Message- > From: Wes Wannemacher [mailto:w...@wantii.com] > Sent: Monday, August 31, 2009 1:35 PM > To: Struts Users Mailing List > Subject: Re: Any way to inject Spring bean properties into Struts > plugin properties? > > On Mon, Aug 31, 2009 at 4:30 PM, KARR, DAVID (ATTCINW)

Re: Any way to inject Spring bean properties into Struts plugin properties?

2009-08-31 Thread Wes Wannemacher
On Mon, Aug 31, 2009 at 4:30 PM, KARR, DAVID (ATTCINW) wrote: > > After looking at the Spring injection page again, I see the possibility > that this only works with Struts2.  Is that correct? > That is correct... I do believe there is information on Spring + Struts 1 here - http://static.springs

RE: Any way to inject Spring bean properties into Struts plugin properties?

2009-08-31 Thread KARR, DAVID (ATTCINW)
> -Original Message- > From: KARR, DAVID (ATTCINW) > Sent: Monday, August 31, 2009 1:25 PM > To: user@struts.apache.org > Subject: Any way to inject Spring bean properties into Struts plugin > properties? > > It's been quite a while since I've been in here, and I have some > questions abou

Re: Convention Plugin and Method Called In Action Class

2009-08-31 Thread Java Struts
Hi, could you please tell me how to post my question to this list? Thanks, On Mon, Aug 31, 2009 at 4:13 PM, phillips1021 wrote: > > I'm learning to use the Convention Plugin. > > I understand from the excellent notes posted on the Wiki > (http://cwiki.apache.org/WW/convention-plugin.html) that

Any way to inject Spring bean properties into Struts plugin properties?

2009-08-31 Thread KARR, DAVID (ATTCINW)
It's been quite a while since I've been in here, and I have some questions about things just about that old. :) I've been asked to look at an app using Struts 1.2.7, to see whether I can change it from using build-time environment properties to run-time, using Spring. I've read about (http://cwik

Convention Plugin and Method Called In Action Class

2009-08-31 Thread phillips1021
I'm learning to use the Convention Plugin. I understand from the excellent notes posted on the Wiki (http://cwiki.apache.org/WW/convention-plugin.html) that the plugin finds the Action classes and maps those action classes to Action names and results to specific JSPs. For example: Action Class

Re: [U] Email Validation Issue

2009-08-31 Thread Norris Shelton
I wrote one that appears to work.  I copied the contents of TegexFieldValidator to get it to work.  Is there a need for more of the validators to support collections?     Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Shelton Consulting, LLC ICQ# 26487421 AIM NorrisEShelto

Convention plugin: @Result name aliases?

2009-08-31 Thread Alex Siman
I have LoginAction which maps to "login.jsp". How to use the same JSP for "input" (or whatever else) result w/o using of result location? ...for now I have this workaround, which I dislike: @Results({ @Result( name = Action.INPUT, location = "login.jsp"

Re: ajax validation problem in IE8

2009-08-31 Thread Mitch Claborn
Some more info: The generated HTML is below. validation.js (in the css_xhtml theme) uses this line to find the element before which to insert the new error div. var firstCtrNode = findWWCtrlNode(enclosingDiv); // either wwctrl_ or wwlbl_ That function looks for a child div or span whose c

Re: Radio options left aligned

2009-08-31 Thread Dave Newton
Martin Gainty wrote: if you want to take a look https://issues.apache.org/struts/browse/WW-3231 Please post the rendered HTML of the form and radio buttons. If it's rendering as the other commenter stated then it's an issue with people not understanding CSS, not Struts. Dave

RE: Radio options left aligned

2009-08-31 Thread java
Thanks Andy. The docs recomend not doing that, but it seems to work fine. I ended up just copying radiomap.ftl to /templates/simple since there aren't any radio buttons I want to be listed outside of the tr and td tags I added to the template. -Original Message- From: Andy Law Subj

Re: How to pass NON-ASCII characters from one JSP to another JSP via ur

2009-08-31 Thread Greg Lindholm
If you are using Tomcat as a server then you will need to add URIEncoding="UTF-8" attribute to the Connector in the server.xml file, If not specified, ISO-8859-1 will be used [1]. This URIEncoding attribute applies only to GET requests (not POST). [1] http://tomcat.apache.org/tomcat-5.5-doc/confi

RE: ResourceBundle with DB backend

2009-08-31 Thread Martin Gainty
this is good information where is QueryRunner? where to obtain a working PHP version (dll/so or source) for drupal site? thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertrauli

RE: ResourceBundle with DB backend

2009-08-31 Thread Mike Baranski
Tommy, Here you go, this is what I did. I don't know if it's the "best" way, but it works: http://mikeski.net/site/node/37 Mike. >-Original Message- >From: Tommy Pham [mailto:tommy...@yahoo.com] >Sent: Friday, August 28, 2009 12:44 PM >To: Struts Users Mailing List >Subject: Re: Resour

RE: Radio options left aligned

2009-08-31 Thread Martin Gainty
if you want to take a look https://issues.apache.org/struts/browse/WW-3231 thanks Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenge

RE: Radio options left aligned

2009-08-31 Thread Martin Gainty
a bug with s:form which does'nt respect the style attributes of the encompassing tags Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfa

How to pass NON-ASCII characters from one JSP to another JSP via ur

2009-08-31 Thread vishalj
Hi all, I use the following in my JSP code. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> and the URL looks something like this, Here gamecurrency code contains the value £ . But when its sent from browser via its £ again but when its disp

How to pass NON-ASCII characters from one JSP to another JSP via ur

2009-08-31 Thread vishalj
Hi all, I use the following in my JSP code. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> and the URL looks something like this, Here gamecurrency code contains the value £ . But when its sent from browser via its £ again but when i

RE: Radio options left aligned

2009-08-31 Thread Andy Law
Lee Clemens-4 wrote: > > Doesn't seem to work, but maybe my description was unclear. > > I'm trying to get this: > () OptA () OptB () OptC > > to look like this: > () OptA > () OptB > () OptC > > theme="simple" prints them all in order > theme="xhtml" prints them inside the same td tag (same

Re: There is no Action mapped for namespace / and action name

2009-08-31 Thread Paweł Wielgus
Hi, try to use this: http://cwiki.apache.org/S2PLUGINS/config-browser-plugin.html it helps in solving configuration related issues. Best greetings, Paweł Wielgus. 2009/8/31 Prabhakar Peri : > Hi, > > I have a struts2 application which is working fine. > > After I have enabled Tiles in this appli