有一个页面分左右2个FRAME(left,right)
left 是一个导航树,点击他就会在right显示节点的详细内容。
left (就是MzTree 相信有人用过)是通过从数据库取出来数据,组装成的静态页面。是通过url ? +参数的方式把 数据传给右面。
在web.xml中配置的时候,如下面 <servlet>
<servlet-name>hellowold</servlet-name>
<servlet-class>HelloWold</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>hellowold</servlet-name>
<url-pattern>/hellowold</url-pattern> 不可能在<url-pattern>/hellowold</url-pattern> 中写 /hellowold ?*
那么又怎么能知道交给哪个action 处理呢。不知道我说清楚了没有,
其实问题很简单,
就是以前通过url后面加参数的方式传递数据,现在怎么解决(不能用form 和 input type =“hidden”,再加上 他又是静态的 param 也不能用 )还有就是 target = right 这个 在struts 中有没有效果?
left 是一个导航树,点击他就会在right显示节点的详细内容。
left (就是MzTree 相信有人用过)是通过从数据库取出来数据,组装成的静态页面。是通过url ? +参数的方式把 数据传给右面。
在web.xml中配置的时候,如下面 <servlet>
<servlet-name>hellowold</servlet-name>
<servlet-class>HelloWold</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>hellowold</servlet-name>
<url-pattern>/hellowold</url-pattern> 不可能在<url-pattern>/hellowold</url-pattern> 中写 /hellowold ?*
那么又怎么能知道交给哪个action 处理呢。不知道我说清楚了没有,
其实问题很简单,
就是以前通过url后面加参数的方式传递数据,现在怎么解决(不能用form 和 input type =“hidden”,再加上 他又是静态的 param 也不能用 )还有就是 target = right 这个 在struts 中有没有效果?
直接url="xxaction.do?参数=xx"***************************************请问url="xxaction.do?参数=xx"
能与
<url-pattern>/xxaction.do</url-pattern>
匹配么谢谢您