MessageResources
When you create a MessageResources object is it getting the resources from what was stored in memory on startup or directly from the file? This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact DLA Piper Rudnick Gray Cary UK LLP on +44 (0) 8700 11 quoting the name of the sender and the email address to which it has been sent and then delete it. Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor the sender accept any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. DLA Piper Rudnick Gray Cary UK LLP is a limited liability partnership registered in England and Wales (registered number OC307847) which provides services from offices in England, Belgium, Germany and the People's Republic of China. A list of members is open for inspection at its registered office and principal place of business 3 Noble Street, London EC2V 7EE. Partner denotes member of a limited liability partnership. DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law Society and is a member of DLA Piper Rudnick Gray Cary, a global legal services organisation, the members of which are separate and distinct legal entities. For further information, please refer to www.dlapiper.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to validate in Struts 1.2.7
Go to this address and download the sample application code. http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764544373,descCd-download_code.html In the chapter 12 directory is a lot of examples of how to use the struts validator correctly. Regards Dave. -Original Message- From: Francisco Antonio Vieira Souza [mailto:[EMAIL PROTECTED] Sent: 21 September 2005 10:17 To: Struts Users Mailing List Subject: How to validate in Struts 1.2.7 Considering that nobody saw my big previous message about this subject. I ask you all, does anyone could provide me any example of validation in Struts 1.2.7? (since until now I had no success) ___ Novo Yahoo! Messenger com voz: ligações, Yahoo! Avatars, novos emoticons e muito mais. Instale agora! www.yahoo.com.br/messenger/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact DLA Piper Rudnick Gray Cary UK LLP on +44 (0) 8700 11 quoting the name of the sender and the email address to which it has been sent and then delete it. Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor the sender accept any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. DLA Piper Rudnick Gray Cary UK LLP is a limited liability partnership registered in England and Wales (registered number OC307847) which provides services from offices in England, Belgium, Germany and the People's Republic of China. A list of members is open for inspection at its registered office and principal place of business 3 Noble Street, London EC2V 7EE. Partner denotes member of a limited liability partnership. DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law Society and is a member of DLA Piper Rudnick Gray Cary, a global legal services organisation, the members of which are separate and distinct legal entities. For further information, please refer to www.dlapiper.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tag
Sorry my mistake. You set the collection value of the options equal to the request attribute referencing the ArrayList object. Ie ROOMTYPES as below. -Original Message- From: rahul [mailto:[EMAIL PROTECTED] Sent: 20 September 2005 14:22 To: Struts Users Mailing List Subject: RE: tag I did that, created ArrayList containing LabelValueBean and this ArrayList is still in a bean as a request attribute. now what to do with ? --RahulJoshi > -Original Message- > From: Harland, David [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 20, 2005 6:13 PM > To: Struts Users Mailing List > Subject: RE: tag > > > Hi, > > Create an ArrayList object. Iterate through your Hashtable(HashMap is a > better option). > For each iteration create a new org.apache.struts.util.LabelValueBean > object. Populate its label and value attributes and then add it to your > ArrayList object. Then pass the ArrayList object as the property. > > Regards > > Dave. > > -Original Message- > From: rahul [mailto:[EMAIL PROTECTED] > Sent: 20 September 2005 13:11 > To: Struts Users Mailing List > Subject: tag > > hi David, > > I have got one more problem, this time its related to select box > which is rendered using tag enclosing one or more > or > > I have got an ActionForm set as request attribute, which contains > a property of type java.util.Hashtable > > I wanted to display the values (only values without keys) in a select > box > > so i tried >/> > but this displays "key=value" in my select box, not just "value" > > If I change my property type to java.util.ArrayList then it works fine > > But the reason I want it with hashtable is that I want Hashtable's key > as > value of select box and the corresponding value as displayed item. > > > any Suggestions? > >--RahulJoshi > > > > > -Original Message- > > From: rahul [mailto:[EMAIL PROTECTED] > > Sent: Monday, September 19, 2005 8:43 PM > > To: Struts Users Mailing List > > Subject: RE: Radio Button in ActionForm > > > > > > thank you very much > > It worked! > > > > > -Original Message- > > > From: Harland, David [mailto:[EMAIL PROTECTED] > > > Sent: Monday, September 19, 2005 6:07 PM > > > To: Struts Users Mailing List > > > Subject: RE: Radio Button in ActionForm > > > > > > > > > Initialise your Action Form set sec equal to 'M' or 'F'. > > > > > > Add the following to your jsp > > > > > > > > > > > > > > > -Original Message- > > > From: rahul [mailto:[EMAIL PROTECTED] > > > Sent: 19 September 2005 13:34 > > > To: Struts Users Mailing List > > > Subject: Radio Button in ActionForm > > > > > > hi all, > > > > > > I am looking at some simplified way of displaying the radio button > > > on a jsp depending upon the value of an ActionForm's property. > > > > > > For example I have got an ActionForm with a property name sex, which > can > > > take 'M' or 'F' as input. > > > > > > Now after storing the value in an ActionForm instance (which is then > set > > > as > > > a request > > > attribute) from database, I am forwarding the request to a jsp where > I > > > need > > > to > > > display the values I collected. like > > > > > > (.) Male > > > ( ) Female > > > > > > Is there any elegant way of doing this using tags in > struts > > > ? > > > > > > > > > I know its pretty simple in case of simple input box where we do it > by > > > but how to go with > > > radio > > > buttons ? > > > > > > > > > Any suggestions ? > > > > > > --Rahul > > > > > > > > > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > This e mail is from DLA Piper Rudnick Gray Cary UK LLP. > > > > > > The contents of this email and any attachments are confidential > > > to the intended recipient. They may not be disclosed to or used > > > by or copied in any way by anyone other than the intended > > > recipient. If this email is received in error, please
RE: tag
Hi, Create an ArrayList object. Iterate through your Hashtable(HashMap is a better option). For each iteration create a new org.apache.struts.util.LabelValueBean object. Populate its label and value attributes and then add it to your ArrayList object. Then pass the ArrayList object as the property. Regards Dave. -Original Message- From: rahul [mailto:[EMAIL PROTECTED] Sent: 20 September 2005 13:11 To: Struts Users Mailing List Subject: tag hi David, I have got one more problem, this time its related to select box which is rendered using tag enclosing one or more or I have got an ActionForm set as request attribute, which contains a property of type java.util.Hashtable I wanted to display the values (only values without keys) in a select box so i tried but this displays "key=value" in my select box, not just "value" If I change my property type to java.util.ArrayList then it works fine But the reason I want it with hashtable is that I want Hashtable's key as value of select box and the corresponding value as displayed item. any Suggestions? --RahulJoshi > -Original Message- > From: rahul [mailto:[EMAIL PROTECTED] > Sent: Monday, September 19, 2005 8:43 PM > To: Struts Users Mailing List > Subject: RE: Radio Button in ActionForm > > > thank you very much > It worked! > > > -Original Message- > > From: Harland, David [mailto:[EMAIL PROTECTED] > > Sent: Monday, September 19, 2005 6:07 PM > > To: Struts Users Mailing List > > Subject: RE: Radio Button in ActionForm > > > > > > Initialise your Action Form set sec equal to 'M' or 'F'. > > > > Add the following to your jsp > > > > > > > > > > -Original Message- > > From: rahul [mailto:[EMAIL PROTECTED] > > Sent: 19 September 2005 13:34 > > To: Struts Users Mailing List > > Subject: Radio Button in ActionForm > > > > hi all, > > > > I am looking at some simplified way of displaying the radio button > > on a jsp depending upon the value of an ActionForm's property. > > > > For example I have got an ActionForm with a property name sex, which can > > take 'M' or 'F' as input. > > > > Now after storing the value in an ActionForm instance (which is then set > > as > > a request > > attribute) from database, I am forwarding the request to a jsp where I > > need > > to > > display the values I collected. like > > > > (.) Male > > ( ) Female > > > > Is there any elegant way of doing this using tags in struts > > ? > > > > > > I know its pretty simple in case of simple input box where we do it by > > but how to go with > > radio > > buttons ? > > > > > > Any suggestions ? > > > > --Rahul > > > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > This e mail is from DLA Piper Rudnick Gray Cary UK LLP. > > > > The contents of this email and any attachments are confidential > > to the intended recipient. They may not be disclosed to or used > > by or copied in any way by anyone other than the intended > > recipient. If this email is received in error, please contact DLA > > Piper Rudnick Gray Cary UK LLP on +44 (0) 8700 11 quoting the > > name of the sender and the email address to which it has been > > sent and then delete it. > > > > Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor > > the sender accept any responsibility for viruses and it is your > > responsibility to scan or otherwise check this email and any > attachments. > > > > DLA Piper Rudnick Gray Cary UK LLP is a limited liability > > partnership registered in England and Wales (registered number > > OC307847) which provides services from offices in England, > > Belgium, Germany and the People's Republic of China. A list of > > members is open for inspection at its registered office and > > principal place of business 3 Noble Street, London EC2V 7EE. > > Partner denotes member of a limited liability partnership. > > > > DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law > > Society and is a member of DLA Piper Rudnick Gray Cary, a global > > legal services organisation, the members of which are separate > > and distinct legal entities. For further information, please > > refer to www.dlapiper.com. > > > > > &
RE: Radio Button in ActionForm
Initialise your Action Form set sec equal to 'M' or 'F'. Add the following to your jsp -Original Message- From: rahul [mailto:[EMAIL PROTECTED] Sent: 19 September 2005 13:34 To: Struts Users Mailing List Subject: Radio Button in ActionForm hi all, I am looking at some simplified way of displaying the radio button on a jsp depending upon the value of an ActionForm's property. For example I have got an ActionForm with a property name sex, which can take 'M' or 'F' as input. Now after storing the value in an ActionForm instance (which is then set as a request attribute) from database, I am forwarding the request to a jsp where I need to display the values I collected. like (.) Male ( ) Female Is there any elegant way of doing this using tags in struts ? I know its pretty simple in case of simple input box where we do it by but how to go with radio buttons ? Any suggestions ? --Rahul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact DLA Piper Rudnick Gray Cary UK LLP on +44 (0) 8700 11 quoting the name of the sender and the email address to which it has been sent and then delete it. Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor the sender accept any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. DLA Piper Rudnick Gray Cary UK LLP is a limited liability partnership registered in England and Wales (registered number OC307847) which provides services from offices in England, Belgium, Germany and the People's Republic of China. A list of members is open for inspection at its registered office and principal place of business 3 Noble Street, London EC2V 7EE. Partner denotes member of a limited liability partnership. DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law Society and is a member of DLA Piper Rudnick Gray Cary, a global legal services organisation, the members of which are separate and distinct legal entities. For further information, please refer to www.dlapiper.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with characters
Make sure the jsp doing the posting has <%@ page language="java" contentType="text/html; charset=UTF-8" %> Dave. -Original Message- From: Martin Kindler [mailto:[EMAIL PROTECTED] Sent: 07 September 2005 10:47 To: 'Struts Users Mailing List' Subject: AW: Problem with characters David, could you please be a bit more specific? Just now I have a very similar problem as LuKe. I am using MySQl 4.1.10 and all tables are UTF-8. Struts is configured to use UTF 8 (i. e. the controller element in struts-config.xml says contentType="text/html;charset=UTF-8"). This seems to work. My browsers (Firefox and IE6) decode the pages as UTF-8. BUT: when I enter text using a form (this is configured using the charSet-attribute to html:form to accept ISO-8859-1) IE6 garbles it while Firefox seems to work OK. Any hints? Martin > -Ursprüngliche Nachricht- > Von: Harland, David [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 7. September 2005 10:35 > An: Struts Users Mailing List > Betreff: RE: Problem with characters > > > Change you encoding to UTF-8. > > What database are you using? > > Dave. > > -Original Message- > From: lk [mailto:[EMAIL PROTECTED] > Sent: 07 September 2005 09:23 > To: user@struts.apache.org > Subject: Problem with characters > > Hi, > > I have a problem with some characters. > > My application reads some forms and writes them in a db. > > On my test and developing environment everything works well. > > The problem comes out when I deploy the application on the production > server. > > When I fill in the form non English characters (for example > the typical > characters of the Italian language) they are read as "?". > > The strange thing is that in the same tomcat context there is an old > no-struts application that works well. > > On this server Apache and Tomcat work together and this is the only > difference from my test server. > > In both struts-config.xml and web.xml I put this encoding > > > Furthermore I use a tiles layout and in it I put: > > > > What could be the problem? > > LuKe > > > > -- > Email.it, the professional e-mail, gratis per te: > http://www.email.it/f > > Sponsor: > Vuoi risparmiare sino al 70% sugli acquisti? Oliviero non > teme confronti! Clicca qui: > http://adv.email.it/cgi-bin/foclick.cgi?mid=3849&d=7-9 > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > This e mail is from DLA Piper Rudnick Gray Cary UK LLP. > > The contents of this email and any attachments are > confidential to the intended recipient. They may not be > disclosed to or used by or copied in any way by anyone other > than the intended recipient. If this email is received in > error, please contact DLA Piper Rudnick Gray Cary UK LLP on > +44 (0) 8700 11 quoting the name of the sender and the > email address to which it has been sent and then delete it. > > Please note that neither DLA Piper Rudnick Gray Cary UK LLP > nor the sender accept any responsibility for viruses and it > is your responsibility to scan or otherwise check this email > and any attachments. > > DLA Piper Rudnick Gray Cary UK LLP is a limited liability > partnership registered in England and Wales (registered > number OC307847) which provides services from offices in > England, Belgium, Germany and the People's Republic of China. > A list of members is open for inspection at its registered > office and principal place of business 3 Noble Street, London > EC2V 7EE. Partner denotes member of a limited liability partnership. > > DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law > Society and is a member of DLA Piper Rudnick Gray Cary, a > global legal services organisation, the members of which are > separate and distinct legal entities. For further > information, please refer to www.dlapiper.com. > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is recei
RE: Problem with characters
Change you encoding to UTF-8. What database are you using? Dave. -Original Message- From: lk [mailto:[EMAIL PROTECTED] Sent: 07 September 2005 09:23 To: user@struts.apache.org Subject: Problem with characters Hi, I have a problem with some characters. My application reads some forms and writes them in a db. On my test and developing environment everything works well. The problem comes out when I deploy the application on the production server. When I fill in the form non English characters (for example the typical characters of the Italian language) they are read as "?". The strange thing is that in the same tomcat context there is an old no-struts application that works well. On this server Apache and Tomcat work together and this is the only difference from my test server. In both struts-config.xml and web.xml I put this encoding Furthermore I use a tiles layout and in it I put: What could be the problem? LuKe -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Vuoi risparmiare sino al 70% sugli acquisti? Oliviero non teme confronti! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=3849&d=7-9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact DLA Piper Rudnick Gray Cary UK LLP on +44 (0) 8700 11 quoting the name of the sender and the email address to which it has been sent and then delete it. Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor the sender accept any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. DLA Piper Rudnick Gray Cary UK LLP is a limited liability partnership registered in England and Wales (registered number OC307847) which provides services from offices in England, Belgium, Germany and the People's Republic of China. A list of members is open for inspection at its registered office and principal place of business 3 Noble Street, London EC2V 7EE. Partner denotes member of a limited liability partnership. DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law Society and is a member of DLA Piper Rudnick Gray Cary, a global legal services organisation, the members of which are separate and distinct legal entities. For further information, please refer to www.dlapiper.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error Message Problem (Again)
Hi, Try the following: Use saveMessages(request, messages) instead of saveErrors(request, errors) And use something like In your web page. Regards David. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 July 2005 13:35 To: user@struts.apache.org Subject: Error Message Problem (Again) Hi All, Seems this is a constant area of irritation. I am attempting to put an error message into the ActionMessage in an Action Class and redisplay this on a JSP page. This application is using tiles and is located in a Struts Module. Seems simple enough, but I can't get the darn thing to display on the JSP. Here is extracts from my code. Action Class: public ActionForward execute(final ActionMapping mapping, final ActionForm form, final HttpServletRequest request, final HttpServletResponse response) { ActionForward forward = mapping.findForward("fail"); ActionMessages errors = new ActionMessages(); ... errors.add("displayerror", new ActionMessage("myerror", false)); ... saveErrors(request, errors); } JSP Page: ... I have also tried: ... Neither work I inspect errors on the save error line and can see the error message in the ActionMessage list, so I know it is being added to the request. I also used the false attribute to simply display "myerror" on the page to eliminate the possibilty of a properties file typo problem. Any recommendations on where to look? This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact DLA Piper Rudnick Gray Cary UK LLP on +44 (0) 8700 11 quoting the name of the sender and the email address to which it has been sent and then delete it. Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor the sender accept any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. DLA Piper Rudnick Gray Cary UK LLP is a limited liability partnership registered in England and Wales (registered number OC307847) which provides services from offices in England, Belgium, Germany and the People's Republic of China. A list of members is open for inspection at its registered office and principal place of business 3 Noble Street, London EC2V 7EE. Partner denotes member of a limited liability partnership. DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law Society and is a member of DLA Piper Rudnick Gray Cary, a global legal services organisation, the members of which are separate and distinct legal entities. For further information, please refer to www.dlapiper.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do you create a Validator rule to compare 3 fields
I have three checkboxes that can all either be unchecked or only one can be checked. How do I create a Validator rule for this. I don't think it is possible to do this neatly as I think you will always get more than one of the same error message. Can someone please tell me if I am right. Thanks Dave. This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact DLA Piper Rudnick Gray Cary UK LLP on +44 (0) 8700 11 quoting the name of the sender and the email address to which it has been sent and then delete it. Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor the sender accept any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. DLA Piper Rudnick Gray Cary UK LLP is a limited liability partnership registered in England and Wales (registered number OC307847) which provides services from offices in England, Belgium, Germany and the People's Republic of China. A list of members is open for inspection at its registered office and principal place of business 3 Noble Street, London EC2V 7EE. Partner denotes member of a limited liability partnership. DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law Society and is a member of DLA Piper Rudnick Gray Cary, a global legal services organisation, the members of which are separate and distinct legal entities. For further information, please refer to www.dlapiper.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do you iterate within an iterate
Many thanks.. -Original Message- From: Thai Dang Vu [mailto:[EMAIL PROTECTED] Sent: 12 July 2005 17:17 To: user@struts.apache.org Subject: Re: How do you iterate within an iterate I think it can be >>> [EMAIL PROTECTED] 7/12/2005 11:49:13 AM >>> How would I replace the following with the iterate tag <% ArrayList bookings = (ArrayList)request.getAttribute(BOOKINGS); Iterator bookingsiterator = bookings.iterator(); while(bookingsiterator.hasNext()) { Bookings booking = (Bookings)bookingsiterator.next(); %> <%=booking.getBookingType()%> <% ArrayList bookingData = booking.getArrayList(); Iterator dataiterator = bookingData.iterator(); while(dataiterator.hasNext()) { LabelValuePair labelValuePair = (LabelValuePair)dataiterator.next(); %> <%=labelValuePair.getLabel()%> <%=labelValuePair.getValue()%> <% } %> <% } %> This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact DLA Piper Rudnick Gray Cary UK LLP on +44 (0) 8700 11 quoting the name of the sender and the email address to which it has been sent and then delete it. Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor the sender accept any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. DLA Piper Rudnick Gray Cary UK LLP is a limited liability partnership registered in England and Wales (registered number OC307847) which provides services from offices in England, Belgium, Germany and the People's Republic of China. A list of members is open for inspection at its registered office and principal place of business 3 Noble Street, London EC2V 7EE. Partner denotes member of a limited liability partnership. DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law Society and is a member of DLA Piper Rudnick Gray Cary, a global legal services organisation, the members of which are separate and distinct legal entities. For further information, please refer to www.dlapiper.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact DLA Piper Rudnick Gray Cary UK LLP on +44 (0) 8700 11 quoting the name of the sender and the email address to which it has been sent and then delete it. Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor the sender accept any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. DLA Piper Rudnick Gray Cary UK LLP is a limited liability partnership registered in England and Wales (registered number OC307847) which provides services from offices in England, Belgium, Germany and the People's Republic of China. A list of members is open for inspection at its registered office and principal place of business 3 Noble Street, London EC2V 7EE. Partner denotes member of a limited liability partnership. DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law Society and is a member of DLA Piper Rudnick Gray Cary, a global legal services organisation, the members of which are separate and distinct legal entities. For further information, please refer to www.dlapiper.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do you iterate within an iterate
How would I replace the following with the iterate tag <% ArrayList bookings = (ArrayList)request.getAttribute(BOOKINGS); Iterator bookingsiterator = bookings.iterator(); while(bookingsiterator.hasNext()) { Bookings booking = (Bookings)bookingsiterator.next(); %> <%=booking.getBookingType()%> <% ArrayList bookingData = booking.getArrayList(); Iterator dataiterator = bookingData.iterator(); while(dataiterator.hasNext()) { LabelValuePair labelValuePair = (LabelValuePair)dataiterator.next(); %> <%=labelValuePair.getLabel()%> <%=labelValuePair.getValue()%> <% } %> <% } %> This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact DLA Piper Rudnick Gray Cary UK LLP on +44 (0) 8700 11 quoting the name of the sender and the email address to which it has been sent and then delete it. Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor the sender accept any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. DLA Piper Rudnick Gray Cary UK LLP is a limited liability partnership registered in England and Wales (registered number OC307847) which provides services from offices in England, Belgium, Germany and the People's Republic of China. A list of members is open for inspection at its registered office and principal place of business 3 Noble Street, London EC2V 7EE. Partner denotes member of a limited liability partnership. DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law Society and is a member of DLA Piper Rudnick Gray Cary, a global legal services organisation, the members of which are separate and distinct legal entities. For further information, please refer to www.dlapiper.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do you have a form with two images do two different things when submitted
How do you have two images that submit a form but they do two different operations. Thanks Dave. This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact DLA Piper Rudnick Gray Cary UK LLP on +44 (0) 8700 11 quoting the name of the sender and the email address to which it has been sent and then delete it. Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor the sender accept any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. DLA Piper Rudnick Gray Cary UK LLP is a limited liability partnership registered in England and Wales (registered number OC307847) which provides services from offices in England, Belgium, Germany and the People's Republic of China. A list of members is open for inspection at its registered office and principal place of business 3 Noble Street, London EC2V 7EE. Partner denotes member of a limited liability partnership. DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law Society and is a member of DLA Piper Rudnick Gray Cary, a global legal services organisation, the members of which are separate and distinct legal entities. For further information, please refer to www.dlapiper.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do you create a ExceptionHandler and error.jsp page
Hi, I have written an ExceptionHandler below and error.jsp page below but the error page is not displaying the error. Can anyone see why please? Thanks Dave. import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.*; import org.apache.struts.config.ExceptionConfig; public final class ActionExceptionHandler extends ExceptionHandler { public ActionForward execute(Exception ex, ExceptionConfig config, ActionMapping mapping, ActionForm formInstance, HttpServletRequest request, HttpServletResponse response) throws ServletException { ActionForward forward = null; ActionMessage message = null; String property = null; /* Get the path for the forward either from the exception element * or from the input attribute. */ String path = null; if(config.getPath() != null) { path = config.getPath(); } else { path = mapping.getInput(); } // Construct the forward object forward = new ActionForward(path); message = new ActionMessage(config.getKey()); property = message.getKey(); // Store the ActionError into the proper scope // The storeException method is defined in the parent class storeException(request, property, message, forward, config.getScope()); return forward; } } <[EMAIL PROTECTED] contentType="text/html; charset=UTF-8" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact DLA Piper Rudnick Gray Cary UK LLP on +44 (0) 8700 11 quoting the name of the sender and the email address to which it has been sent and then delete it. Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor the sender accept any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. DLA Piper Rudnick Gray Cary UK LLP is a limited liability partnership registered in England and Wales (registered number OC307847) which provides services from offices in England, Belgium, Germany and the People's Republic of China. A list of members is open for inspection at its registered office and principal place of business 3 Noble Street, London EC2V 7EE. Partner denotes member of a limited liability partnership. DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law Society and is a member of DLA Piper Rudnick Gray Cary, a global legal services organisation, the members of which are separate and distinct legal entities. For further information, please refer to www.dlapiper.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do you make the form remember the form values even if it fails validation
Hi, How do you make the form remember the form values even if it fails the validation. At the moment I am having to store them in a request attribute before calling validate. Is there an easier way. Thanks Dave. This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact DLA Piper Rudnick Gray Cary UK LLP on +44 (0) 8700 11 quoting the name of the sender and the email address to which it has been sent and then delete it. Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor the sender accept any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. DLA Piper Rudnick Gray Cary UK LLP is a limited liability partnership registered in England and Wales (registered number OC307847) which provides services from offices in England, Belgium, Germany and the People's Republic of China. A list of members is open for inspection at its registered office and principal place of business 3 Noble Street, London EC2V 7EE. Partner denotes member of a limited liability partnership. DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law Society and is a member of DLA Piper Rudnick Gray Cary, a global legal services organisation, the members of which are separate and distinct legal entities. For further information, please refer to www.dlapiper.com.
ActionMessages not being displayed!!!
I am using the following code in an Action ActionMessages messages = new ActionMessages(); messages.add(ActionMessages.GLOBAL_MESSAGE,new ActionMessage("errors.maxbookingsreached")); saveMessages(request,messages); And the following in the page this is forwarding to, but the message is not being displayed. Can anyone tell me why not? Thanks Dave. <%= error %> This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact DLA Piper Rudnick Gray Cary UK LLP on +44 (0) 8700 11 quoting the name of the sender and the email address to which it has been sent and then delete it. Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor the sender accept any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. DLA Piper Rudnick Gray Cary UK LLP is a limited liability partnership registered in England and Wales (registered number OC307847) which provides services from offices in England, Belgium, Germany and the People's Republic of China. A list of members is open for inspection at its registered office and principal place of business 3 Noble Street, London EC2V 7EE. Partner denotes member of a limited liability partnership. DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law Society and is a member of DLA Piper Rudnick Gray Cary, a global legal services organisation, the members of which are separate and distinct legal entities. For further information, please refer to www.dlapiper.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:select few doubts
This is all you need You can store your Collections in either the application/session/request/page scope. Be careful which one you store it in and what names you use as the key as the bean will check them all!! property is the name you give to the select. collection is any type of collection I use ArrayLists. The objects in your collection must have a getValue method and a getLabel method. The name value is optional. Only use it if you want to dynamically set the option in focus. The object who's key is "TESTSELECTOBJECT" in either the application/session/request/page scope must have a getTestselect method. If the value returned by getTestselect method matches a value in one of the options that option will be in focus. Regards Dave. -Original Message- From: Leandro_Dorileo/[EMAIL PROTECTED] [mailto:Leandro_Dorileo/[EMAIL PROTECTED] Sent: 09 June 2005 17:01 To: user@struts.apache.org Subject: html:select few doubts Hi All! I've never used this tag before and I'm not so good with taglibs then please correct my mistakes if I commit any. I got the following example in a recent thread here in this mailing list: Ok, few things I could already understand, in the html:select tag there are 2 properties(in this case I know) name and property; name is the form name and property is a specic attribute in this form bean that is related to this field; In the html:options we have name that is the form bean name, property is my collection, labelName is a field of my bean into the collection, and labelProperty is the final html option's value and also a field of my bean, right?; does name in both tags can be directly found in any scope? I mean if my form is either in request or session, is it going to be taken? or am I missing something? Property in the html:options tag can be any kind of Collection? can it be java.util.ArrayList? Don't I need to tell the tag wich is the type of the objects into the collection? Do I need to use the
Sorry I deleted replies by accident. How do you dynamically set one of the options in a select as selected
Sorry I deleted replies by accident I have created an array several namevalue objects and put them in the request object for the html:options to use. How do I flag one of those options to be selected. Many thanks Dave. This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact DLA Piper Rudnick Gray Cary UK LLP on +44 (0) 8700 11 quoting the name of the sender and the email address to which it has been sent and then delete it. Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor the sender accept any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. DLA Piper Rudnick Gray Cary UK LLP is a limited liability partnership registered in England and Wales (registered number OC307847) which provides services from offices in England, Belgium, Germany and the People's Republic of China. A list of members is open for inspection at its registered office and principal place of business 3 Noble Street, London EC2V 7EE. Partner denotes member of a limited liability partnership. DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law Society and is a member of DLA Piper Rudnick Gray Cary, a global legal services organisation, the members of which are separate and distinct legal entities. For further information, please refer to www.dlapiper.com.
How do you dynamically set one of the options in a select as selected
I have created an array several namevalue objects and put them in the request object for the html:options to use. How do I flag one of those options to be selected. Many thanks Dave. This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact DLA Piper Rudnick Gray Cary UK LLP on +44 (0) 8700 11 quoting the name of the sender and the email address to which it has been sent and then delete it. Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor the sender accept any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. DLA Piper Rudnick Gray Cary UK LLP is a limited liability partnership registered in England and Wales (registered number OC307847) which provides services from offices in England, Belgium, Germany and the People's Republic of China. A list of members is open for inspection at its registered office and principal place of business 3 Noble Street, London EC2V 7EE. Partner denotes member of a limited liability partnership. DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law Society and is a member of DLA Piper Rudnick Gray Cary, a global legal services organisation, the members of which are separate and distinct legal entities. For further information, please refer to www.dlapiper.com.
How do you write a regular expression for allowing single quotes in a word
How do you write a regular expression for allowing single quotes in a word eg. O'reilly Many thanks Dave. This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact DLA Piper Rudnick Gray Cary UK LLP on +44 (0) 8700 11 quoting the name of the sender and the email address to which it has been sent and then delete it. Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor the sender accept any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. DLA Piper Rudnick Gray Cary UK LLP is a limited liability partnership registered in England and Wales (registered number OC307847) which provides services from offices in England, Belgium, Germany and the People's Republic of China. A list of members is open for inspection at its registered office and principal place of business 3 Noble Street, London EC2V 7EE. Partner denotes member of a limited liability partnership. DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law Society and is a member of DLA Piper Rudnick Gray Cary, a global legal services organisation, the members of which are separate and distinct legal entities. For further information, please refer to www.dlapiper.com.
How do you dynamically create a select with one of the options selected
How do you dynamically create a select with options for example from a DB and flag one of the options to be selected. The only way I can think of is to write my own tag. Regards Dave. This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact DLA Piper Rudnick Gray Cary UK LLP on +44 (0) 8700 11 quoting the name of the sender and the email address to which it has been sent and then delete it. Please note that neither DLA Piper Rudnick Gray Cary UK LLP nor the sender accept any responsibility for viruses and it is your responsibility to scan or otherwise check this email and any attachments. DLA Piper Rudnick Gray Cary UK LLP is a limited liability partnership registered in England and Wales (registered number OC307847) which provides services from offices in England, Belgium, Germany and the People's Republic of China. A list of members is open for inspection at its registered office and principal place of business 3 Noble Street, London EC2V 7EE. Partner denotes member of a limited liability partnership. DLA Piper Rudnick Gray Cary UK LLP is regulated by the Law Society and is a member of DLA Piper Rudnick Gray Cary, a global legal services organisation, the members of which are separate and distinct legal entities. For further information, please refer to www.dlapiper.com.