请教appfuse登录后为什么到mainMenu.jsp画面?

lqs200011 2006-07-20 09:21:08
请教appfuse登录后为什么到mainMenu.jsp画面,我改了struts-config.xml也没用,mainMenu.jsp好像是自动生成的,因为我把它改过了,重新deploy过又变回原来的了。
...全文
304 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
dawangzi16 2006-10-19
  • 打赏
  • 举报
回复
你的内容我没看清楚,是因为你的验证没通过..
dawangzi16 2006-10-19
  • 打赏
  • 举报
回复

你web 应用开发基础不太好啊...

web.xml里面 <welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

---><c:redirect url="/mainMenu.html"/>

<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>

xwork.xml 里面:
<action name="mainMenu" class="com.opensymphony.xwork.ActionSupport">
<result name="success">/WEB-INF/pages/mainMenu.jsp</result>
</action>

johnson529 2006-09-13
  • 打赏
  • 举报
回复
是不是出错了?
配置文件里,Input=mainMenu.jsp
一旦出错,就跳转过去了
AppFuse - Providing integration and style to open source Java. ----------------------------------------------------------------------------- Developer notes on setting up your IDE to work with AppFuse are contained below. Instructions currently existing for Eclipse and IDEA. Netbeans is on the roadmap; you're more than welcome to create them in the meantime. To begin, download Maven 2.0.9, install it, and add $M2_HOME/bin to your $PATH. Create a MAVEN_OPTS environment variable and set its value to: -Xms512M -Xmx512M All issues should be logged in JIRA at http://issues.appfuse.org. Get your questions answered on the mailing list at http://appfuse.org/forums. Eclipse 3.2+: ---------- From the command line, cd into the appfuse directory and run: mvn eclipse:eclipse -DdownloadSources=true Get a cup of coffee or soda (or even better, a beer!) while you wait for Maven to download all the dependencies. Eclipse needs to know the path to the local maven repository. Therefore the classpath variable M2_REPO has to be set. Execute the following command: mvn -Declipse.workspace= eclipse:add-maven-repo You can also define the M2_REPO classpath variable inside Eclipse. From the menu bar, select Window > Preferences. Select the Java > Build Path > Classpath Variables page. Add a new one with a name of M2_REPO and Path of to your local Maven repository (/Users/${username}/.m2/repository on OS X and C:\Documents and Settings\${username}\.m2\repository on Windows). To setup hierarchical projects in Eclipse 3.2+, perform the following steps: 1. Rename appfuse/data/.project file to something else. 2. Go to File -> Import -> General -> Existing Projects and browse to your workspace and the appfuse/data root. Because there is no .project file, Eclipse will show all the subprojects as being available. Select them and click ok. 3. Rename the appfuse/data/.project back and refresh your left pane in Eclipse. 4. Repeat these steps for the "web" directory. IDEA 6.0+: ---------- From the command line, cd into the appfuse directory and type "mvn idea:idea". Get a cup of coffee or soda (or even better, a beer!) while you wait for Maven to download all the dependencies. After opening your project in IDEA, you may need to modify your Project JDK.
Appfuse是由Matt Raible开发的一个指导性的入门级J2EE框架,它对如何集成流行的Spring、Hibernate、iBatis、struts、Xdoclet、junit 等基础框架给出了示范。提供了对Taperstry和JSF的支持。   AppFuse是一个集成了当前最流行的Web应用框架的一个更高层次的Web开发框架,也 可以说是一个Web开发基础平台,它与它所集成的各种框架相比,它提供了一部分所有Web系统开发过程中都需要开发的一些功能,如登陆、用户密码加密,用 户管理、根据不同的用户可以展现不同的菜单,可以自动生成40%-60%左右的代码,自带了默认的一些在CSS中设定的样式,使用这些样式能很快的改变整 个系统的外观,还有自动化测试的功能。   它最大的价值就是为我们提供了一个Web开发的新的方式和思路,尽管这些技术在国外都已进很流行了,但在国内能够将Hibernate、 Struts、Spring、DBUnit、Ant、Log4J、Struts Menu、Xdoclet、SiteMesh、Velocity、JUnit、JSTL、WebWork这些技术集成到一个框架中的还不多见,所以即使不 使用它的全部功能,它也给我们提供了一个很好的借鉴、学习的机会。   通过关注AppFuse,我们可以看到目前国外的主流开发都使用了哪些技术,开发方式是什么样的,可能达到什么样的结果,而在以前,是很少能够看到这样完整的例子的。   AppFuse的另一个启示是:我们可以依靠开源软件的功能降低开发成本,而且可以阅读开源软件的代码提高所在团队的整体实力。

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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