Announcement Announcement Module
No announcement yet.
SWF STRANGE behavior Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • SWF STRANGE behavior

    HI at all,
    i have a strange behavior using SpringWF....i already developed some web application using SWF and Spring, and never before now i saw it.
    Well, i've usually form, with some field...particularly one field contains a regular expression definition.
    I fill it with following content: ".*.*" or rather a reg exp that mathes any characters sequence that contains in the middle my specific string "".
    The problem i get is... when i submit the form to the server, the previous field is converted with some encoding different from my expected encoding, that is UTF-8.
    I debugged SWF forest, stopping into
    bindAndValidate(RequestContext context)
    here I noticed that my filled form fields are mapped into requestParameterMap in the form [field_name -> value] and the value corresponding to reg exp field is ['regexp_object' -> '****'].
    Is this correct ?
    I debugged CharacterEncodingFilter class, stopping into
    protected void doFilterInternal(....)
    having the same result, field value converted into another encoding, i thing ISO8859 or something..

    Note that, my jsp has UTF-8 econding set and my application contains a filter that transform all encoding in UTF-8.
    For clarity follow some definition:
    jsp header
    <?xml version="1.0" encoding="UTF-8" ?>
    <%@ page language="java" contentType="text/html; charset=UTF-8"
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <html xmlns="">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    web flow definition
    <start-state idref="enter-sw-add-flow" />
    <view-state id="enter-sw-add-flow" view="addSw">
    		<action bean="addSWAction" method="setupForm" />
    	<transition on="cancel" to="finish" />
    	<transition on="save" to="aSW">
    		<action bean="SWAction" method="bindAndValidate" />
    Please help me, i'm in trouble...i dont know why of this behavior is the first time i get it, maybe could be a bug or my inesperience.

    TnX in advance,
    regards edcruise.