Topic: struts中message的问题

  Print this page

1.struts中message的问题 Copy to clipboard
Posted by: lizwjiang
Posted on: 2003-08-04 21:50

在Jsp中用到<bean:message key="inputOK.message"/>需要在struts-config中做什么配置吗?我在Jbuilder中没有配置也能正常运行,但长听到有人说需要配置,怎么回事?

2.Re:struts中message的问题 [Re: lizwjiang] Copy to clipboard
Posted by: dxy1999
Posted on: 2003-08-04 21:59

需要在struts-config.xml中定义<message-resources....>

3.Re:struts中message的问题 [Re: lizwjiang] Copy to clipboard
Posted by: lsp
Posted on: 2003-08-05 08:40

要写两个xml文件mapping 和 forward(名字你可以自己定)

mapping.xml
<event>event name from jsp<event/>
<>Action</>
<forward>event name in forward.xml</>
..
<flag>false</flag>

forward.xml
<forward>event name in forward.xml</forward>
<>jsp you want display </>
<flag>false</flag>


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923