Groups
Groups
Sign in
Groups
Groups
DBExplorer
Conversations
About
Send feedback
Help
ajax如何象spring mvc Controller 传参的呀?
6 views
Skip to first unread message
cmaster
unread,
Jul 17, 2008, 1:47:20 AM
7/17/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DBExplorer
Ajax里的action调用的url都没有参数的如:url : '../init.do?command=login'但在InitAction里
的login方法确有个参数是如何传来的呀?ConnectParamBean param这个参数如何传进来的呀?
xl li
unread,
Jul 17, 2008, 2:02:34 AM
7/17/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dbexp...@googlegroups.com
因为所有数据都在loginForm表单中的,所以提交表单时会自动绑定到bean上提交的!
2008/7/17 cmaster <
chs...@vip.sina.com
>:
cmaster
unread,
Jul 17, 2008, 8:39:51 PM
7/17/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DBExplorer
tree.do 里用到的参数TreeNodeBean param也是这样传过来的吗?这个好像没form吗?这是用到spring 2.5的新特性
吗?
钟摆
unread,
Jul 17, 2008, 9:05:40 PM
7/17/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DBExplorer
首先,Ext的FormPanel 就对应一个html的<form>标记,并会将其中的fields的值组织成标准的http提交格式以Ajax方式
向后台提交(当然你也可以改变成采用传统的form方式提交)
二、将前端提交参数自动绑定到一个JavaBean上这是SpringMVC的功能,从2.0就有了 不是2.5的新功能。
cmaster
unread,
Jul 17, 2008, 10:52:50 PM
7/17/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DBExplorer
cmaster
unread,
Jul 17, 2008, 10:54:43 PM
7/17/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DBExplorer
On 7月18日, 上午9时05分, 钟摆 <
cnet...@gmail.com
> wrote:
用jdk1.6是用到标注吗?改成jdk1.5+spring 2.0应该变动不大吧?
Reply all
Reply to author
Forward
0 new messages