top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

Struts2 with extended achii character problem

+1 vote
74 views

I am using struts 2.3.15 libraries. I have put a text field value as "user ".

Whenever I submit the form, the text field value changes and the special character changes to "?".

I have struts1 also in the same project and it works perfectly fine for struts1 pages.

posted Dec 2, 2013 by Satish Mishra

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

+1 vote

Try setting accept-charset="utf-8" in your html forms, hope it helps.

answer Dec 2, 2013 by Abhay Kulkarni
Thanks for the replay.
I have tried this, but the problem didn't go.
Have you used pageEncoding directive in JSPs? Try this link...

http://stackoverflow.com/questions/3596213/page-encoding-in-jsp
Thanks it worked...
Similar Questions
+2 votes

I am facing an issue related to maintaining session token value when we have window forms.

We have a main form, which needs token to submit. There is a link through which we can open a window , which also needs token and can submit the form.

Once we close the window and try to submit the main form, we get token mismatch error. Because the session token had changed by this time.

Is there any solution for this issue.

+1 vote

I am using s:select to create a dropdown and then checked the html. I wanted to add bgcolor as yellow. I referred to the following link

http://struts.apache.org/release/2.2.x/docs/struts-2-themes.html

but still not sure how to put the background clour as yellow. Can anyone provide any pointers? Also, is it OK to use JSTL tags in JSPs in a Struts 2 application ?

0 votes

Have anybody tried with using jersey along with struts for the rest api.

Before I have an execute() method in the rest api that has code for redirecting into get , and now if I replace my code with jersey path annotations how can I use the work done by action in struts

+1 vote

Will it restrict the information being stored at the browser cache.

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...