Encoding of french characters in s:property /
Hi all, my first post to this list :-). I'm using Struts 2.1.6 and want to display a string that contains both HTML markup as well as french characters (i.e. é è ê etc) on a webpage. If I use s:property value=%{document.text} escape=true/ the french characters are correctly displayed, but the markup is escaped, and displayed as normal text. If I set escape=false the tag interrupts the string at the first french character, nothing is displayed of it or anything else of the subsequent characters in the string. How can I solve this problem? Update to a newer Struts version? Best regards, Ulf
Encoding of french characters in s:property /
Hi all, my first post to this list :-). Sorry if I'm double posting, not sure if the first message reached the list. I'm using Struts 2.1.6 and want to display a string that contains both HTML markup as well as french characters (i.e. é è ê etc) on a webpage. If I use s:property value=%{document.text} escape=true/ the french characters are correctly displayed, but the markup is escaped, and displayed as normal text. If I set escape=false the tag interrupts the string at the first french character, nothing is displayed of it or anything else of the subsequent characters in the string. How can I solve this problem? Update to a newer Struts version? Best regards, Ulf
optiontransferselect and cssStyle
Hi all, I want don't display the red area in my view (http://imagebin.ca/view/j6G3MClp.html) until I do click in a select of this view. My problem is I don't know how to don't show the red area, certainly it is a optiontransferselect. I tried it with: s:optiontransferselect cssStyle=display:none My attempt label=Lista de Incidencias name=incidencias listValue=nombre list=lstTipoAlta listKey=id doubleName= doubleList= leftTitle=Incidencias posibles rightTitle=Incidencias elegidas multiple=true headerKey=headerKey headerValue=--- Marque --- emptyOption=true doubleHeaderKey=doubleHeaderKey doubleHeaderValue=--- Marque --- doubleEmptyOption=true doubleMultiple=true s:param name=labelcolspan value=%{2} / s:param name=inputcolspan value=%{10} / /s:optiontransferselect But it doesn't work as I want, this is the out: http://imagebin.ca/view/3drljXN.html thanks. David Crespo Arroyo davidcrespoarr...@hotmail.com _ ¿Quieres saber qué PC eres? ¡Descúbrelo aquí! http://www.quepceres.com/
Re: Encoding of french characters in s:property /
Hi Ulf, do you have your charset declared as utf8 like this? %@ page contentType=text/html; charset=UTF-8% Maybe you have to write the special characters in the string as html entities... Em 11-03-2010 09:10, Ulf Liedén escreveu: Hi all, my first post to this list :-). Sorry if I'm double posting, not sure if the first message reached the list. I'm using Struts 2.1.6 and want to display a string that contains both HTML markup as well as french characters (i.e. é è ê etc) on a webpage. If I uses:property value=%{document.text} escape=true/ the french characters are correctly displayed, but the markup is escaped, and displayed as normal text. If I set escape=false the tag interrupts the string at the first french character, nothing is displayed of it or anything else of the subsequent characters in the string. How can I solve this problem? Update to a newer Struts version? Best regards, Ulf - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Encoding of french characters in s:property /
Hi Alex, I had characterset set to ISO-8859-1, but changing to UTF-8, according to your suggestion, did the trick! Thanks a lot! Cheers! On Thu, Mar 11, 2010 at 1:00 PM, Alex Rodriguez Lopez alo...@flordeutopia.pt wrote: Hi Ulf, do you have your charset declared as utf8 like this? %@ page contentType=text/html; charset=UTF-8% Maybe you have to write the special characters in the string as html entities... Em 11-03-2010 09:10, Ulf Liedén escreveu: Hi all, my first post to this list :-). Sorry if I'm double posting, not sure if the first message reached the list. I'm using Struts 2.1.6 and want to display a string that contains both HTML markup as well as french characters (i.e. é è ê etc) on a webpage. If I uses:property value=%{document.text} escape=true/ the french characters are correctly displayed, but the markup is escaped, and displayed as normal text. If I set escape=false the tag interrupts the string at the first french character, nothing is displayed of it or anything else of the subsequent characters in the string. How can I solve this problem? Update to a newer Struts version? Best regards, Ulf - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Catching url for action not defined
Wildcard mapping should do the trick. See [1]. -Brian [1] - http://struts.apache.org/2.0.14/docs/action-configuration.html#ActionConfiguration-WildcardMethod On Thu, Mar 11, 2010 at 1:39 AM, Saeed Iqbal saee...@gmail.com wrote: Hi Guys How would I do http://localhost/some_name where some_name is a random name and not defined as an action in struts.xml I would like your input on this please. Thanks, -saeed -- Saeed Iqbal Independant Consultant J2EE - Application Architect / Developer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Problem with freemaker, basic Struts2 app in Google App Engine
Sorry, i had a problem so i can't answer. The Struts version is 2.0.11 El 3/10/2010 11:58 AM, Lukasz Lenart escribió: 2010/3/10 Oscaroscar.kalde...@gmail.com: I've changed my appengine-web-app as you said but i still get the same error. You can see it here (in a new application): What version of Struts 2 are you using? Regards -- Oscar Calderon JAVA Tutorials and How to's? Visit http://www.javahowto.net/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Problem with freemaker, basic Struts2 app in Google App Engine
2010/3/11 Oscar Calderon oscar.kalde...@gmail.com: Sorry, i had a problem so i can't answer. The Struts version is 2.0.11 No problem, but I think you have to upgrade to latest version - 2.1.8.1 Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: How to deploy struts on tomcat
Hi Abhishek, normaly just copying and pasting war should work on tomcat, i can't remeber if tomcat needs to be restarted or it will discover the war automaticaly - check the tomcat server.xml for that. War is a standard, it doesn't matter if it contains struts or spring application inside. As for myeclipse, i don't know if it will autodeploy your app, probably it can. As for ant, You can use it there is nothing wrong with it. Best greetings, Pawel Wielgus. 2010/3/10, abhishek jain abhishek.netj...@gmail.com: Hi friends, I have developed a struts 1 application, i need to know what are the ways and means to deploy a struts application, if i just copy and paste the war application, will it be the correct way? Also if i have myeclipse can it directly deploy on the remote server via FTP(on linux), and is it ok to use ant,i am new to ant. Please advise, Thanks a lot. -- Thanks and kind Regards, Abhishek jain - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Struts2 Dojo Date Picker Locales
We have an application where a user can override the language they login using by selecting it from a dropdown list on the login page. By doing so, I need to find a way that I can set the locale for my date time picker widget. How have others done this in the past when the browser's language and installation locale may be en_US yet the user wants to display and interact with the application in another language, such as de_DE? Chris - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: About the better way to implement a JSP in read/edit mode
Hi all, no one's right. One file need more presentation logic - which is bad and harder to maintain also presenting edit and view in one place might not be the most ergonomic way for users. On the other hand, one file is less than two which might be good. Also with one file you will never forget to present in view file new field that just had been added to model in edit. The point here is that there is no simple answear for this question. Best greetings, Pawel Wielgus. 2010/3/10, Frederik Minatchy frederi...@yahoo.fr: many thanks :) I appreciate your response --- En date de : Mer 10.3.10, Alex Rodriguez Lopez alo...@flordeutopia.pt a écrit : De: Alex Rodriguez Lopez alo...@flordeutopia.pt Objet: Re: About the better way to implement a JSP in read/edit mode À: user@struts.apache.org Date: Mercredi 10 mars 2010, 10h24 I do tend to think that the less files the better. Here it's the same with the number of files for actions/jsp, one can use more actions, ore less actions but more methods inside. Same with jsp, I do think it's better with less files, but a colleague here also thinks the opposite, sometimes with less files you have to provide aditional checks or cases so one file fits all possible use cases. I think it's more elegant for me with same file for read and edit, but others might dissagree, not sure if a way is better than the other :) Alex Em 10-03-2010 09:43, Frederik Minatchy escreveu: I think I will think about that during my next Struts2 project :) But about my question Do I have to develop several interfaces with the same fields in read mode and edit mode? Does this mean that I should use the same JSP to do both? (that's already what I have done... but a colleague thinks that it is not the better way... who's right? :) ) --- En date de : Mer 10.3.10, Angelo zerrangelo.z...@gmail.com a écrit : De: Angelo zerrangelo.z...@gmail.com Objet: Re: About the better way to implement a JSP in read/edit mode À: Struts Users Mailing Listuser@struts.apache.org Date: Mercredi 10 mars 2010, 9h26 Hi Frederik, FormView can works with any HTML or JSP Taglib. It update HTML switch configuration and state of your HTML field. Formview works with Struts 1.x to use information about validation.xml (like required, date...). I don't know how works Struts 2.x validation but I think it's possible to develop that. Regards Angelo 2010/3/10 Frederik Minatchyfrederi...@yahoo.fr Hello... Thank you for your answer... Your tag seems usefull.. but it seems to have been developped for Struts 1.x --- En date de : Mar 9.3.10, Angelo zerrangelo.z...@gmail.com a écrit : De: Angelo zerrangelo.z...@gmail.com Objet: Re: About the better way to implement a JSP in read/edit mode À: Struts Users Mailing Listuser@struts.apache.org Date: Mardi 9 mars 2010, 21h04 Hi Frederick, I had created a project about this problem with http://formview.sourceforge.net/ With FormView, you develop ONE Jsp to manage CRUD form. It's old project but it works well (I have not time today to improve it). Regards Angelo 2010/3/9 Paweł Wielguspoulw...@gmail.com Hi Frederick, You can also add readonly or disabled property to textfields. But i don't think that there is a simple answear to your question about if it is good or bad. Best greetings, Paweł Wielgus. 2010/3/9 Frederik Minatchyfrederi...@yahoo.fr: Hello everybody... I wonder about the better way to implement a JSP which shows the same informations in readonly mode and in creation/modification mode. So I have just designed the JSP' fields with s:textfield who can be dynamically shown in readonly mode with special css (background:transparent; border:none;...) specified in the action class. So the action class sets some attributes with certains values and than the html stream is generated in read mode or in edit mode. Is this the good way or should I developpe two JSP : one in read mode and an other one in edit mode? - 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 - 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: optiontransferselect and cssStyle
David Crespo Arroyo wrote: I want don't display the red area in my view (http://imagebin.ca/view/j6G3MClp.html) until I do click in a select of this view. So put that inside a span or div with display:none, and add javascript to change that when appropriate. -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: About the better way to implement a JSP in read/edit mode
After having read several answers I think your right... it depends mainly on the peoples working on the project. If they are abble to implement the same kind of JSP. Regards Fred --- En date de : Jeu 11.3.10, Paweł Wielgus poulw...@gmail.com a écrit : De: Paweł Wielgus poulw...@gmail.com Objet: Re: About the better way to implement a JSP in read/edit mode À: Struts Users Mailing List user@struts.apache.org Date: Jeudi 11 mars 2010, 15h22 Hi all, no one's right. One file need more presentation logic - which is bad and harder to maintain also presenting edit and view in one place might not be the most ergonomic way for users. On the other hand, one file is less than two which might be good. Also with one file you will never forget to present in view file new field that just had been added to model in edit. The point here is that there is no simple answear for this question. Best greetings, Pawel Wielgus. 2010/3/10, Frederik Minatchy frederi...@yahoo.fr: many thanks :) I appreciate your response --- En date de : Mer 10.3.10, Alex Rodriguez Lopez alo...@flordeutopia.pt a écrit : De: Alex Rodriguez Lopez alo...@flordeutopia.pt Objet: Re: About the better way to implement a JSP in read/edit mode À: user@struts.apache.org Date: Mercredi 10 mars 2010, 10h24 I do tend to think that the less files the better. Here it's the same with the number of files for actions/jsp, one can use more actions, ore less actions but more methods inside. Same with jsp, I do think it's better with less files, but a colleague here also thinks the opposite, sometimes with less files you have to provide aditional checks or cases so one file fits all possible use cases. I think it's more elegant for me with same file for read and edit, but others might dissagree, not sure if a way is better than the other :) Alex Em 10-03-2010 09:43, Frederik Minatchy escreveu: I think I will think about that during my next Struts2 project :) But about my question Do I have to develop several interfaces with the same fields in read mode and edit mode? Does this mean that I should use the same JSP to do both? (that's already what I have done... but a colleague thinks that it is not the better way... who's right? :) ) --- En date de : Mer 10.3.10, Angelo zerrangelo.z...@gmail.com a écrit : De: Angelo zerrangelo.z...@gmail.com Objet: Re: About the better way to implement a JSP in read/edit mode À: Struts Users Mailing Listuser@struts.apache.org Date: Mercredi 10 mars 2010, 9h26 Hi Frederik, FormView can works with any HTML or JSP Taglib. It update HTML switch configuration and state of your HTML field. Formview works with Struts 1.x to use information about validation.xml (like required, date...). I don't know how works Struts 2.x validation but I think it's possible to develop that. Regards Angelo 2010/3/10 Frederik Minatchyfrederi...@yahoo.fr Hello... Thank you for your answer... Your tag seems usefull.. but it seems to have been developped for Struts 1.x --- En date de : Mar 9.3.10, Angelo zerrangelo.z...@gmail.com a écrit : De: Angelo zerrangelo.z...@gmail.com Objet: Re: About the better way to implement a JSP in read/edit mode À: Struts Users Mailing Listuser@struts.apache.org Date: Mardi 9 mars 2010, 21h04 Hi Frederick, I had created a project about this problem with http://formview.sourceforge.net/ With FormView, you develop ONE Jsp to manage CRUD form. It's old project but it works well (I have not time today to improve it). Regards Angelo 2010/3/9 Paweł Wielguspoulw...@gmail.com Hi Frederick, You can also add readonly or disabled property to textfields. But i don't think that there is a simple answear to your question about if it is good or bad. Best greetings, Paweł Wielgus. 2010/3/9 Frederik Minatchyfrederi...@yahoo.fr: Hello everybody... I wonder about the better way to implement a JSP which shows the same informations in readonly mode and in creation/modification mode. So I have just designed the JSP' fields with s:textfield who can be dynamically shown in readonly mode with special css (background:transparent; border:none;...) specified in the action class. So the action class sets some attributes with certains values and than the html stream is generated in read mode or in edit mode. Is this the good way or should I developpe two JSP : one in read mode and an other one in edit mode? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For
Re: How to deploy struts on tomcat
I think that for local dev -deployment we can configure tomcat in eclipse (the same should apply for MyEclipse), by telling the eclipse tomcat home location in the workspace preference. This would deploy ur app in the tomcat as context / xml files as u mention in preference. But for QA, prod or remote deploy, i would suggest you use ant or maven deploy script. Ant is simplest and could be learnt in few hours :) Regards, - Girish Naik Mobile:-+91-09740091638 girish.n...@gmail.com 2010/3/11 Paweł Wielgus poulw...@gmail.com Hi Abhishek, normaly just copying and pasting war should work on tomcat, i can't remeber if tomcat needs to be restarted or it will discover the war automaticaly - check the tomcat server.xml for that. War is a standard, it doesn't matter if it contains struts or spring application inside. As for myeclipse, i don't know if it will autodeploy your app, probably it can. As for ant, You can use it there is nothing wrong with it. Best greetings, Pawel Wielgus. 2010/3/10, abhishek jain abhishek.netj...@gmail.com: Hi friends, I have developed a struts 1 application, i need to know what are the ways and means to deploy a struts application, if i just copy and paste the war application, will it be the correct way? Also if i have myeclipse can it directly deploy on the remote server via FTP(on linux), and is it ok to use ant,i am new to ant. Please advise, Thanks a lot. -- Thanks and kind Regards, Abhishek jain - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: About the better way to implement a JSP in read/edit mode
Hi, IHMO I think the best solution is ONE JSP to manage any mode. When you have a lot of fields, it's very difficult to maintain your view. When you add/remove field into EDIT JSP you must add/remove filed into CREATE JSP, UPDATE JSP,...Imagine that you want manage roles too (display a field if user has some roles). This combinaison becomes awfull if you have a JSP per mode. That's why I have created FormView. Manage your CRUD form with ONE JSP. FormView capture the HTML generated by JSP and update it switch mode, roles... I had developped this project to manage any Taglib. But IHMO I think it should be very cool that Struts2.x manage edit mode into Taglib. You can find this idea into Struts-Layouthttp://struts.improve-technologies.com/features/displaymode.html(DisplayMode). You drive the display mode on server and taglib display the HTML switch the mode. The only diffuclty with this idea is to configure th etaglib to generate a string A country (HTML generated = A country) instead of a HTML select which display A country (HTML generated = selectoption selected=trueA country/optionoptionB country/option/select Regards Angelo 2010/3/11 Paweł Wielgus poulw...@gmail.com Hi all, no one's right. One file need more presentation logic - which is bad and harder to maintain also presenting edit and view in one place might not be the most ergonomic way for users. On the other hand, one file is less than two which might be good. Also with one file you will never forget to present in view file new field that just had been added to model in edit. The point here is that there is no simple answear for this question. Best greetings, Pawel Wielgus. 2010/3/10, Frederik Minatchy frederi...@yahoo.fr: many thanks :) I appreciate your response --- En date de : Mer 10.3.10, Alex Rodriguez Lopez alo...@flordeutopia.pt a écrit : De: Alex Rodriguez Lopez alo...@flordeutopia.pt Objet: Re: About the better way to implement a JSP in read/edit mode À: user@struts.apache.org Date: Mercredi 10 mars 2010, 10h24 I do tend to think that the less files the better. Here it's the same with the number of files for actions/jsp, one can use more actions, ore less actions but more methods inside. Same with jsp, I do think it's better with less files, but a colleague here also thinks the opposite, sometimes with less files you have to provide aditional checks or cases so one file fits all possible use cases. I think it's more elegant for me with same file for read and edit, but others might dissagree, not sure if a way is better than the other :) Alex Em 10-03-2010 09:43, Frederik Minatchy escreveu: I think I will think about that during my next Struts2 project :) But about my question Do I have to develop several interfaces with the same fields in read mode and edit mode? Does this mean that I should use the same JSP to do both? (that's already what I have done... but a colleague thinks that it is not the better way... who's right? :) ) --- En date de : Mer 10.3.10, Angelo zerrangelo.z...@gmail.com a écrit : De: Angelo zerrangelo.z...@gmail.com Objet: Re: About the better way to implement a JSP in read/edit mode À: Struts Users Mailing Listuser@struts.apache.org Date: Mercredi 10 mars 2010, 9h26 Hi Frederik, FormView can works with any HTML or JSP Taglib. It update HTML switch configuration and state of your HTML field. Formview works with Struts 1.x to use information about validation.xml (like required, date...). I don't know how works Struts 2.x validation but I think it's possible to develop that. Regards Angelo 2010/3/10 Frederik Minatchyfrederi...@yahoo.fr Hello... Thank you for your answer... Your tag seems usefull.. but it seems to have been developped for Struts 1.x --- En date de : Mar 9.3.10, Angelo zerrangelo.z...@gmail.com a écrit : De: Angelo zerrangelo.z...@gmail.com Objet: Re: About the better way to implement a JSP in read/edit mode À: Struts Users Mailing Listuser@struts.apache.org Date: Mardi 9 mars 2010, 21h04 Hi Frederick, I had created a project about this problem with http://formview.sourceforge.net/ With FormView, you develop ONE Jsp to manage CRUD form. It's old project but it works well (I have not time today to improve it). Regards Angelo 2010/3/9 Paweł Wielguspoulw...@gmail.com Hi Frederick, You can also add readonly or disabled property to textfields. But i don't think that there is a simple answear to your question about if it is good or bad. Best greetings, Paweł Wielgus. 2010/3/9 Frederik Minatchyfrederi...@yahoo.fr: Hello everybody... I wonder about the better way to implement a JSP which shows the same informations in readonly mode and in
Re: Problem with freemaker, basic Struts2 app in Google App Engine
Ok, i'm going to do that and after that tell us if works. Regards. El 3/11/2010 8:52 AM, Lukasz Lenart escribió: No problem, but I think you have to upgrade to latest version - 2.1.8.1 -- Oscar Calderon JAVA Tutorials and How to's? Visit http://www.javahowto.net/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Locale based Type handler
Hi I use Struts 2.0.11 for my web application. I have a text field that maps to a java.util.date in my pojo. When my Locale is English, the date seems to be set fine, But when my locale is es_CL, struts seems to be searching for a setDate(java.lang.String) instead. Am not sure why this is happening and if I need to configure something, so that Struts would take care of setting the date object properly. Any help here is appreciated. Thanks, -- Regards Sundar S.
struts-layout.tld
Hi, Where to download struts-layout.tld? I searched many sites, but could not find it. Please help. Thanks, Senshan Yang Phone (o): 239-430-4151 Phone (c): 954-478-3927 email:sy...@micros.com