AW: s:url, s:param and german umlauts

2009-04-23 Thread Juergen.Leeb
Hello,

I have solved the problem. There is to set escape=false in s:property, like
s:param name=titles:property value=%{title} escape=false //s:param

But what does escape=false, actually?



 -Ursprüngliche Nachricht-
 Von: juergen.l...@bmw.de [mailto:juergen.l...@bmw.de]
 Gesendet: Donnerstag, 23. April 2009 07:51
 An: user@struts.apache.org
 Cc: mgai...@hotmail.com
 Betreff: AW: s:url, s:param and german umlauts

 Does this mean there is a bug in 2.1.16?

 Von: Martin Gainty [mailto:mgai...@hotmail.com]
 Gesendet: Mittwoch, 22. April 2009 15:19
 An: Leeb Juergen, TD-311
 Betreff: RE: s:url, s:param and german umlauts

 https://issues.apache.org/struts/browse/WW-3095

 Vielen Danke,
 Martin
 __
 Verzicht und Vertraulichkeitanmerkung

 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.








 
 From: mgai...@hotmail.com
 To: juergen.l...@bmw.de
 Subject: RE: s:url, s:param and german umlauts
 Date: Wed, 22 Apr 2009 09:06:58 -0400

 Bestandteil, die setEncoding Methode verwenden

  public static final String STRUTS_I18N_ENCODING =
 struts.i18n.encoding;

 @StrutsTag(name=include,
 tldTagClass=org.apache.struts2.views.jsp.IncludeTag,
 description=Include a servlet's output  +

  (result of servlet or a JSP page))

 public class Include extends Component {



 @Inject(StrutsConstants.STRUTS_I18N_ENCODING)

  public void setDefaultEncoding(String encoding) {

  defaultEncoding = encoding;

  }



 aber wir sind interessiert, an, die URL Kategorie zu verschlüsseln
 @StrutsTag(name=url,
 tldTagClass=org.apache.struts2.views.jsp.URLTag, description=This
 tag is used to create a URL)
 public class URL extends ContextBean

 /*

 @Inject(StrutsConstants.STRUTS_I18N_ENCODING)

  public void setDefaultEncoding(String encoding) {

  defaultEncoding = encoding;

  }
 */
 setEncoding Methode fehlt in der URL Kategorie?

 Martin
 __
 Verzicht und Vertraulichkeitanmerkung

 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.









  From: juergen.l...@bmw.de
  To: user@struts.apache.org
  Date: Wed, 22 Apr 2009 14:34:27 +0200
  Subject: s:url, s:param and german umlauts
 
  Hello,
 
  I have a problem with the struts tags s:url and s:param.
  I want to provide a link within me JSP. Therefore I use the s:url and
 s:param.
  i.e.
 
  s:url id=url_xls action=EinlaufTypen_Bericht_XLS
 escapeAmp=false
  s:param name=titles:property value=%{title} //s:param
  /s:url
 
  The value of Title can include german umlauts, like ü. i.e
  title=Füller
 
  In this case I get the following url in the html-source:
 
 http://localhost:8080/DBLackAuswertungen/einlaufTypen/showEinlaufTypen_
 Eingabe.action?title=F%26%23xFC%3Bller
 
  Can somebody help me to get here a ü?
 
  I have set constant name=struts.i18n.encoding value=ISO-8859-1
 / in my struts.xml and I have
  %@ page contentType=text/html; charset=iso-8859-1
 pageEncoding=ISO-8859-1 %
  In my jsps.
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 Rediscover Hotmail®: Get quick friend updates right in your inbox.
 Check it
 out.http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Redi
 scover_Updates2_042009
 
 Rediscover Hotmail®: Get quick friend updates right in your inbox.
 Check it
 out.http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Redi
 scover_Updates2_042009

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: s:url, s:param and german umlauts

2009-04-23 Thread denis cabasson
Hi,
Escape is escaping you text in an HTML friendly way. your ü was tranformed
to #xFC; (which is the corresponding HTML entity).
The issue is that you were using that in URL that was URL-encoded. So you
#xFC; is transformed to %26%23xFC%3B (with %26= , ...).
So in the case you are using the value of a property as a URL parameter, you
need to set the encoding of that parameter to false (that's pretty much why
this parameter exists on the property tag).
Hope it helps!
Denis.

2009/4/23 juergen.l...@bmw.de

 Hello,

 I have solved the problem. There is to set escape=false in s:property,
 like
 s:param name=titles:property value=%{title} escape=false
 //s:param

 But what does escape=false, actually?



  -Ursprüngliche Nachricht-
  Von: juergen.l...@bmw.de [mailto:juergen.l...@bmw.de]
  Gesendet: Donnerstag, 23. April 2009 07:51
  An: user@struts.apache.org
  Cc: mgai...@hotmail.com
  Betreff: AW: s:url, s:param and german umlauts
 
  Does this mean there is a bug in 2.1.16?
 
  Von: Martin Gainty [mailto:mgai...@hotmail.com]
  Gesendet: Mittwoch, 22. April 2009 15:19
  An: Leeb Juergen, TD-311
  Betreff: RE: s:url, s:param and german umlauts
 
  https://issues.apache.org/struts/browse/WW-3095
 
  Vielen Danke,
  Martin
  __
  Verzicht und Vertraulichkeitanmerkung
 
  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.
 
 
 
 
 
 
 
 
  
  From: mgai...@hotmail.com
  To: juergen.l...@bmw.de
  Subject: RE: s:url, s:param and german umlauts
  Date: Wed, 22 Apr 2009 09:06:58 -0400
 
  Bestandteil, die setEncoding Methode verwenden
 
   public static final String STRUTS_I18N_ENCODING =
  struts.i18n.encoding;
 
  @StrutsTag(name=include,
  tldTagClass=org.apache.struts2.views.jsp.IncludeTag,
  description=Include a servlet's output  +
 
   (result of servlet or a JSP page))
 
  public class Include extends Component {
 
 
 
  @Inject(StrutsConstants.STRUTS_I18N_ENCODING)
 
   public void setDefaultEncoding(String encoding) {
 
   defaultEncoding = encoding;
 
   }
 
 
 
  aber wir sind interessiert, an, die URL Kategorie zu verschlüsseln
  @StrutsTag(name=url,
  tldTagClass=org.apache.struts2.views.jsp.URLTag, description=This
  tag is used to create a URL)
  public class URL extends ContextBean
 
  /*
 
  @Inject(StrutsConstants.STRUTS_I18N_ENCODING)
 
   public void setDefaultEncoding(String encoding) {
 
   defaultEncoding = encoding;
 
   }
  */
  setEncoding Methode fehlt in der URL Kategorie?
 
  Martin
  __
  Verzicht und Vertraulichkeitanmerkung
 
  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.
 
 
 
 
 
 
 
 
 
   From: juergen.l...@bmw.de
   To: user@struts.apache.org
   Date: Wed, 22 Apr 2009 14:34:27 +0200
   Subject: s:url, s:param and german umlauts
  
   Hello,
  
   I have a problem with the struts tags s:url and s:param.
   I want to provide a link within me JSP. Therefore I use the s:url and
  s:param.
   i.e.
  
   s:url id=url_xls action=EinlaufTypen_Bericht_XLS
  escapeAmp=false
   s:param name=titles:property value=%{title} //s:param
   /s:url
  
   The value of Title can include german umlauts, like ü. i.e
   title=Füller
  
   In this case I get the following url in the html-source:
  
  http://localhost:8080/DBLackAuswertungen/einlaufTypen/showEinlaufTypen_
  Eingabe.action?title=F%26%23xFC%3Bller
  
   Can somebody help me to get here a ü?
  
   I have set constant name=struts.i18n.encoding value=ISO-8859-1
  / in my struts.xml and I have
   %@ page contentType=text/html; charset=iso-8859-1
  pageEncoding=ISO-8859-1 %
   In my jsps.
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
  
  Rediscover Hotmail®: Get quick friend updates right in your inbox.
  Check it
  out.http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Redi
  scover_Updates2_042009
  
  Rediscover Hotmail®: Get quick friend updates right in your inbox.
  Check

RE: s:url, s:param and german umlauts

2009-04-23 Thread Martin Gainty

BUG found in URL.java where setDefaultEncoding method is missing 
should have:

@Inject(StrutsConstants.STRUTS_I18N_ENCODING)


 public void setDefaultEncoding(String encoding) {


 defaultEncoding = encoding;


 }


attempts at setting Encoding in struts.properties e.g.
# struts.locale=en_US
struts.i18n.encoding=UTF-8
is/are ignored by URL.java..

Martin 
__ 
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de 
déni et de confidentialité 
This message is confidential. If you should not be the intended receiver, then 
we ask politely to report. Each unauthorized forwarding or manufacturing of a 
copy is inadmissible. This message serves only for the exchange of information 
and has no legal binding effect. Due to the easy manipulation of emails we 
cannot take responsibility over the the contents.
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.






 Date: Thu, 23 Apr 2009 17:17:07 -0400
 Subject: Re: s:url, s:param and german umlauts
 From: denis.cabas...@gmail.com
 To: user@struts.apache.org
 
 Hi,
 Escape is escaping you text in an HTML friendly way. your ü was tranformed
 to #xFC; (which is the corresponding HTML entity).
 The issue is that you were using that in URL that was URL-encoded. So you
 #xFC; is transformed to %26%23xFC%3B (with %26= , ...).
 So in the case you are using the value of a property as a URL parameter, you
 need to set the encoding of that parameter to false (that's pretty much why
 this parameter exists on the property tag).
 Hope it helps!
 Denis.
 
 2009/4/23 juergen.l...@bmw.de
 
  Hello,
 
  I have solved the problem. There is to set escape=false in s:property,
  like
  s:param name=titles:property value=%{title} escape=false
  //s:param
 
  But what does escape=false, actually?
 
 
 
   -Ursprüngliche Nachricht-
   Von: juergen.l...@bmw.de [mailto:juergen.l...@bmw.de]
   Gesendet: Donnerstag, 23. April 2009 07:51
   An: user@struts.apache.org
   Cc: mgai...@hotmail.com
   Betreff: AW: s:url, s:param and german umlauts
  
   Does this mean there is a bug in 2.1.16?
  
   Von: Martin Gainty [mailto:mgai...@hotmail.com]
   Gesendet: Mittwoch, 22. April 2009 15:19
   An: Leeb Juergen, TD-311
   Betreff: RE: s:url, s:param and german umlauts
  
   https://issues.apache.org/struts/browse/WW-3095
  
   Vielen Danke,
   Martin
   __
   Verzicht und Vertraulichkeitanmerkung
  
   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.
  
  
  
  
  
  
  
  
   
   From: mgai...@hotmail.com
   To: juergen.l...@bmw.de
   Subject: RE: s:url, s:param and german umlauts
   Date: Wed, 22 Apr 2009 09:06:58 -0400
  
   Bestandteil, die setEncoding Methode verwenden
  
public static final String STRUTS_I18N_ENCODING =
   struts.i18n.encoding;
  
   @StrutsTag(name=include,
   tldTagClass=org.apache.struts2.views.jsp.IncludeTag,
   description=Include a servlet's output  +
  
(result of servlet or a JSP page))
  
   public class Include extends Component {
  
  
  
   @Inject(StrutsConstants.STRUTS_I18N_ENCODING)
  
public void setDefaultEncoding(String encoding) {
  
defaultEncoding = encoding;
  
}
  
  
  
   aber wir sind interessiert, an, die URL Kategorie zu verschlüsseln
   @StrutsTag(name=url,
   tldTagClass=org.apache.struts2.views.jsp.URLTag, description=This
   tag is used to create a URL)
   public class URL extends ContextBean
  
   /*
  
   @Inject(StrutsConstants.STRUTS_I18N_ENCODING)
  
public void setDefaultEncoding(String encoding) {
  
defaultEncoding = encoding;
  
}
   */
   setEncoding

s:url, s:param and german umlauts

2009-04-22 Thread Juergen.Leeb
Hello,

I have a problem with the struts tags s:url and s:param.
I want to provide a link within me JSP. Therefore I use the s:url and s:param.
i.e.

s:url id=url_xls action=EinlaufTypen_Bericht_XLS escapeAmp=false
s:param name=titles:property value=%{title} //s:param
/s:url

The value of Title can include german umlauts, like ü. i.e
title=Füller

In this case I get the following url in the html-source:
http://localhost:8080/DBLackAuswertungen/einlaufTypen/showEinlaufTypen_Eingabe.action?title=F%26%23xFC%3Bller

Can somebody help me to get here a ü?

I have set constant name=struts.i18n.encoding value=ISO-8859-1 / in my 
struts.xml and I have
%@ page contentType=text/html; charset=iso-8859-1 pageEncoding=ISO-8859-1 
%
In my jsps.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



AW: s:url, s:param and german umlauts

2009-04-22 Thread Juergen.Leeb
Does this mean there is a bug in 2.1.16?

Von: Martin Gainty [mailto:mgai...@hotmail.com]
Gesendet: Mittwoch, 22. April 2009 15:19
An: Leeb Juergen, TD-311
Betreff: RE: s:url, s:param and german umlauts

https://issues.apache.org/struts/browse/WW-3095

Vielen Danke,
Martin
__
Verzicht und Vertraulichkeitanmerkung

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.









From: mgai...@hotmail.com
To: juergen.l...@bmw.de
Subject: RE: s:url, s:param and german umlauts
Date: Wed, 22 Apr 2009 09:06:58 -0400

Bestandteil, die setEncoding Methode verwenden

 public static final String STRUTS_I18N_ENCODING = struts.i18n.encoding;

@StrutsTag(name=include, 
tldTagClass=org.apache.struts2.views.jsp.IncludeTag, description=Include a 
servlet's output  +

 (result of servlet or a JSP page))

public class Include extends Component {



@Inject(StrutsConstants.STRUTS_I18N_ENCODING)

 public void setDefaultEncoding(String encoding) {

 defaultEncoding = encoding;

 }



aber wir sind interessiert, an, die URL Kategorie zu verschlüsseln
@StrutsTag(name=url, tldTagClass=org.apache.struts2.views.jsp.URLTag, 
description=This tag is used to create a URL)
public class URL extends ContextBean

/*

@Inject(StrutsConstants.STRUTS_I18N_ENCODING)

 public void setDefaultEncoding(String encoding) {

 defaultEncoding = encoding;

 }
*/
setEncoding Methode fehlt in der URL Kategorie?

Martin
__
Verzicht und Vertraulichkeitanmerkung

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.









 From: juergen.l...@bmw.de
 To: user@struts.apache.org
 Date: Wed, 22 Apr 2009 14:34:27 +0200
 Subject: s:url, s:param and german umlauts

 Hello,

 I have a problem with the struts tags s:url and s:param.
 I want to provide a link within me JSP. Therefore I use the s:url and s:param.
 i.e.

 s:url id=url_xls action=EinlaufTypen_Bericht_XLS escapeAmp=false
 s:param name=titles:property value=%{title} //s:param
 /s:url

 The value of Title can include german umlauts, like ü. i.e
 title=Füller

 In this case I get the following url in the html-source:
 http://localhost:8080/DBLackAuswertungen/einlaufTypen/showEinlaufTypen_Eingabe.action?title=F%26%23xFC%3Bller

 Can somebody help me to get here a ü?

 I have set constant name=struts.i18n.encoding value=ISO-8859-1 / in my 
 struts.xml and I have
 %@ page contentType=text/html; charset=iso-8859-1 
 pageEncoding=ISO-8859-1 %
 In my jsps.

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


Rediscover Hotmail®: Get quick friend updates right in your inbox. Check it 
out.http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Updates2_042009

Rediscover Hotmail®: Get quick friend updates right in your inbox. Check it 
out.http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Updates2_042009