Re: [Stripes-users] Problem with Stripes:param

2015-02-27 Thread Rusty Wright
Ok, thanks. Googling brought up this answer as to why it's not using UTF-8. http://wiki.apache.org/tomcat/FAQ/CharacterEncoding On Fri, Feb 27, 2015 at 10:49 AM, Rick Grashel wrote: > Rusty, there really aren't any. It depends on your perspective. > Personally, I think some low level things an

Re: [Stripes-users] Problem with Stripes:param

2015-02-27 Thread Rick Grashel
Rusty, there really aren't any. It depends on your perspective. Personally, I think some low level things and services are better to be handed by the application server. Default character encoding is one of those. It all depends on how you view a container and the services you think it should and s

Re: [Stripes-users] Problem with Stripes:param

2015-02-27 Thread Rusty Wright
What are the disadvantages of always having the server configured for UTF-8? On Fri, Feb 27, 2015 at 4:48 AM, Rick Grashel wrote: > Nahid, > > Ah, good find by everyone that your server isn't in UTF-8. > > If you are using Resin, just put this in your resin configuration file: > > utf-8 > > That

Re: [Stripes-users] Problem with Stripes:param

2015-02-27 Thread VANKEISBELCK Remi
Nahid, The servlet filter makes your app portable without any server config required. I'd keep the filter if I were you. That's why it's included in almost every framework out there. We could add this as a core functionality into Stripes dispatching : it's easy, and quite the recurrent feature.

Re: [Stripes-users] Binding actionsBeans correctly

2015-02-27 Thread Nahid Seidi
Here is the code: FirstAction.java @SessionScope @UrlBinding("/Student/newImport.action") public class FirstAction implements ActionBean { @SpringBean private StudentFacade studentFacade; private List importExcel; private String userCheckBox; @DefaultHandler @DontValidate public Resolution

Re: [Stripes-users] SessionScope hides Stripes:errors

2015-02-27 Thread Nahid Seidi
Rick, ImportExcel is a class providing setters and getters. Here is the cod for jsp <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"; %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %>

Re: [Stripes-users] Binding actionsBeans correctly

2015-02-27 Thread Rick Grashel
Nahid, Again, I can't see all the code you are using, but it looks like you can just have SecondAction extend FirstAction: public class SecondAction extends FirstAction { @DefaultHandler @DontValidate public Resolution callImportTable() { return super.importTable(); } } I can't see all the code

Re: [Stripes-users] SessionScope hides Stripes:errors

2015-02-27 Thread Rick Grashel
Nahid, What is "ImportExcel"? Is that just a class you are building up in a List internally? Seeing the entire piece of code with JSP would help here. It's hard to understand the page flow from the code you've provided. -- Rick On Fri, Feb 27, 2015 at 7:03 AM, Nahid Seidi wrote: > I need to

[Stripes-users] Binding actionsBeans correctly

2015-02-27 Thread Nahid Seidi
In following code I am calling a method in 'FirstAction' from 'SecondAction'. When exception occurs in 'FirstAction' I need the 'getSourcePageResolution' to get back to 'import.jsp' as the UrlBinding is saying so, but instead, it gets back to a default error page which I defined in web.xml as foll

Re: [Stripes-users] Problem with Stripes:param

2015-02-27 Thread Nahid Seidi
Rick, You're right! It works without doing any filter mapped. Thanks! /Nahid On Fri, Feb 27, 2015 at 1:48 PM, Rick Grashel wrote: > Nahid, > > Ah, good find by everyone that your server isn't in UTF-8. > > If you are using Resin, just put this in your resin configuration file: > > utf-8 > > Th

[Stripes-users] SessionScope hides Stripes:errors

2015-02-27 Thread Nahid Seidi
I need to use @SessionScope to make a list stay in the page after refreshing, but when I use it, Stripes:error doesn't display error any more. Stripes:error works actually(error is on a field in which user needs to input and if the field is empty, error is showing and user can not submit the form)

Re: [Stripes-users] Problem with Stripes:param

2015-02-27 Thread Rick Grashel
Nahid, Ah, good find by everyone that your server isn't in UTF-8. If you are using Resin, just put this in your resin configuration file: utf-8 That should fix the issue without the need for a filter. -- Rick On Fri, Feb 27, 2015 at 6:15 AM, Nahid Seidi wrote: > Thank you everyone for your

Re: [Stripes-users] Problem with Stripes:param

2015-02-27 Thread VANKEISBELCK Remi
Glad it works. Look at the sources : it probably forces request/response encoding by calling : http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#setCharacterEncoding(java.lang.String) Cheers Rémi 2015-02-27 13:15 GMT+01:00 Nahid Seidi : > Thank you everyone for your answer

Re: [Stripes-users] Problem with Stripes:param

2015-02-27 Thread Nahid Seidi
Thank you everyone for your answers. I added the following in web.xml and it works now! But it's also weird to me how Spring MVC affects on encoding! CharacterEncodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 CharacterEncodingFilter /* /Nahid On Fri

Re: [Stripes-users] Problem with Stripes:param

2015-02-27 Thread Nahid Seidi
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 wrote: > Hello, > > If you're using Tomcat: > >- Such a filter is provided by Tomcat: > > https://tomcat.apache.org/tomcat-7.0-doc/a

Re: [Stripes-users] Problem with Stripes:param

2015-02-27 Thread Gérald Quintana
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: Gérald 2015-02-27 11:07 GMT+01:00 VANKEISBELCK

Re: [Stripes-users] Problem with Stripes:param

2015-02-27 Thread VANKEISBELCK Remi
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 GM

Re: [Stripes-users] Problem with Stripes:param

2015-02-27 Thread Nahid Seidi
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