Topic: DispatchAction与Validator、DispatchAction与Tiles的冲突

  Print this page

1.DispatchAction与Validator、DispatchAction与Tiles的冲突 Copy to clipboard
Posted by: aqing50
Posted on: 2007-01-29 15:46

在用Struts开发的时候有两个疑问,请各位大虾指教。

1.DispatchAction与Validator的冲突
Struts中的Action如果使用DispatchAction的话,struts-config.xml中得Action标签一般是不设置input属性(因为可能有多个input),但是Validator是根据input来选择显示错误信息的页面。这两者的冲突如何解决?

2.DispatchAction与Tiles的冲突
Struts中的Action如果使用DispatchAction的话,需要在struts-config.xml中设置Action的parameter属性。但是Tiles也要在struts-config.xml中设置Action的parameter属性。这两者的冲突如何解决?

2.Re:DispatchAction与Validator、DispatchAction与Tiles的冲突 [Re: aqing50] Copy to clipboard
Posted by: aqing50
Posted on: 2007-03-13 20:06

这里人气太低了,唉!!!

3.Re:DispatchAction与Validator、DispatchAction与Tiles的冲突 [Re: aqing50] Copy to clipboard
Posted by: floater
Posted on: 2007-03-14 08:30

Don't set any parameters at all. Validation is done through html form and javascript, not java at all. Tile is for display only, shouldn't touch action parameter all.

Something is not right at the design.


   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