中的href参数怎么用?

helenofnt 2004-03-19 08:43:03
The URL to which this hyperlink will transfer control if activated. This hyperlink may be dynamically modified by the inclusion of query parameters, as described in the tag description. You must specify exactly one of the action attribute, the forward attribute, the href attribute, the linkName attribute, or the page attribute.

着是帮助里的原文描述
我对This hyperlink may be dynamically modified by the inclusion of query parameters
不是太能很好的理解
是不是说在action中动态的从数据库查询出来的结果可以用来设做href的值??
我很急!!!!

我想动态的修改一个连接所指向地址!
...全文
260 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
imagex 2004-07-30
  • 打赏
  • 举报
回复

有这个必要吗???

如果你觉的有,可以试一个动态的参数href="<%=actionName%>"

应该是可以的!!!
fantasyCoder 2004-03-19
  • 打赏
  • 举报
回复
有这个必要吗???

如果你觉的有,可以试一个动态的参数href="<%=actionName%>"

应该是可以的!!!
helenofnt 2004-03-19
  • 打赏
  • 举报
回复
我不是这意思!!!!

我希望 href="actionNamn.do"后面的"actionNamn.do"是从数据库读出来的
而不是我直接写在程序里的
我要修改连接
只需改数据库就可以了
有办法做到吗?
fantasyCoder 2004-03-19
  • 打赏
  • 举报
回复
<html:link href="actionNamn.do">
struts会去寻找path属性为actionName的Action
在Action里选择你要跳转的页面!

50,541

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧