urlencoding
Hi, in my webapp, I have the following tag : html:link action=folder paramName=folder paramId=folder paramProperty=fullNamefolder/html:link In some case, fullName has special chars In the result source I can see : a href=folder.do?folder=Courrier+ind%C%A9sirablefolder/a The URL seems to be correctly UTF-8 encoded In the folder.do Action, if I SysOut the folder parameter, I just can see some other special chars in the String (a special A and a copyright) an URLDecode.decode(myString, UTF-8) doesn't work. Where is my mistake ? Thanks Bye Orange Caraibe IMPORTANT. CONFIDENTIEL : Les informations contenues dans ce message sont confidentielles et peuvent etre protegees par la loi. Ce message est etabli a l'intention exclusive de ses destinataires. Si vous recevez ce message par erreur, toute lecture, exploitation ou transmission des informations contenues dans ce message est interdite. Merci de prevenir l'expediteur et de supprimer de votre ordinateur le message et tous les fichiers eventuellement attaches. Tout message electronique est susceptible d'alteration. Orange Caraibe decline toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie ; de meme, il appartient au destinataire de s'assurer de l'absence de tout virus.http:/www.orangecaraibe.com IMPORTANT. CONFIDENTIALITY : this e-mail is confidential and meant for only the intended recipients of the transmission, and may be a communication privileged by law. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify the sender immediately of the error by return e-mail and please delete this message and any attachments from your system. Thank you in advance for your cooperation. E-mails are susceptible to alteration. Orange Caraibe shall not be liable for the message if altered, changed or falsified. the recipient should ensure they are actually virus free. Orange Caraibe may monitor all incoming and outgoing e-mails in line with current legislation. http:/www.orangecaraibe.com
Validation Problem with depends=URL
Hey, i am trying to validate the input of a form bean containing various fields. One of the fields requires the entry of an URL. The field-tag in my validation.xml looks like that: field property=otherProperty(webURL) depends=required,url msg name=required key= errors.required/ msg name=url key=errors.url/ arg key= webURL position=0/ var var-nameallowallschemes/var-name var-valuefalse/var-value /var var var-nameschemes/var-name var-valuehttp/var-value /var /field Validation works just fine with all the other fields, but not with this one. When I leave it empty, I get an error-msg, that's okay, when i enter an invalid url I also get an error-msg, still okay. but when I enter a valid url (example: http://www.myurl.com/ http://www.myurl.com) I also get the message that this is an invalid url, which is not okay, cause as long as I am not able to enter valid urls my form bean will never parse. What am I doing wrong? Why is struts telling me that every valid url I enter is invalid? Best regards Franck
DynaValidatorForm properties Initialisation
Hi', I'm migrating apps from Struts 1.1 to Struts 1.2 and have some difficulties with DynaActionForm My DynaForm look like : form-bean name=loginForm type=org.apache.struts.validator.DynaValidatorForm form-property name=user type=com.myClasses.User/ /form The problem is that the properties are not initialised, the default constructor isn't called So I can't call in the jsp for example html:text property=user.name/ I've looked in Struts source. The init of properties seem to be initialised in FormBeanConfig.createActionForm(Servlet servlet) But the code it depends of the test : if (form instanceof DynaBean ((DynaBean)form).getDynaClass() instanceof MutableDynaClass) { The condition (DynaBean)form).getDynaClass() instanceof MutableDynaClass isn't true, ... So the properties are not initialised What did I miss ? Thanks Franck Orange Caraibe IMPORTANT. CONFIDENTIEL : Les informations contenues dans ce message sont confidentielles et peuvent etre protegees par la loi. Ce message est etabli a l'intention exclusive de ses destinataires. Si vous recevez ce message par erreur, toute lecture, exploitation ou transmission des informations contenues dans ce message est interdite. Merci de prevenir l'expediteur et de supprimer de votre ordinateur le message et tous les fichiers eventuellement attaches. Tout message electronique est susceptible d'alteration. Orange Caraibe decline toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie ; de meme, il appartient au destinataire de s'assurer de l'absence de tout virus.http:/www.orangecaraibe.com IMPORTANT. CONFIDENTIALITY : this e-mail is confidential and meant for only the intended recipients of the transmission, and may be a communication privileged by law. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify the sender immediately of the error by return e-mail and please delete this message and any attachments from your system. Thank you in advance for your cooperation. E-mails are susceptible to alteration. Orange Caraibe shall not be liable for the message if altered, changed or falsified. the recipient should ensure they are actually virus free. Orange Caraibe may monitor all incoming and outgoing e-mails in line with current legislation. http:/www.orangecaraibe.com
Re: DynaValidatorForm properties Initialisation
Sorry, classpath problem :-( Orange Caraibe IMPORTANT. CONFIDENTIEL : Les informations contenues dans ce message sont confidentielles et peuvent etre protegees par la loi. Ce message est etabli a l'intention exclusive de ses destinataires. Si vous recevez ce message par erreur, toute lecture, exploitation ou transmission des informations contenues dans ce message est interdite. Merci de prevenir l'expediteur et de supprimer de votre ordinateur le message et tous les fichiers eventuellement attaches. Tout message electronique est susceptible d'alteration. Orange Caraibe decline toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie ; de meme, il appartient au destinataire de s'assurer de l'absence de tout virus.http:/www.orangecaraibe.com IMPORTANT. CONFIDENTIALITY : this e-mail is confidential and meant for only the intended recipients of the transmission, and may be a communication privileged by law. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify the sender immediately of the error by return e-mail and please delete this message and any attachments from your system. Thank you in advance for your cooperation. E-mails are susceptible to alteration. Orange Caraibe shall not be liable for the message if altered, changed or falsified. the recipient should ensure they are actually virus free. Orange Caraibe may monitor all incoming and outgoing e-mails in line with current legislation. http:/www.orangecaraibe.com
Https to HTTP - Rewrite URL with login and password parameter
Hello, I have a problem with my login page. I want to use the SSL extensions just for my login page, but i pass to a non secure page after the login, the plug-ins rewrite url with the login and the password in paramter. Where is my error ? Thsk for your help This is my struts config !-- Go to the login JSP page -- action path=/authentification forward=/index.jsp set-property property=secure value=true/ /action !-- Action to validate login and password -- action path=/j_security_check type=com.sylob.cochise.dm1.war.general.identifier.IdentifierAction name=SecuriteForm scope=request validate=true input=/index.jsp set-property property=secure value=true/ forward name=success path=/authenticate.do / forward name=retry path=/index.jsp / /action !-- Action to forward in non secure page -- action path=/authenticate type=com.sylob.cochise.dm1.war.general.identifier.IdentifierAction set-property property=secure value=false/ forward name=success contextRelative=false path=/switch.do?page=/accueil.doamp;prefix= / /action - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Https to HTTP - Rewrite URL with login and password parameter [Plain Format]
Hello, I have a proble with my login page. I want to use the SSL extensions just for my login page, but i pass to a non secure page after the login, the plug-ins rewrite url with the login and the password in paramter. Where is my error ? Thsk for your help This is my struts config !-- Go to the login JSP page -- action path=/authentification forward=/index.jsp set-property property=secure value=true/ /action !-- Action to validate login and password -- action path=/j_security_check type=com.sylob.cochise.dm1.war.general.identifier.IdentifierAction name=SecuriteForm scope=request validate=true input=/index.jsp set-property property=secure value=true/ forward name=success path=/authenticate.do / forward name=retry path=/index.jsp / /action !-- Action to forward in non secure page -- action path=/authenticate type=com.sylob.cochise.dm1.war.general.identifier.IdentifierAction set-property property=secure value=false/ forward name=success contextRelative=false path=/switch.do?page=/accueil.doamp;prefix= / /action - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
obfuscation Struts config
Hello, I search a product (free or commercial) for obfuscation of my source. But I have a problem with the file struts-config.xml or jsp file (usebean for e.g.). This files declare the class, but if in my bytecode, i rename the class how does it work. I search a product for struts framework with facilities to modify all text/xml/jsp files. if you know link to a product, an another method to protect the code source, i'm interesting Tks for your help Franck -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
use strutsed jsp as email template ?
Hello, I would like to know if there is a way to use a jsp file to format an email body (something like a velocity template) (I don't want to embed emailer custom tags in the jsp) In my idea I would like to find a way to do something like that : -- example.jsp : -- %@ taglib uri=/WEB-INF/tlds/struts-bean.tld prefix=bean % html Some String : bean:write name=myBean /html - example.java : - Template myEmailTemplate = new Template(example.jsp); myEmailTemplate.setAttribute(request, myBean, the value of my string); String messageBody = myEmailTemplate.format(); Any idea ? -- Franck Lefebure equipe web http://www.orangecaraibe.com