How to open the page in the CHM format with the help of documents ah?
Abstract: In the opening pages how CHM format with the help of documents ah?
How to open the page in the CHM format with the help of documents, it is best to use F1 Shortcuts.
Do not click on the Help file downloads can be made open.
Window.showHelp ("../****. chm ");
<body Onhelp="window.open('mk:@MSITStore:http://www.blueidea.com/user/qswh/css2.chm::/css2/c_wordwrap.html');returnfalse;">
<body Onhelp="window.open('its:http://www.blueidea.com/user/qswh/css2.chm::/css2/c_wordwrap.html');return false;">
↑ Back
JSP pages of Chinese that the problem!
Abstract: JSP pages of Chinese that the problem!
In a JSP page, using the Java language to write some procedures, the Chinese have a String variable, this time with System.out.print showed that the Chinese String, no problem, and then the JSP pages in the form of a show String variables this time, when the variables for the general Chinese characters there is no problem, if this String variables for the 10 not uncommon word, such as "Lee" as "?", please master answers! Thank you
Gb2312 coding pages for all, if the importation of pages alone, "Chong", can be shown as "Chong"
GBK to look at the code
Will not be put in the database, the database may not understand?
Not stored to the database
Will be coded into the iso-8859-1 look at the bar,
Look at the code posts spread out
<% @ Page contentType = "text / html; charset = GB2312"%>
<% @ Page language = "java"%>
<% @ Page session = "true"%>
<% @ Page errorPage ="../ ExceptionErrorPage.jsp "%>
<% @ Page import = "java.util .*"%>
<% @ Page import = "com.cascc.avidm.dt.lib.utility.DateFormatter"%>
<% @ Page import = "com.cascc.platform.aa.org.user.UserData"%>
<% @ Page import = "com.cascc.platform.aa.org.ejb20 .*"%>
<% @ Page import = "com.cascc.platform.aa.AAContext"%>
<% @ Page import = "com.cascc.avidm.login.model.PersonModel"%>
<% @ Page import = "com.cascc.platform.domain.util.ServiceLocator"%>
<% @ Page import = "com.cascc.avidm.util.AvidmConstDefine"%>
<% @ Page import = "com.cascc.platform.aa.org.position.PositionData"%>
<%
String userid = "";
String username = "";
Try (
PersonModel person = (PersonModel) session.getAttribute ( "person");
Userid = person.getUserIID ();
Username = person.getUserName ();
System.out.println (username); / / Chinese shown here normal
) Catch (Exception e) ()
%>
<head>
<link> Rel = "stylesheet" type = "text / css" href ="../ css / avidm.css ">
</ Head>
<body>
<form Name="tran" method="get">
<Input type = "textt" name = "username" value ="<%= username %>">// shown here uncommon Chinese shown as "?"
</ Form>
</ Body>
Many of them have been introduced by its own category
Gb2312 is a relatively small set of characters, or by GBK utf-8 bar
"<% Username% =>" 10%
"<% = New String (username.getBytes (" GBK "));%>"
On the
Thank you, and even wanted to try, would come to the question!
Jsp pages in the document header with <% = request.setCharacterEncoding ( "gb2312")%>
Charset = pages you have changed charset = GB2312 GBK should be the
Learned, I am also encountered this problem now solved
OnlyFor_love (no to give me points on the landlord to cut several chick ')
Use your test methods, or will not do it?
Dlc_hot (), not the desire, to talk about the killing that solution
Too late
<% @ Page pageEncoding = "GB2312"%>
Try
OnlyFor_love (no to give me points on the landlord to cut several chick ') () Blue: 131 2006-08-18 14:30:00 points: 0
"<% Username% =>" 10%
"<% = New String (username.getBytes (" ISO8859-1 ")," GBK ");%>"
Can try this
"<% Username% =>" 10%
"<% = New String (username.getBytes (" ISO8859-1 ")," GBK ")%>"
After the semicolon expression not just wrong
Boss, "Chong" word is a traditional Chinese characters, can not write.
For example, "longå Ž" there is a time for the old name, you use normal five-stroke, you do not fight them.
In the database can be inserted into you, but if you want to use IE to show that it does not always show up.
I also encountered the same problem, depressed for a few days and finally had to help him change the name, or the landlord to change other characters. Users use of this word because it is very difficult played out. Finally had to do stop.
Experts do not know whether there are any good suggestions.
<% @ Page contentType = "text / html; GBK charset ="%>
<head>
</ Head>
Change like this and see us! Have you said the wrong reasons and gb2312 character sets include only common Chinese characters,
It is a subset of GBK!
Passing, friendship up!
<% Request.setCharacterEncoding ( "Try gb2312 ");%>
String username = new String (username.getBytes ( "ISO8859-1"), "GBK");
System.out.println ( "username:" + username);
Certain it is right, I just encountered this problem ..
Up
I also top up
In the top of the page for a command ah <% @ gb2312 page charset = "%> on jsp action can be solved by embedding the hash problem ah
There are several good ways to do ah
Right. Several idea is good. Study. . .
————————————————– ———————————-
100M.Net Mail space +50 M = 60 yuan / year
100M.Net top-level domains international space + = 100 yuan / international top-level domains. Com.net.cn = 50 yuan / year for domain names this site can be bundled free space 10 M Asp.Net
1000M.Net space + + 100M MsSql database 1000M Mail top-level domains = 600 + / enterprise database, complete machine rented post office Web site to promote the building of the United States Space web site are for sale there are many different packages available to the user layer.
Interested parties may contact Tel :021-64802212 Fax :021-64802212
Advisory mail: info@kingtoo.com Advisory OICQ: 68311305,379620139 81778640
Supervisor welcome spin gold from straw-net http://www.boxigroup.com web site development (j2ee. Net asp php javascript, c #, etc.) c / s Development (delphi, vb, vc, pb, cb) database development ( oracle, sqlserver, db2, access, mysql, Postgresql, informix), and other learning materials, hoping to meet the urgent needs of your resolve to make this website Favorites folder from time to time to prepare for the needs of bs + cs discussion groups (9638134)
Supervisor welcome spin gold from straw-net http://www.boxigroup.com web site development (j2ee. Net asp php javascript, c #, etc.) c / s Development (delphi, vb, vc, pb, cb) database development ( oracle, sqlserver, db2, access, mysql, Postgresql, informix), and other learning materials, hoping to meet the urgent needs of your resolve to make this website Favorites folder from time to time to prepare for the needs of bs + cs discussion groups (9638134)
GB2312
==>
GBK
GB18030
Ha ha ~ ~ ~ I have to top
Pages are encoded for gb2312
Thank you Bangding, the problem has been resolved!
Positive Solutions (not only) is: will be GBK charset!
XX 2!
↑ Back
On the bean: JAVA code wording of the message?
Abstract: On the bean: JAVA code wording of the message?
↑ Back Abstract: door to the Big Brother Big Sister younger brother asked the question about the time ↑ Back Abstract: understand the socket under the busy helping friends ↑ Back Abstract: urgency, repeatedly called on the JSP servlet cpu 100 percent occupancy rate issue ↑ Back Abstract: jsp in how the statistics of a number of links are clicked? ↑ Back Abstract: How to MyEclipse Tomcat server configuration? ↑ Back Abstract: POI operation Excel! ↑ Back Abstract: java want to learn the web programming, brothers to some of its recommendations…… ↑ Back
Written on the page
I would like to use JAVA code writing, the wording of the Internet to find the following:
<% @ Page import = "org.apache.struts.util.MessageResources"%>
<% @ Page import = "org.apache.struts.Globals"%>
<%
MessageResources resources = (MessageResources) request.getAttribute (Globals.MESSAGES_KEY);
String labelUserName = resources.getMessage (Locale.CHINESE, "label.username");
%>
However, we can not add bundle this parameter, I do not know how to write?
Thank you.
.. Is not necessary, direct
Key resources and the allocation of documents inside
I would like to JAVA code written? ?
I said that the leakage of the struts-config configuration
Public MessageResources retrieveMessageResources (PageContext pageContext,
String bundle, boolean checkPageScope) throws JspException (
MessageResources resources = null;
If (bundle == null)
Bundle = "org.apache.struts.action.MESSAGE";
If (checkPageScope)
Resources = (MessageResources) pageContext.getAttribute (bundle, 1);
If (resources == null)
Resources = (MessageResources) pageContext.getAttribute (bundle, 2);
If (resources == null) (
ModuleConfig moduleConfig = getModuleConfig (pageContext);
Resources = (MessageResources) pageContext.getAttribute (bundle
+ ModuleConfig.getPrefix (), 4);
)
If (resources == null)
Resources = (MessageResources) pageContext.getAttribute (bundle, 4);
If (resources == null) (
JspException e = new JspException (messages.getMessage (
"Message.bundle" bundle));
SaveException (pageContext, e);
Throw e;
Else ()
Return resources;
)
)
But there is absolutely no need, and should not be useful in this case and, if so, it is written code problems
Big Brother Big Sister doors to the younger brother asked the question about the time
I want to big brother to the String type of mandatory time 2005-2-23 into how to type ah Date
SimpleDateFormat sf = new SimpleDateFormat ( "M-dd-yyyy");
Date d = sf.parse ( "2005-2-23");
√ way upstairs
Understand socket under the busy helping friends
There is a Socket socket and ServerSocket it is not to write another two machine code a client is a server-side
In fact, a machine can be ah
That is a project under the same can be? Local seem to be on the die can be remote
In fact, it is debugging, and the two local machine can be ah, ip and port that can be
Up
In fact, it is debugging, and the two local machine can be ah, ip and port that can be
:____________________________________________________________
Agree
Oh, I know what you mean, oh. The same machine card but must ensure that the lights are bright Hei hei
This is a machine there is no relationship between two machines, as long as they can find through ip and port services on the communications.
White somewhat depth okay
I wrote JSP with a pass background C SOCKET communication procedures do not know is how to use the LZ
Urgency, repeatedly called on the JSP servlet cpu 100 percent occupancy rate issue
I wrote a JSP pages There are also a servlet
All on the server in the client calls JSP
JSP pages in the call after several servlet method is to call this servlet point to a <script id = "test"> </ script> the src
Client IE cpu occupancy rate will reach more than 70 per cent and the downward trend does not know how he's going on?
Rather strange phenomenon, first check the cycle, and then see if there is any other reason may affect the
I am so stressed SERVLET it is not in the JSP pages to be destroyed what?
Oh, rarely use SERVLET expect the guidance of experts
Destroy
SERVLET-operation in the service of the ah,
If the client CPU utilization high, it should look SERVLET output html code is not a large circle of js statements in the implementation.
Recommend the use of a step-by-step debugging software with watching
Jsp how the statistics in a number of links are clicked?
Popularity is the forum is how to do so?
This is a simple counting code on the application.jsp.
<%
Int count = 0;
String counter_name = request.getParameter ( "counter_name");
Try
(
Count = Integer.parseInt ((application.getAttribute (counter_name). ToString ()));
)
Cathc ()
(
)
Count + +;
Application.setAttribute (counter_name, new Integer (counter));
%>
Use counter. This test.jsp page.
This has OK
Once it wrote no shutdown of the server, and how the server will be closed before the data into the database of lasting ah, I do not want a box to the server could not close before reunification reinstall ah
Http://community.csdn.net/Expert/topic/4983/4983305.xml?temp=.8822748
Pages should be in the browser will visit several +1, but also combines the session, that is, a person can not be repeated at 1
You only need to write a numerical changes in the database like!
Counting is not a tool?
MyEclipse how to configure Tomcat server?
I have now completed the operation: Window - Preferences - MyEclipse - Application server - Tomcat 5 - set to enable, and the path set to D: / JSP / Tomcat 5.5 (my machine in the tomcat Path).
But in the time and start a server error message: A configuration error occurred during startup. Please verify the preference field with the prompt: Tomcat JDK name.
In deploy (deployment), "add" tomcat also suggested that similar mistakes.
However, I of this site in the browser can display correctly. I do not know how this mistake should be solved? Tomcat5 myeclipse also add servers as necessary?
In the Window - Preferences - MyEclipse - Application server - Tomcat 5 - add your JDK on the JDK
Not upstairs, inside the tomcat is jdk counterparts java-> Installed Jres options in the jdk, your problem may be that the jdk path at your jrehome rather than javahome
I also have a problem, finding a solution is in the Window - Preferences - MyEclipse - Application server - Tomcat 5 - JDK inside, JDK a new name, pointing original jdk directory useful if the original This directory pointing to it.
MyEclipse you have downloaded to a Web site, and crack form
Back upstairs, in the official website of a download, registration code is not everywhere!!
On the landlord of the problem I have encountered, can also explained in detail that ah, I jdk version 1.42, for a two j2sdk1.4.2 directory in the directory c: root directory, the other for j2re1.4.2 program files java directory in the directory, I do not know how choices ah, do not know directory What is the difference between the two, a friend of his knowledge please tell me! grateful!
Kevinmartin (the soul) positive solution, but doubts that, in the initiation of Tomcat myeclipses after what is the use? After debugging is not the time or more convenient?
If myeclipse in the editing, not in myeclipses start Tomcat, but by IE to debugging is not the same?
Oh, just found in the initiation of myeclipse Tomcat, myeclipse will automatically help you deployment site. You can go to the Tomcat webapps directory to see the deployment of the project after the structure.
Jdk installed, there are two options paper directory, the first choice jdk install directory, and the second was the choice jre directory, in the second option, the best option to your jdk install directory folder under jre , this would not have been a problem.
Myeclipse and tomcat has been bundled together, can be directly released the past, we can visit.
POI operation Excel!
Doing the data into Excel document to the database, in the first visit local client Excel file, and then submitted to the Servlet processing, can not first file upload to the server, and then to operate the POI files directly on the Servlet Reading from the contents of the documents stored in the database!
Chuan does not boost servlet how analysis? Serious analysis finished, and then deleted the file on the end of hymns
If the documents are significant, or upload it, then cut.
Ding
Can
Documents can be uploaded inputStream, then analysis, does not have to be preserved
Can not first file upload to the server, and then to operate the POI documents,
Servlet read directly on the content of the document stored in the database!
——————————-
You save the file to the database is preserved in the binary Afghanistan. You can not be directly operated by POI.
You can save the file to the database, then use the time servlet operations from the database to read the paper, and then use POI operation.
Do not know this is not what you want.
Documents can be uploaded inputStream, then analysis, does not have to be preserved
________________________________
This is I want, how specific do give an example?
Concerned about learning!
Learning
Java want to learn the web programming, brothers to some of its recommendations……
Before doing PHP, the programming can still thinking there will be some understanding.
Know that the same language is in fact the basic reason why java will go above the reasons is because Jianjian and environmental factors.
There is so little java basis, but the real jsp code or write a lot of things worse.
Jsp learning that idea a bit, after all, not the people.
Therefore, I hope that our brothers come here to seek help, the Xieguo.
J2se things clear first, especially the pool this part. More than reading, jsp application development can also Xiangjie
Personal my humble opinion:
Jsp inside in the first direct write java code, database connectivity, to be a site previously done, the completion of some commonly used functions almost feel that, after learning some of the java web development framework. Step-by-step practice. Practice is the last word.
Time `very easy “
Tcmis (Do you forget?) () Blue: 100 Blog 2006-09-05 11:17:00 points: 0
Personal my humble opinion:
Jsp inside in the first direct write java code, database connectivity, to be a site previously done, the completion of some commonly used functions almost feel that, after learning some of the java web development framework. Step-by-step practice. Practice is the last word.
———————-
Your proposal looked good, and done many projects before, demand flow algorithm is clear, the only java completed the Dongdong, ah. Thank you, Kazakhstan……
Right, before you wrote the php jsp achieve with the process again,
Look at the book, j2ee jsp servlet all know, from the foundation to learn is actually very simple,
Vacuumboy (study well and every day upward) () Blue: 100 Blog 2006-09-05 11:07:00 points: 0
J2se things clear first, especially the pool this part. More than reading, jsp application development can also Xiangjie
—————-
Jsp because just begun contacts, did not know Shazi good book, not in the books recommended just two? ? ? Hei hei,
Java is not the package that starts slowly Kane?
Many…………
Java syntax simple java procedures simple HTML jsp connecting to the database with jsp javaBeanservlet ……
Recommendations:
Buy the book "JSP application development explain" this book very easy to understand framework also includes a lot of examples of what many! If you would like to go if the JSP line, worth a visit
Java syntax simple java procedures HTML and scc simple jsp and javascript jsp connect with the database and ajaxjavaBeanservletStrust, spring, hiberate - jsf ….
Jsp and servlet
Main clear direction of the development if it is the only web site does not make much money, the proposed system of learning, future development direction -
"Java learning from entry to the master"
Http://forum.javaeye.com/viewtopic.php?t=37&highlight =
"On learning Java"
Http://forum.javaeye.com/viewtopic.php?t=42&highlight =
Reprint
Feettrace (feettrace) () Blue: 100 Blog 2006-09-05 13:37:00 points: 0
Java syntax simple java procedures HTML and scc simple jsp and javascript jsp connect with the database and ajaxjavaBeanservletStrust, spring, hiberate - jsf ….
———–
Web programming on the basis of my own that will also include js, css, and so on. Hei hei, has been omitted on the front, will also ajax. Jsp connecting to the database from the beginning of it:)
***********************
Yifuzhiming (haha) () Blue: 84 Blog 2006-09-05 14:09:00 points: 0
Main clear direction of the development if it is the only web site does not make much money, the proposed system of learning, future development direction -
__________________
I do so mainly because of language development, not the only site, thank you.
************
Handerz_cn () () Blue: 100 Blog 2006-09-05 15:01:00 points: 0
"Java learning from entry to the master"
Http://forum.javaeye.com/viewtopic.php?t=37&highlight =
"On learning Java"
Http://forum.javaeye.com/viewtopic.php?t=42&highlight =
Reprint
——————-
Ah, I went to look at:) If there is more jsp good book on the "JSP application development explain" I look to, but I do not believe that domestic computer book publishers. It is true that this book