struts2中如何实现action到jsp的跳转
我在做一个工程,里面的action配置都没有result(如下),在BlogIndexAction中返回值有“index”、“blogmain”等等
<struts>
<package name="index" extends="default" namespace="/">
<action name="blog" class="com.teacherclub.business.kcenter.index.web.BlogIndexAction">
</action>
</package>
<package name="console" extends="default" namespace="/console">
<action name="console" class="com.teacherclub.business.kcenter.index.web.ConsoleIndexAction">
</action>
</package>
<package name="security" extends="default" namespace="/security/passport">
<action name="passport" class="com.teacherclub.business.kcenter.index.web.PassportAction">
</action>
</package>
</struts>
它是怎么实现跳转的?怎么知道它到底跳转到了哪个jsp页面?
在线等待……
多谢高人,的确有这个包。请教高人,convention的约定是在哪配置的?
补充:
我发现Action的名字是:BlogIndexAction,但是跳转的页面为
blog-index.jsp、blog-blogmain.jsp……
我给你发一份 convention的文档吧,你看了一切都明白了。加我QQ250473330
1>.以下配置错误:
<package name="index" extends="struts-def
相关问答:
问题1.
如何通过RandomAccessFile类的seek()方法将指针移动到文件末尾,再用writeChars(String s)将数据写入某个文档文件
问题2.
StringTokenizer是什么东西,干嘛用的?
由于小弟初学js ......
jsp中include.inc的作用是什么?
include.inc啥意思?没听说过
Java code:
<%include file="include.inc"%>加载网站目录include.inc文件内容
包含一个静态页面吧···
& ......
<html><head><title>[@title]</title>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<script language='javascript'>
function diyCheck ......
想做一个jsp的电子商务网站,想找一些源代码,请问那个网站有好的资源。谢谢!
搜索下吧 开源的也有
csdn就有相似的源码,楼主搜一下
java 开源大全
改模板好麻烦哦,还不如自己写个了呢
jf
顶一 ......