Struts ultra simple entry (four)

xiaoxiao2021-03-06  48

For the last step: Write Application.Properties file, and copy to / tomcat 5.0 / webapps / struts / web-inf / class / com / javer / test / struts / directory

[Application.properties]:

Hello.jsp.title = Hello Struts! Hello.jsp.page.Heading = Struts Super simple start! Hello.jsp.prompt.Person = Please enter the name:

com.javer.test.struts.Hello.unAllowed.Person = The name cannot be taken in ',' symbol! ! ! com.javer.test.struts.hello.rror = Please enter name !

[Application_zh_cn.properties]:

hello.jsp.title = Hello Struts / uff01hello.jsp.page.heading = Struts / u8d85 / u7b80 / u5355 / u5165 / u95e8 / uff01hello.jsp.prompt.person = / u8bf7 / u8f93 / u5165 / u540d / u5b57 / uff1a

com.javer.test.struts.Hello.unAllowed.Person = / U540D / U5B57 / U4E2D / U4E0D / U80FD / U5E26 / U2018, / U2019 / U7B26 / U53F7 / UFF01 / UFF01 / UFF01com.javer.test.struts.Hello. Error = / u8bf7 / u8f93 / u5165 / u540d / u5b57 / uff01

Then start Tomcat, visit http://locahost/struts/hello.jsp, huh, isn't it ok? !

转载请注明原文地址:https://www.9cbs.com/read-40868.html

New Post(0)