You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Michael Obster <mi...@obster.org> on 2011/03/30 11:20:26 UTC

Ajax Reload on fieldset in a

Hi,

perhaps somebody has a hint for me. I'm calling a <sj:dialog> from a 
website and load there a JSP with 3 fieldsets. The content of the 
fieldsets are also loaded with AJAX (used a <sj:div> for that).

Now I have a problem with the 3rd fieldset which I've used for saving 
attachments. After clicking on "Save" I get the content rendered on the 
main window. This is not what I want. What I need is a reload of the 
content in the attachment fieldset.

Is there a "standardised" way to reload <sj:div> in a dialog with Struts2?

Kind regards,
Michael Obster

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


RE: Chinese character problem

Posted by Rohit <ro...@in-rev.com>.
Sorry.. this is while submitting form. I started using this filter and the problem was solved. But is this the right way?

<filter>
  		<filter-name>encodingFilter</filter-name>
    	<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
    	<init-param>
      		<param-name>encoding</param-name>
      		<param-value>UTF-8</param-value>
    	</init-param>
    	<init-param>
      		<param-name>forceEncoding</param-name>
      		<param-value>true</param-value>
    	</init-param>
	</filter> 
  

Regards,
Rohit

-----Original Message-----
From: Lukasz Lenart [mailto:lukasz.lenart@googlemail.com] 
Sent: 31 March 2011 18:18
To: Struts Users Mailing List
Subject: Re: Chinese character problem

2011/3/31 Rohit <ro...@in-rev.com>:
> I am trying to handle Chinese word in my application (Struts2 bases), but
> when the word "沃尔沃" in UI it becomes "&#27779;&#23572;&#27779;".
>
> How can I handle this?

Are you using property files?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/

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


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


Re: Chinese character problem

Posted by Lukasz Lenart <lu...@googlemail.com>.
2011/3/31 Rohit <ro...@in-rev.com>:
> I am trying to handle Chinese word in my application (Struts2 bases), but
> when the word "沃尔沃" in UI it becomes "&#27779;&#23572;&#27779;".
>
> How can I handle this?

Are you using property files?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/

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


Re: Chinese character problem

Posted by Dave Newton <da...@gmail.com>.
When displaying? When submitting a form? When what? Is your encoding
set properly? Are you escaping it somewhere?

2011/3/31 Rohit <ro...@in-rev.com>:
> Hi,
>
> I am trying to handle Chinese word in my application (Struts2 bases), but
> when the word "沃尔沃" in UI it becomes "&#27779;&#23572;&#27779;".
>
> How can I handle this?
>
> Regards,
> Rohit
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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


Chinese character problem

Posted by Rohit <ro...@in-rev.com>.
Hi,

I am trying to handle Chinese word in my application (Struts2 bases), but
when the word "沃尔沃" in UI it becomes "&#27779;&#23572;&#27779;".

How can I handle this?

Regards,
Rohit


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


Re: Ajax Reload on fieldset in a

Posted by Johannes Geppert <jo...@apache.org>.
Take a look in the 
http://www.weinfreund.de/struts2-jquery-showcase/index.action Showcase ,
there is an example for reloading divs. You can use for this reloadTopics.

    
    
    
    	Refresh Div
    


Johannes

-----

--------------
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep
--
View this message in context: http://struts.1045723.n5.nabble.com/Ajax-Reload-on-fieldset-in-a-sj-dialog-tp4271087p4271682.html
Sent from the Struts - User mailing list archive at Nabble.com.

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