在我的时区下午好。
我正在使用struts框架开发一个web应用程序,现在我正在开发一个屏幕,当用户按下一个按钮时,会出现一个模式窗口,在这个窗口中,我使用了一个iframe,类似于:
<iframe src="actionX?data=value" ../>现在问题来了,在struts中是否可以将请求直接从ActionForm转发到jsp?类似于struts-config.xml中的内容
<action path="/actionX"
-> type="com.galpenergia.sgt.accoes.ProgramarRutasAction"
if i do not put nothing in the type attribute , will the actionFormX forward this request directly to jsp in the input attribute ?
name="actionFormX"
validate="true"
input="/programarRutas.jsp">
</action>如果上面问题的答案是“不”,我该怎么做呢?我不想创建一个Action对象,在execute方法中,我只是将请求转发给JSP.By,而不能直接从iframe调用jsp,因为我需要验证发送的查询字符串(data=value)是否正确。
我真的卡住了:(
提前感谢
发布于 2011-12-17 00:41:59
使用struts-extras库中提供的ForwardAction。
我不理解为什么不愿意创建Action,尽管已经提供了一个开箱即用的an。如果你想利用Struts,你需要使用Struts。
https://stackoverflow.com/questions/8536841
复制相似问题