RE: RE: loading Dropdown dynamically from database
I think Eclipse auto-compiles by default. What is this? DomainDAO.listDomain(dt_oid) Is dt_oid null at this point? (Add a debugging statement) Have you posted code for DomainDAO? I apologize if I've missed it. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Tomcat 7 supported?
Tomcat 7 changes include "Switch from AnnotationProcessor to InstanceManager." Struts 2.2.1.1 fails to work on Tomcat 7 due to java.lang.ClassNotFoundException: org.apache.AnnotationProcessor. Is anything being done to address this? Or is Struts not going to be supported on Apache Tomcat 7? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
[SOLVED] RE: Dispatcher with precompiled JSP
My mistake, there needs to be a slash after the context, otherwise the page was not loading completely (still not exactly sure way, probably due to mod_jk - part of the page loaded, but not the s:action tag/dispatcher) -Original Message- From: j...@leeclemens.net [mailto:j...@leeclemens.net] Sent: Tuesday, January 05, 2010 4:57 PM To: user@struts.apache.org Subject: Dispatcher with precompiled JSP Hello, I have an action result type dispatcher with param name location equal to the path to the JSP, but I have precompiled the JSPs and it now seems the dispatcher cannot locate the JSP class. I tried changing the location to the fully qualified class name of the compiled JSP with the same result: There is no Action mapped for action name MyAction (unknown location) Is there a way to reference the precompiled JSP in the dispatcher? Any help would be appreciated. Thanks, Lee - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Unique Id creation
OP: What Struts tag are you using to upload multiple files at the same time? I may be wrong, but I didn't know this was possible with Struts. If so, what filename are they given by default? I use file upload tags but they are saved as default-named files I can access via the File setter in my Action (file.getAbsolutePath()). Otherwise, I would suggest going with a solution along the line of PK's solution with UUID (probably best with the ms timestamp) as part of the file name or using SecureRandom.nextInt and Integer.MAX_VALUE. To be extra safe, you could have a static Set to maintain all file names and ensure it not is contained in that Set before creating it (and populate the Set during initialization). TG, Out of curiosity, why would the current milliseconds past epoch need to be zero-padded? (besides code written for ~277 years from now, when it still likely wouldn't matter?) -Original Message- From: Todd Grigsby [mailto:strutsu...@tgrigsby.com] Sent: Tuesday, December 15, 2009 3:02 PM To: Struts Users Mailing List Subject: Re: Unique Id creation jayakumar ala wrote: > Hi All, > I am using struts2 in my web application. > Which is the best way to create unique Id for each file upload i do in my > application...? > > Thanks > Ala > > I've always used the original filename with a time stamp, down to the millisecond formatted with leading zeros and without separators, appended to the end. If a create fails, I wait a few milliseconds and regenerate the filename. The nice part about the time stamp is that you have the date and time the file was uploaded in the name itself. TG - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: MySQL + JDBC
Not to sound like a jerk, but have you gotten JDBC (MySQL Connector/J) working with a MySQL 64-bit server? Or is this specifically a Struts issue? If so, what message/condition do you receive? Or are you merely asking if MySQL 64-bit is compatible with ODBC [OT]? -Original Message- From: Todd Grigsby [mailto:strutsu...@tgrigsby.com] Sent: Monday, December 14, 2009 9:57 PM To: Struts Users Mailing List Subject: Re: MySQL + JDBC Not that I wanted to get into a debate about the usefulness of ODBC, but the Java-based web services we have aren't the only things that connect to these databases, and going through ODBC has been, for the last 10 years, a very nice and consistent way to connect across all our applications and utilities. We have, at one time or another, supported all of the following: MySQL Oracle SQL Server Informix DB2 mSQL Pervasive SQL MS Access (pre-Jet) And a few others, and we have connected to these databases via ODBC all along the way. Keeping the connection mechanism consistent has made development work in a number of languages simple. So while I certainly appreciate everyone's enthusiasm for talking directly to MySQL, I have a legacy code base that works *REALLY* well through ODBC, and I'd like to stick with it. So one more time for the folks at home: Is there anyone out there who has managed to get MySQL 64-bit to work via ODBC? TG - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
dojo datetimepicker not invoking setter
Hello, It seems as though using a Dojo element is not invoking the setter in my action, and I am not certain why. I hope I am simply missing something? Struts 2.1.8, Tomcat 6.x, Firefox 3.5.x I have included the following jars in WEB-INF/lib, and have the following inside the tag of the action's JSP: Jars: freemarker-2.3.15.jar struts2-dojo-plugin-2.1.8.jar struts2-json-plugin-2.1.8.jar json-lib-2.1.jar Using s:textfield tag invokes the setter as expected; however, using sx:datetimepicker and tag does not invoke setter. <%-- --%> HTML produced when using and : djConfig.searchIds.push("widget_631437215"); JavaScript entries are present in head tag, and in Firefox's View Page Source I can click on them and access the JavaScript source. Action contains: public void setAddMeasurementDate(String addMeasurementDate) { System.out.println("- Date: `" + addMeasurementDate + "\""); this.addMeasurementDate = addMeasurementDate; } I tried nesting the s:textfield inside the sx:datetimepicker tag as well, but setter is still not invoked. I can't seem to find any useful information about this issue. I have tried and , with the same result (setter not being invoked) (and sx:submit does not refresh the page, but does invoke execute()). Any help is greatly appreciated. Thanks, Lee - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
deserializable ActionSupport
Hello, I (my IDE) noticed a warning showing that my Struts 2 Actions (they extend com.opensymphony.xwork2.ActionSupport) may be deserialized, compromising security. The IDE (IntelliJ 8.1) further states that the class may be deserializable as it supports the Serializable interface (ActionSupport does) and its readObject() method is not defined to immediately throw an error. Please excuse my naivety or if this is off-topic, but is this safe? Furthermore, how can I override the readObject() method as suggested and throw an error without compromising functionality within Struts? As an aside, if this warning can safely be addressed, why doesn't ActionSupport override readObject() to avoid this? Thanks, Lee - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Not display value next to radio
I didn't try it. If you set the key to a getter that returns a null string, and the value to use a getter that returns the answer it may generate the HTML you intend. And in Answer: getDisplayNothing() { return ""; } If that doesn't work, can you send the Struts tag you are using and the HTML? -Original Message- From: Odelya YomTov [mailto:ode...@jpost.com] Sent: Thursday, October 15, 2009 3:17 PM To: 'Struts Users Mailing List' Subject: RE: Not display value next to radio U tried it But it still display the value next to the radio button.. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Not display value next to radio
You can iterate through the answers to create the tags, and then iterate through the same answers again to create the radio buttons -Original Message- From: Odelya YomTov [mailto:ode...@jpost.com] Sent: Wednesday, October 14, 2009 3:30 PM To: 'Struts Users Mailing List' Subject: Not display value next to radio Hi! I would like to display a question, and next to it radio button option but in a table. In the table header, I will display the 1,2,3 option like this: 1 2 3 But I must enter list!! When I enter values,it displays them next to the radio button. How can I do it? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: iterator and radio struts2
It looks like you may be able to nest tags to achieve this. --Lee -Original Message- From: Odelya YomTov [mailto:ode...@jpost.com] Sent: Tuesday, October 13, 2009 6:09 PM To: 'Struts Users Mailing List' Subject: iterator and radio struts2 Hi! I have the following class: public class Question implements Serializable { private Integer id; private String content; private String type; private List answers = new ArrayList(); . } And class answer: public class Answer implements Serializable{ private Integer id; private String content; } I would like to iterate over the questions, and for each one display the option to choose the answer in a radio button. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Setting a checkbox
You may need a getter method isIsChecked() or getIsChecked() -Original Message- From: Dan R. Olsen III [mailto:danec...@gmail.com] Sent: Friday, October 02, 2009 6:19 PM To: Struts Users Mailing List Subject: Setting a checkbox I have the following tag: isChecked is a boolean variable that is set in the action. When I put a variable in the name field for a textfield tag it will bring up the value of the variable in the text box. I want the checkbox above to be checked if isChecked is true and not checked if isChecked is false. All the examples I have found have not worked for me. Any extra help would be appreciated. I'm sure it is something simple that I am missing. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Errors during unzip of 2.1.8
Works fine for me using linux too, but not using WinZip on Windows XP - Windows does not support question marks (?) in file names. -Original Message- From: Musachy Barroso [mailto:musa...@gmail.com] Sent: Wednesday, September 30, 2009 8:06 PM To: Struts Users Mailing List Subject: Re: Errors during unzip of 2.1.8 works fine for me on rhel 5, are you on windows? musachy On Wed, Sep 30, 2009 at 4:33 PM, Lee Clemens wrote: > Hello, > > Winzip is giving me dozens (maybe more) of these errors when attempting to > unzip struts-2.1.8-all.zip. > > The following invalid filename was encountered in the archive: > "struts-2.1.8\docs\WW\quickstart.data\index.html?C=M;O=D.html" > > File names/paths are change, but they all seem to be in \docs\WW > > -Lee > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Errors during unzip of 2.1.8
Hello, Winzip is giving me dozens (maybe more) of these errors when attempting to unzip struts-2.1.8-all.zip. The following invalid filename was encountered in the archive: "struts-2.1.8\docs\WW\quickstart.data\index.html?C=M;O=D.html" File names/paths are change, but they all seem to be in \docs\WW -Lee - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: ConfigurationManager instance or how to reload configuration
P.S. Using Struts 2.1.6 -Original Message- From: Lee Clemens [mailto:l...@leeclemens.net] Sent: Thursday, September 17, 2009 10:24 PM To: 'Struts Users Mailing List' Subject: ConfigurationManager instance or how to reload configuration Hello, xwork2 does not seem to contain a static method for ConfigurationManager.destroyConfiguration(), which http://struts.apache.org/2.0.14/docs/how-can-we-force-the-action-mappings-st rutsxml-to-reload.html claims it does. Is there a way to obtain an instance of the ConfigurationManager class from within an action? If not, why is the documentation stating this? And what good does the struts.configuration.xml.reload property do? I hope I'm just missing a new and improved way of reloading the configurations. Thanks, Lee - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
ConfigurationManager instance or how to reload configuration
Hello, xwork2 does not seem to contain a static method for ConfigurationManager.destroyConfiguration(), which http://struts.apache.org/2.0.14/docs/how-can-we-force-the-action-mappings-st rutsxml-to-reload.html claims it does. Is there a way to obtain an instance of the ConfigurationManager class from within an action? If not, why is the documentation stating this? And what good does the struts.configuration.xml.reload property do? I hope I'm just missing a new and improved way of reloading the configurations. Thanks, Lee - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: FW: ConfigurationManager instance or how to reload configuration
Perfect...could the Docs be updated? Or is that a JIRA reportable issue? -Original Message- From: Musachy Barroso [mailto:musa...@gmail.com] Sent: Friday, September 18, 2009 12:59 AM To: Struts Users Mailing List Subject: Re: FW: ConfigurationManager instance or how to reload configuration Dispatcher.getInstance().getConfigurationManager().reload(); On Thu, Sep 17, 2009 at 10:12 PM, Lee Clemens wrote: > Hello, > > xwork2 does not seem to contain a static method for > ConfigurationManager.destroyConfiguration(), which > http://struts.apache.org/2.0.14/docs/how-can-we-force-the-action-mappings-st > rutsxml-to-reload.html claims it does. > > Is there a way to obtain an instance of the ConfigurationManager class from > within an action? > > (I am using Struts 2.1.6) > > If not, why is the documentation stating this? And what good does the > struts.configuration.xml.reload property do? > > I hope I'm just missing a new and improved way of reloading the > configurations. > > Thanks, > Lee > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
FW: ConfigurationManager instance or how to reload configuration
Hello, xwork2 does not seem to contain a static method for ConfigurationManager.destroyConfiguration(), which http://struts.apache.org/2.0.14/docs/how-can-we-force-the-action-mappings-st rutsxml-to-reload.html claims it does. Is there a way to obtain an instance of the ConfigurationManager class from within an action? (I am using Struts 2.1.6) If not, why is the documentation stating this? And what good does the struts.configuration.xml.reload property do? I hope I'm just missing a new and improved way of reloading the configurations. Thanks, Lee - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Strut2 Picture Upload question: Please Help!
Maybe have the Upload buttons refresh the page? And load the images from the action? Otherwise it would have to be done client side (ajax?) -Original Message- From: hisameer [mailto:cool_sameer_fo...@yahoo.com] Sent: Wednesday, September 02, 2009 6:27 PM To: user@struts.apache.org Subject: Strut2 Picture Upload question: Please Help! I am using Struts 2.1.6 and in my application I have a requirement where the user can upload four pictures of his vehicle.In my JSP, there will be four upload buttons corresponding to those four pics(As shown in the below image). After the user is done selecting the file it should be uploaded in the JSP right away. Below image shows the actual display of the requirement. http://www.nabble.com/file/p25266760/picUploading.jpg Can somebody put some sample code for this kind of requirement or suggest me what should I do? I am sure this is just a simple requirement but I am not able to crack it. -- View this message in context: http://www.nabble.com/Strut2-Picture-Upload-question%3A-Please-Help%21-tp252 66760p25266760.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Session variables in buttons - preselection and formatting?
And if you're using cssClass in the tag, you might want to add this to the template (just replace the from the example Mike provided): class="${parameters.cssClass?html}"<#rt/> > -Original Message- From: Mike Baranski [mailto:list-subscripti...@secmgmt.com] Sent: Wednesday, September 02, 2009 4:50 PM To: 'Struts Users Mailing List'; d...@homeport.org Subject: RE: Session variables in buttons - preselection and formatting? For #1, I don't know. For #2, I did exactly that, see here: http://mikeski.net/site/node/16 Mike. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Mapping of form object to a java bean
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:36 AM To: user@struts.apache.org Subject: Mapping of form object to a java bean 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 -- View this message in context: http://www.nabble.com/Mapping-of-form-object-to-a-java-bean-tp25184286p25184 286.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Radio options left aligned
While it is very interesting that it works outside a form, Wes is correct in thinking I want the radio buttons to be inputs for a form (no pun intended) -Original Message- From: Wes Wannemacher [mailto:w...@wantii.com] Sent: Sunday, August 30, 2009 11:51 PM To: Struts Users Mailing List Subject: Re: Radio options left aligned On Sunday 30 August 2009 11:06:55 pm Martin Gainty wrote: > if you take it outside the form it works > /styles/main.css contents > radio.CustomClass { > border: 1px solid black; > background-color: InfoBackground; > align:left; > valign:middle > } > > .jsp.. > > test for lee > > > > > .. > > > value="0"/> > value="1" /> > > > > ..will render 2 radio buttons aligned to the left... > Call me crazy, but don't inputs have to be inside of the form tags? I mean, I would assume that part of the reason for having radio buttons is that he wants the values to be sent to the server when the user submits the form. Maybe I missed something earlier in the thread, but this seems like a counter- productive suggestion. I mean, Fonz knows that I really want to think that you're trying Martin, but it's these types of suggestions that get people riled up. -Wes -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Radio options left aligned
I played around with it for a while, so I'm pretty sure it's not a caching issue. Firefox 3.5.2 Struts 2.1.6 I updated radiomap.ftl to put tags and grab the cssClass value and put it there (works, but doesn't alter the alignment behavior for the tags. -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Sunday, August 30, 2009 8:56 PM To: Struts Users Mailing List Subject: RE: Radio options left aligned put align:left and/or valign:top in your Class if for any reason the align or valign does'nt render thats a definite bug.. which version browser? which version struts? thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: j...@leeclemens.net > To: user@struts.apache.org > Subject: RE: Radio options left aligned > Date: Sun, 30 Aug 2009 16:37:59 -0400 > > 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 row, not each as a > new row). > > Using cssClass adds a class attribute to the tags, but isn't being > rendered (tried only color=red;). If I wrap the tag in a class="customClass">, it is rendered - but radio buttons are still displayed > in same row. > > -Original Message- > From: Martin Gainty [mailto:mgai...@hotmail.com] > Sent: Sunday, August 30, 2009 3:48 PM > To: Struts Users Mailing List > Subject: RE: Radio options left aligned > > > either cssStyle or cssClass > > cssStyle="valign="middle" align="left"" > > or you can define a customClass inside stylesheet.css > radio.CustomClass { > border: 1px solid black; > background-color: InfoBackground; > align:left; > valign:middle > } > then reference the customClass with cssClass attribute > > > Content assumes row and data tags for table > Martin Gainty > __ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > dient lediglich dem Austausch von Informationen und entfaltet keine > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie > de ceci est interdite. Ce message sert à l'information seulement et n'aura > pas n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > > > From: j...@leeclemens.net > > To: user@struts.apache.org > > Subject: RE: Radio options left aligned > > Date: Sun, 30 Aug 2009 14:59:26 -0400 > > > > If anyone else needs to do this in the future, updating radiomap.ftl > seemed > > to be the only way. Just add and tags around the input > > tag/attributes. > > > > -Original Message- > > From: Dave Newton [mailto:newton.d...@yahoo.com] > > Sent: Saturday, August 29, 2009 5:50 PM > > To: Struts Users Mailing List > > Su
RE: Radio options left aligned
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 row, not each as a new row). Using cssClass adds a class attribute to the tags, but isn't being rendered (tried only color=red;). If I wrap the tag in a , it is rendered - but radio buttons are still displayed in same row. -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Sunday, August 30, 2009 3:48 PM To: Struts Users Mailing List Subject: RE: Radio options left aligned either cssStyle or cssClass cssStyle="valign="middle" align="left"" or you can define a customClass inside stylesheet.css radio.CustomClass { border: 1px solid black; background-color: InfoBackground; align:left; valign:middle } then reference the customClass with cssClass attribute Content assumes row and data tags for table Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: j...@leeclemens.net > To: user@struts.apache.org > Subject: RE: Radio options left aligned > Date: Sun, 30 Aug 2009 14:59:26 -0400 > > If anyone else needs to do this in the future, updating radiomap.ftl seemed > to be the only way. Just add and tags around the input > tag/attributes. > > -Original Message- > From: Dave Newton [mailto:newton.d...@yahoo.com] > Sent: Saturday, August 29, 2009 5:50 PM > To: Struts Users Mailing List > Subject: Re: Radio options left aligned > > Lee Clemens wrote: > > theme 'simple' is horizontally aligned (and my default) > > theme 'xhtml' puts everything else out of whack > > theme 'ajax' puts everything else out of whack > > > > Are you suggesting my own theme, where I put a or whatever > > between the options? > > If you're not going to do it via CSS I'm not sure what the other options > are. > > Dave > > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _ Windows Live: Keep your friends up to date with what you do online. http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON :WL:en-US:SI_SB_online:082009 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Radio options left aligned
If anyone else needs to do this in the future, updating radiomap.ftl seemed to be the only way. Just add and tags around the input tag/attributes. -Original Message- From: Dave Newton [mailto:newton.d...@yahoo.com] Sent: Saturday, August 29, 2009 5:50 PM To: Struts Users Mailing List Subject: Re: Radio options left aligned Lee Clemens wrote: > theme 'simple' is horizontally aligned (and my default) > theme 'xhtml' puts everything else out of whack > theme 'ajax' puts everything else out of whack > > Are you suggesting my own theme, where I put a or whatever > between the options? If you're not going to do it via CSS I'm not sure what the other options are. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Radio options left aligned
I guess I'm trying to ask, how would you do this? -Original Message- From: Dave Newton [mailto:newton.d...@yahoo.com] Sent: Saturday, August 29, 2009 5:50 PM To: Struts Users Mailing List Subject: Re: Radio options left aligned Lee Clemens wrote: > theme 'simple' is horizontally aligned (and my default) > theme 'xhtml' puts everything else out of whack > theme 'ajax' puts everything else out of whack > > Are you suggesting my own theme, where I put a or whatever > between the options? If you're not going to do it via CSS I'm not sure what the other options are. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Radio options left aligned
theme 'simple' is horizontally aligned (and my default) theme 'xhtml' puts everything else out of whack theme 'ajax' puts everything else out of whack Are you suggesting my own theme, where I put a or whatever between the options? -Original Message- From: Dave Newton [mailto:newton.d...@yahoo.com] Sent: Saturday, August 29, 2009 4:00 PM To: Struts Users Mailing List Subject: Re: Radio options left aligned Lee Clemens wrote: > If this can only be done by changing the theme, is there a way for changing > that single element to use theme="" to not complete > destroy the integrity of the rest of the page? Use the "theme" attribute? That aside, you may be able to just use plain CSS. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Radio options left aligned
Hello, I'm using Struts 2.1.6 with an tag. I want the radio options to line up vertically against the left margin (one option per line), rather than in a straight line. By default, I'm using (and have to use do to other aspects of the page) theme="simple" Is there a way to have the radio options align vertically, while using theme simple (e.g. some option I have missed)? If this can only be done by changing the theme, is there a way for changing that single element to use theme="" to not complete destroy the integrity of the rest of the page? Thanks, Lee - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Struts2 with Authentication & Security
A few years ago, huh? You make it seem like such an archaic approach :) My question, I guess using a servlet/interceptor to do the same as this abstract class would conform more with the 'accepted' methodology? (I did play around with a servlet, but couldn't get it to redirect correct - I admit I haven't looked into Interceptors too deeply.) -Original Message- From: Wes Wannemacher [mailto:w...@wantii.com] Sent: Thursday, August 20, 2009 8:11 PM To: Struts Users Mailing List Subject: Re: Struts2 with Authentication & Security I used this same approach for an app I worked on a few years ago. There is nothing wrong, in fact its simplicity is a bit of an advantage. If you can fit your needs into this type of setup then you will probably be happy that it is so easy to follow. On 8/20/09, Lee Clemens wrote: > This may not be perfect, and I welcome any criticism to this approach: > > abstract class extends ActionSupport which overrides execute() to > authenticate requests and then return a call to abstract method, say, > doAction(), or error if they are not authenticated/timed out. > > Each action which needs to be protected simply extends the above abstract > class and implements doAction(), just as you would normally override > execute(). Make execute() final in the abstract class... > > Add another abstract method to get a group authentication level (implemented > by each action's class) and you have a fairly robust and straightforward > authentication scheme, IMHO > > With proper negative testing, you can be certain any developer didn't forget > to extend/implement the 'security' action for any given action that should > be restricted >[snip] - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Struts2 with Authentication & Security
This may not be perfect, and I welcome any criticism to this approach: abstract class extends ActionSupport which overrides execute() to authenticate requests and then return a call to abstract method, say, doAction(), or error if they are not authenticated/timed out. Each action which needs to be protected simply extends the above abstract class and implements doAction(), just as you would normally override execute(). Make execute() final in the abstract class... Add another abstract method to get a group authentication level (implemented by each action's class) and you have a fairly robust and straightforward authentication scheme, IMHO With proper negative testing, you can be certain any developer didn't forget to extend/implement the 'security' action for any given action that should be restricted -Original Message- From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] Sent: Thursday, August 20, 2009 4:25 PM To: user@struts.apache.org Subject: Struts2 with Authentication & Security I am currently preparing the steps to port a legacy Struts1 application to Struts2. The rewrite of the web application also includes a transition from Tiles to Sitemesh along with the introduction of the Spring and Hibernate frameworks. The authentication and security model used in the Struts1 application was very simple and one of the pitfalls resulted in lack of overall flexibility and ease of managing user roles and permissions. One of the biggest goals of this rewrite process is to really spend a good chunk of time looking at alternatives that make the most sense for what we're trying to accomplish. The application is mainly a query-based tool for reporting a wide range of data to a very large end user community. There are also possibilities for gathering data from this user community and storing it depending on specific business case needs. Since the user community could span users that are customers, to in-house end users, site/local management, and upper executive management, the options and data presented to these users will need to vary. Is there any internal way within Struts2 that is recommended over another to embed logic to support per-action/page security? Is there an internal way to insure that the user is authenticated prior to servicing the request? I've read about Interceptors versus using something like JAAS. Are there benefits of one over another? I'd rather not introduce a new framework atop of Spring and Hibernate given we're moving from Struts1 to Struts2 and Tiles to Sitemesh. It is a learning curve and adding new frameworks continues to agitate the issue. Thanks for everyone's feedback. Chris - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: [struts2] problem
It will be the default, but if a specific tag needs a different theme, you can set it as one of the tag's attributes. e.g. -Original Message- From: Tommy Pham [mailto:tommy...@yahoo.com] Sent: Tuesday, August 18, 2009 6:05 PM To: Struts Users Mailing List Subject: Re: [struts2] problem Hi Pawel, Thanks for the quick reply. If I apply the struts.ui.theme=simple in my struts.xml, it should be set for the entire application right? Thanks, Tommy - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Strut2.1.6 Type Conversion Problem
Not sure if it's related, but did you try using Long for your setter, or Object - and then see what it is an instance of? It may be useful to post the setter, since that is what the issue is with. Misspelled, etc? -Original Message- From: sha...@mobily [mailto:shahid@gmail.com] Sent: Wednesday, August 05, 2009 10:04 AM To: user@struts.apache.org Subject: Strut2.1.6 Type Conversion Problem I just started on strut2, I am facing a very basic problem. for the int field it should convert the type and only shd give error if provided an invalid integer value such as 123abc. I have an Action Class public class PolicyAction extends ActionSupport { private java.sql.Date passwordExpiry; private long passwordExpiryCount; // Getters and Setters for the above fields are defined } I have a JSP defines the two fields for input A Validation XML file (for the above two fileds it defines) Password Expiry is required. Date Format is "dd-MMM-" Password Expiry Count is required. 1 10 Count must be between 1 and 10 When I submit the Form with empty values it produces the following Error on console for the passwordExpiryCount Filed. ognl.MethodFailedException: Method "setPasswordExpiryCount" failed for object com.mobily.billingmds.web.security.action.policyact...@6f205e [java.lang.NoSuchMethodException: setPasswordExpiryCount([Ljava.lang.String;)] at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:823) at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:964) at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java: 75) at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:131) at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAcces sor.java:28) at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656) at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(Compo undRootAccessor.java:50) at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656) at ognl.ASTProperty.setValueBody(ASTProperty.java:101) at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177) at ognl.SimpleNode.setValue(SimpleNode.java:246) at ognl.Ognl.setValue(Ognl.java:476) at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:192) at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:155 ) at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:143 ) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(Para metersInterceptor.java:273) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(Parame tersInterceptor.java:187) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Method FilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:236) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(Parame tersInterceptor.java:195) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Method FilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:236) at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(St aticParametersInterceptor.java:148) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:236) at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterce ptor.java:93) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:236) at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInt erceptor.java:235) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:236) at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDr ivenInterceptor.java:89) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:236) at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(S copedModelDrivenInterceptor.java:128) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:236) at org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(Prof ilingActivationInterceptor.java:104) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:236) at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.interc
Struts 2.x and Java 6 and/or Servlet 2.5
With Java 5's EOL coming on October 30th and the additional features available in Servlet API 2.5 - is there any timeline for updating Struts 2.x's platform requirements? Or have I misunderstood and these are only Minimum requirements? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: getting listValue back to actionclass from s:select tag
I believe the Label is rather meaningless (from a data point-of-view). Do you know which options have a * after them when you create the drop down? So you would know that key=1 has a *, key=2 does not, etc? Not sure I understand the reason for the label in this scenario, since the key is - the key. But afaik, the key is submitted (as would be during any other HTML form's submission) - not the label. -Original Message- From: Bhaarat Sharma [mailto:bhaara...@gmail.com] Sent: Monday, July 27, 2009 9:53 PM To: Struts Users Mailing List Subject: getting listValue back to actionclass from s:select tag I have a s:select tag which is working fine. html code made out of that is: Reason1* Reason2 Reason3* when user selects stuff from this select box and submits what is sent back is listKey. Is there any way to get the listValue (content) back to the action class? I want to do this because as you can see some reasons have * behind them and I want to have some logic for when users select reasons with *. I can not just go by value because it is dynamic. Is there a way to get around this hurdle? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Multi input tag?
- select multiple could be populated from a collection/list - user input similar to text field, and when entered, it is added as an option of the select tag - double clicking an option removes value - each value present as an option when submitted is received as a collection/list -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Saturday, July 25, 2009 8:47 PM To: Struts Users Mailing List Subject: RE: Multi input tag? can you define the inputtags you would expect containing object:..list?..collection?..array? outputtag which would receive the processed list..collection..array from inputtag thanks, Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: j...@leeclemens.net > To: user@struts.apache.org > Subject: Multi input tag? > Date: Sat, 25 Jul 2009 20:07:14 -0400 > > Is there a tag in Struts 2.1.x where a user can enter a text value and have > it added to a multiple text value field? > > This would be similar to a combobox, but allow for free-text entries to be > made rather than multi-selecting values that are pre-populated. > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _ Bing brings you maps, menus, and reviews organized in one place. Try it now. http://www.bing.com/search?q=restaurants&form=MLOGEN&publ=WLHMTAG&crea=TXT_M LOGEN_Local_Local_Restaurants_1x1 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Multi input tag?
Is there a tag in Struts 2.1.x where a user can enter a text value and have it added to a multiple text value field? This would be similar to a combobox, but allow for free-text entries to be made rather than multi-selecting values that are pre-populated. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Multiselect tags
If you are trying to make a cascading drop down, you can do so with the doubleselect tag. One way to implement: Create a class, CascDropDown, with getters and setters for value, label and subList. subList is a List of objects, DropDown, with getters and setters for value and label. If you have values A, B in the first dropdown and want to show 1, 2, 3 when A is selected and 10, 11, 12 if B is selected: Create List of DropDown objects from above with value/labels of 1, 2 and 3 - then add the List to the CascDropDown object and set the value/label to "A". Do the same with 10, 11, 12 as the subList and the value/label set to "B" Add those two CascDropDown objects to a list, called myCascDropDown, and put a getter in your action. When you select "A" - "1", "2" and "3" should appear in the second dropdown. -Original Message- From: Jim Collings [mailto:jlistn...@gmail.com] Sent: Wednesday, July 01, 2009 10:34 AM To: Struts Users Mailing List Subject: Re: Multiselect tags So I tried setting key='selectedList' This did not work. I got a null selectedList and: ognl.ExpressionSyntaxException: Malformed OGNL expression: [ognl.ParseException: Encountered "" at line 1, column 0. Was expecting one of: . . . etc. > How? If I set the tag to a list of objects specified in my action, > how do I set the second list of objects? Will they be Strings or if I > set my select tag to key off of 'recordId' which is an integer, will > it be a list of integers? > > I would like to request documentation for the select tag be updated to > reflect a simple example. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: OgnlValueStack - Could not find property
I have seen a lot on this issue. Does anyone know how to actually correct it so that Struts does not log these warnings - without disabling the logging of warnings all together? The closest I have come is by adding getTheme and getTemplateDir directories to my Action class, but that doesn't solve these far less frequent struts.valueStack and org.apache.catalina.jsp_file the OP mentions. -Original Message- From: Musachy Barroso [mailto:musa...@gmail.com] Sent: Monday, June 29, 2009 1:53 PM To: Struts Users Mailing List Subject: Re: OgnlValueStack - Could not find property if you are using log4j: log4j.category.com.opensymphony.xwork.util.OgnlValueStack=ERROR musachy On Mon, Jun 29, 2009 at 9:44 AM, Mitch Claborn wrote: > Everything appears to be working. How can I turn off that logging? > mitch > > Musachy Barroso wrote: >> is everything working? I would say that is the value stack just being >> annoying and logging to much. We added a setting to turn verbose mode >> on (it is on now by default) in 2.1.7, and it will be off by default. >> You can ignore those. >> >> musachy >> >> On Mon, Jun 29, 2009 at 8:35 AM, Mitch Claborn wrote: >> >>> Getting some odd messages that I don't understand, just running the >>> basic tutorial code. Any ideas what this is? >>> >>> The messages are: >>> [WARN] OgnlValueStack - Could not find property >>> [org.apache.catalina.jsp_file] >>> [WARN] OgnlValueStack - Could not find property [struts.valueStack] >>> [WARN] OgnlValueStack - Could not find property >>> [org.apache.catalina.jsp_file] >>> >>> >>> My JSP, struts.xml and action are below. >>> >>> <%@ taglib prefix="s" uri="/struts-tags" %> >>> >>> >>> Hello World! >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> /HelloWorld.jsp >>> >>> >>> >>> >>> package tutorial; >>> import com.opensymphony.xwork2.ActionSupport; >>> public class HelloWorld extends ActionSupport { >>> >>> public static final String MESSAGE = "Struts is up and running ..."; >>> >>> �...@override >>> public String execute() throws Exception { >>> setMessage(MESSAGE); >>> return SUCCESS; >>> } >>> >>> private String message; >>> >>> public void setMessage(String message){ >>> this.message = message; >>> } >>> >>> public String getMessage() { >>> return message; >>> } >>> } >>> >>> >>> Mitch >>> >>> - >>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >>> For additional commands, e-mail: user-h...@struts.apache.org >>> >>> >>> >> >> >> >> > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org