Results 1 to 6 of 6

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    ****** koshera's Avatar
    Join Date: Sep:2003
    Location: Sammamish, WA, USA
    Posts: 1,507

    (Servlets, Tomcat)

    . web , url , .
    :

    Code:
    public class MainServlet extends HttpServlet {
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
                ....
                response.setContentType("text/html;charset=windows-1251");            
                PrintWriter out = response.getWriter();            
                String folderName = request.getParameter("name");
    
                out.println("<html><head>");
                out.println("\t<title>Main Servlet</title>");
                out.println("</head><body>");
                ....
                out.println("<p>"+folderName);
                ....
         }
    }
    url- - http://localhost/WebApp/MainServlet?name= ??????. , out.println(""); . , url-
    , tomcat-a, deploy- jboss .
    charset application server-a , . tomcat-a server.xml <Connector URLEncoding="windows-1251" ... >,
    , ,
    Last edited by koshera; 23rd October 2007 at 22:45.
    Thre are 10 kinds of people in this world - people who know binary, and those who don't.
    -, .

  2. #2
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    ? , .
    , , 5 .
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  3. #3
    ****** koshera's Avatar
    Join Date: Sep:2003
    Location: Sammamish, WA, USA
    Posts: 1,507
    . .
    , , . , ,
    Thre are 10 kinds of people in this world - people who know binary, and those who don't.
    -, .

  4. #4
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

  5. #5
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    URL- UTF-8 - .
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  6. #6
    ****** koshera's Avatar
    Join Date: Sep:2003
    Location: Sammamish, WA, USA
    Posts: 1,507
    Quote Originally Posted by icaci View Post
    URL- UTF-8 - .
    icaci. IE6 url- , ??????. Opera9 ???????. , url- windows-1251 ?
    , php ? . application server-
    Bombera , , , redirect ( ), url-a POST GET .

    Edit:
    . ,
    @Bombera, . GET . enctype, .
    redirect- utf-8 .
    Last edited by koshera; 25th October 2007 at 11:06.
    Thre are 10 kinds of people in this world - people who know binary, and those who don't.
    -, .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |