Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A problem with requested parameters

 
Sasan torabkheslat
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks before typing this topic! for your attention!!

now!!

I've created a JSP project with netbeans 7.0 and tomcat 7.0 too with no problem!

but when export it to a web archive (war) and deploy it into my tomcat server (without netbeans) i saw a problem;
this tag doesn't work:


but these ones works:



has any body now what's the problem!!!?

thans for any advise!
 
Paul Clapham
Sheriff
Pie
Posts: 20771
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You probably have encoding problems. A lot of software in the web application world works by default in the ISO-8859-1 (Western European) charset, which as you can tell from its name doesn't handle Farsi characters properly.

So make sure you configure everything in sight to use UTF-8 as its charset (also called "encoding"). First make sure that Netbeans saves your JSP files with UTF-8 encoding. And make sure that your JSPs declare themselves like this:


And finally read the Tomcat FAQ page about character encoding: Character Encoding Issues and implement in particular the section starting with "In order to completely switch to using UTF-8..."
 
Sasan torabkheslat
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:You probably have encoding problems. A lot of software in the web application world works by default in the ISO-8859-1 (Western European) charset, which as you can tell from its name doesn't handle Farsi characters properly.

So make sure you configure everything in sight to use UTF-8 as its charset (also called "encoding"). First make sure that Netbeans saves your JSP files with UTF-8 encoding. And make sure that your JSPs declare themselves like this:


And finally read the Tomcat FAQ page about character encoding: Character Encoding Issues and implement in particular the section starting with "In order to completely switch to using UTF-8..."



you right!

but all of my jsp pages hat this tag!!

I've created a JSP project with netbeans 7.0 and tomcat 7.0 too with no problem!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic