Experience the real struts development 3
Yang Hengxian (yanghx@70345.com)
From this issue, you will enter the topic and explain the development of Struts and Hibernate with a message.
For the page of the message version, please refer to the Excel documentation of the attachment.
First we follow the practice, write a plank
Engineering card
date
2004-3-27 11:00
the work
Internationalization and abnormal treatment
Executor
Yang Hengxian
Time (estimate)
3 hours
task list:
l Use UTF-8 to internationalize
l Handling JSP page Error with Struts Java code error l validator verification
l test
Remarks:
Task tracking:
date
carry out
carry on
time cost
Note
globalization
12:00
0:30:00
OK
Error handling
13:10
1:10:00
OK
Validator verification
14:00
0:50
OK
First we are ready to make UTF-8 tools
Native2ascii This file is in the bin directory of JDK, and the method is as follows.
Native2ascii -ecoding GBK C: /GBKSource.txt C: /utf8source.txt
It is internationalized using the Struts resource file.
Modify the last Logon.jsp file
<% @ page language = "java"%>
<% @ Taglib Uri = "http://jakarta.apache.org/struts/tags-bean" prefix = "bean"%>
<% @ taglib uri = "http://jakarta.apache.org/struts/tags-html" prefix = "html"%>
hEAD>
html: form>