Re: Email validation regex - client vs. server

2012-10-07 Thread Martin Uhlir
On 10/07/2012 02:27 AM, Lukasz Lenart wrote: 2012/10/6 : Hi all, I'm using @EmailValidator annotation to check an email address. The Struts2 documentation http://struts.apache.org/2.x/docs/email-validator. html(http://struts.apache.org/2.x/docs/email-validator.html) mentions that following reg

Re: .action suffix - how to control it?

2009-07-22 Thread Martin Uhlir
Hi David, try to set following property struts.action.extension=,, in struts.properties which suppress generating of the suffix for your actions. Martin David C. Hicks wrote: Hi folks, I'm having some issues with the ".action" suffix with respect to my integration testing. When we are in

Re: Ajax Basics

2009-07-07 Thread Martin Uhlir
Hi, have a look at this plugin for Struts2 http://code.google.com/p/struts2-jquery/wiki/DatePickerTag Just drop the the jar into WEB-INF/lib and you are ready to go. Martin Richard Gundersen wrote: Hi I'm trying to get the datetimepicker working in my app. It's Struts 2 but it's total

Re: applicationresources.properties with utf-8 characters

2009-07-01 Thread Martin Uhlir
hi, use native2ascii to convert the foreign characters into \u escape sequence. look at here http://globalizer.wordpress.com/2007/02/08/property-resource-bundle-encoding/ martin Odelya YomTov wrote: Hi! I would like to have in my applicationresources.properties utf-8 charcters. Whe

Re: Convention Plugin - default action

2009-05-22 Thread Martin Uhlir
Hm, already solved. The problem was that I previously set "struts.action.extension" to my own extension. Disabling this property solved my problem. Martin wrote: Hello, looking at the documentation of convention plugin http://struts.apache.org/2.1.6/docs/convention-plugin.html#ConventionPl

Convention Plugin - default action

2009-05-22 Thread Martin Uhlir
Hello, looking at the documentation of convention plugin http://struts.apache.org/2.1.6/docs/convention-plugin.html#ConventionPlugin-Actionannotation I found this interesting feature "Default action and result handling (i.e. /products will try com.example.actions.Products as well as com.examp

Re: Images

2007-10-22 Thread Martin Uhlir
Hi, when the page is loaded for the first time, there is such tag in your html page may be there is problem with the jsessionid=43E71BFE7F7B323A7437A0011F5A0FE9 because no such file "logo.jpg;jsessionid=43E71BFE7F7B323A7437A0011F5A0FE9" exists on your hard disk.. for the 2nd time (when coo

Re: Struts and arabic encoding

2007-08-12 Thread Martin Uhlir
Just a question. I saw your filter again and there is this request.getAttribute("cate"); This gets for you only an attribut which is stored in the request scope (it doesnt have anything to do with the html forms). If you want get the your form text field you should use request.getParameter("c

Re: Struts and arabic encoding

2007-08-12 Thread Martin Uhlir
Hi, have you tryed this too at the start of jsp?? It should set the content type in the header of the response (not only in element of the html page). <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="windows-UTF-8"%> Martin Christopher Schultz wrote: -

Re: Struts and arabic encoding

2007-08-11 Thread Martin Uhlir
Hi, before you gain the parameters in a servlet you should set their encoding (by default they are latin1). The best way is to use a filter like this: public class ArabicEncodingFilter implements Filter { public void init(FilterConfig filterConfig) throws ServletException { } public