Hi Gérald

I'm using Resin. I guess I need to find out how to do the configuration you
sent in resin.

/Nahid

On Friday, February 27, 2015, Gérald Quintana <gerald.quint...@gmail.com>
wrote:

> Hello,
>
> If you're using Tomcat:
>
>    - Such a filter is provided by Tomcat:
>    
> https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/filters/SetCharacterEncodingFilter.html
>    - Or you can force Tomcat to use UTF-8 at the Connector level: <
>    Connector port="8080" *URIEncoding="UTF-8"*/>
>
> Gérald
>
> 2015-02-27 11:07 GMT+01:00 VANKEISBELCK Remi <r...@rvkb.com
> <javascript:_e(%7B%7D,'cvml','r...@rvkb.com');>>:
>
>> Hi,
>>
>> I'd say Nestor is right. You app server is probably using platform locale.
>>
>> You probably want this kind of filter :
>>
>> https://github.com/pojosontheweb/woko/blob/develop/core/src/main/java/woko/util/SetCharacterEncodingFilter.java
>>
>> And configure it to use utf-8.
>>
>> Cheers
>>
>> Rémi
>>
>>
>> 2015-02-27 9:42 GMT+01:00 Nahid Seidi <nahid.se...@gmail.com
>> <javascript:_e(%7B%7D,'cvml','nahid.se...@gmail.com');>>:
>>
>>> Rick,
>>>
>>> I already tried the encoding tag, but it doesn't work. As I said, I
>>> don't think the problem is with encoding because as you see in the first
>>> jsp I get 'fname' form an actionbean and then send that to another one.
>>> Since 'fname' is shown correctly in first jsp but not in second jsp so I
>>> don't think it is about encoding. I wonder if there is another way to pass
>>> parameters (fname, lname) to the other jsp using something other than
>>> stripes:param ?
>>>
>>>
>>>
>>> On Fri, Feb 27, 2015 at 1:11 AM, Rick Grashel <rgras...@gmail.com
>>> <javascript:_e(%7B%7D,'cvml','rgras...@gmail.com');>> wrote:
>>>
>>>> Nahid,
>>>>
>>>> I've never had a problem with encoding the contents of a parameter.
>>>> Try again with this at the very top of your JSP or the very top of your
>>>> stripes template:
>>>>
>>>> <%@ page contentType="text/html; charset=UTF-8" %>
>>>>
>>>> Thanks.
>>>>
>>>> -- Rick
>>>>
>>>> On Thu, Feb 26, 2015 at 5:27 PM, Nahid Seidi <nahid.se...@gmail.com
>>>> <javascript:_e(%7B%7D,'cvml','nahid.se...@gmail.com');>> wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> I am sending some variables from stripes:param to another actionbean
>>>>> in order to show them in another jsp file. The problem is that if a
>>>>> variable has non-english characters like (ä,ö,...) stripes:param encode
>>>>> them to some wired format. I used ecoding tags in my jsp but doesn't work.
>>>>> Since stripes:param is inside a stripes:link, could it be something with
>>>>> stripes:link? For example if 'fname' in first jsp has a character like 'ö'
>>>>> stripes converts it to some other characters when it shows it in second
>>>>> jsp! I don't think it's about encoding, because the characters are shown
>>>>> correctly in first jsp but when I pass them using stripes:param they're
>>>>> changed somehow!
>>>>>
>>>>> first jsp
>>>>>
>>>>> <stripes:link 
>>>>> beanclass="se.theducation.course.ui.action.student.StudentEditExcelAction"
>>>>>  event="loadStudent" >
>>>>>     <stripes:param name="fname" 
>>>>> value="${array.getStudent().getFirstName() }" />
>>>>>     <stripes:param name="lname" value="${array.getStudent().getLastName() 
>>>>> }" />
>>>>>     edit</stripes:link>
>>>>>
>>>>> StudentEditExcelAction.java
>>>>>
>>>>> @UrlBinding("/Student/editExcel.action")public class 
>>>>> StudentEditExcelAction implements ActionBean {
>>>>> private String fname;private String lname;
>>>>> @DefaultHandler@DontValidatepublic Resolution edit() {
>>>>>     return forward("editExcel");}
>>>>> @DontValidatepublic Resolution loadStudent() {
>>>>>     System.out.println("utbildare: " + school); //TODO delete this later
>>>>>     return forward("editExcel");}
>>>>>
>>>>> second jsp
>>>>>
>>>>> <table class="solid" style="margin-top: 5px; padding: 5px; width:900px">
>>>>>     <tr class="solid">
>>>>>         <td class="solid">
>>>>>             <tags:labeled label="Firstname:"><br />
>>>>>             <stripes:text name="fname"/>
>>>>>             </tags:labeled>
>>>>>         </td>
>>>>>         <td class="solid">
>>>>>             <tags:labeled label="Lastname:"><br />
>>>>>             <stripes:text name="lname"/>
>>>>>             </tags:labeled>
>>>>>         </td>
>>>>>     </tr></table>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Dive into the World of Parallel Programming The Go Parallel Website,
>>>>> sponsored
>>>>> by Intel and developed in partnership with Slashdot Media, is your hub
>>>>> for all
>>>>> things parallel software development, from weekly thought leadership
>>>>> blogs to
>>>>> news, videos, case studies, tutorials and more. Take a look and join
>>>>> the
>>>>> conversation now. http://goparallel.sourceforge.net/
>>>>> _______________________________________________
>>>>> Stripes-users mailing list
>>>>> Stripes-users@lists.sourceforge.net
>>>>> <javascript:_e(%7B%7D,'cvml','Stripes-users@lists.sourceforge.net');>
>>>>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>>>>
>>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Dive into the World of Parallel Programming The Go Parallel Website,
>>>> sponsored
>>>> by Intel and developed in partnership with Slashdot Media, is your hub
>>>> for all
>>>> things parallel software development, from weekly thought leadership
>>>> blogs to
>>>> news, videos, case studies, tutorials and more. Take a look and join the
>>>> conversation now. http://goparallel.sourceforge.net/
>>>> _______________________________________________
>>>> Stripes-users mailing list
>>>> Stripes-users@lists.sourceforge.net
>>>> <javascript:_e(%7B%7D,'cvml','Stripes-users@lists.sourceforge.net');>
>>>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>>>
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Dive into the World of Parallel Programming The Go Parallel Website,
>>> sponsored
>>> by Intel and developed in partnership with Slashdot Media, is your hub
>>> for all
>>> things parallel software development, from weekly thought leadership
>>> blogs to
>>> news, videos, case studies, tutorials and more. Take a look and join the
>>> conversation now. http://goparallel.sourceforge.net/
>>> _______________________________________________
>>> Stripes-users mailing list
>>> Stripes-users@lists.sourceforge.net
>>> <javascript:_e(%7B%7D,'cvml','Stripes-users@lists.sourceforge.net');>
>>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website,
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub
>> for all
>> things parallel software development, from weekly thought leadership
>> blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> Stripes-users mailing list
>> Stripes-users@lists.sourceforge.net
>> <javascript:_e(%7B%7D,'cvml','Stripes-users@lists.sourceforge.net');>
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>
>>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to