can start by tomcat

posted by Iridium Cao

终于能正常访问主页,之前报500错误。

但登录後,报400错误,原因正在调查中……

看来我们的案例很值得操作。

old code

posted Jul 17, 2018, 3:39 PM by Iridium Cao

作业调整了一番旧代码,竟然没能跑起来,大大的意外!真是時移世易!

在调整代码的过程中,也发现旧有的一些东西不想要了:
1. sitemesh 已经3年没维护了,准备丢掉,换别的。
2. Struts2 打算删了不用,页面写的相应标签,已经看不懂了。用 Struts2 + Spring,不如用 Spring 全系列。

另外,这次恢复开发,是时候考虑前後端分离,把後台做成服务,前端可以多样化。如此,也要考虑放弃 JSP 了。

sitemesh

posted Jul 17, 2018, 8:37 AM by Iridium Cao

之前是用 sitemesh 来做总体的页面布局的,但这个工具从2015後就没新版了,这几年都停滞了。

是时候考虑一个比较好的布局方案了。

Restart in 2018

posted Jul 15, 2018, 7:19 AM by Iridium Cao

长时间的闲置後,2018下半年,重启了这个工程,回首惨不忍睹。

Change VCS

posted Nov 15, 2014, 11:59 PM by Iridium Cao

Change VCS from SVN to git.

Ref:
https://code.google.com/p/support/wiki/GitFAQ
https://code.google.com/p/support/wiki/ConvertingSvnToGit

2014.06.11 Wednesday

posted Jun 10, 2014, 2:17 PM by Iridium Cao

These days:
  1. added connection pool c3p0
  2. refactor, set slf4j with maven
  3. bug, cannot register new user (onging)
  4. removed all jar contained in WEB-INF/lib and set them with maven

TODO:

  1. fix bug: register problem
  2. refactor with Hibernate

2014.06.02~06.05

posted Jun 9, 2014, 8:11 AM by Iridium Cao

2014.06.02 星期一
自引入 Struts 2 后,控制器部分确实很清晰。
但自从引入 Struts 2 UI tags 后,页面加载极为缓慢。将来重构时,应考虑全面抛弃 Struts 2 UI tags.

2014.06.04 星期三
這些天不能上網,走在路上想到,如果代碼版本管理工具當初選用 hg 或 git,就不會有離線不能提交的困難了。待回到成都後,還是換成 git 吧,Google code 很早就支撐 git 了。

2014.06.05 星期四
因为在复习 Hibernate 时,有用到 JUnit,顺便给 PIS 也引入了。
将来的开发将写一部分必要的 Test Case.

2014-05-31 Saturday

posted May 31, 2014, 8:14 AM by Iridium Cao

1. update project dependencies with maven, remove some jar files which set in pom.xml.
2. adjust UI, changed background color.
3. refactor, move authorization function to interceptor.
4. make new tag of the project, till now, the integration of Struts2 is finished.

Next step: take refactor and refine Hibernate part of this project, it will cost 5 days or 1 week.

2014-05-30 Friday

posted May 30, 2014, 9:04 AM by Iridium Cao

1. modify web.xml for sitemesh Ref: http://struts.apache.org/release/2.3.x/docs/sitemesh-plugin.html
2. refactor, using Struts 2 tags
3. fixed pagination problem

Problem:
1. There are two different sitemesh configuration on official site, which one is more reasonable for current version?

2014.05.29 Thursday

posted May 29, 2014, 9:00 AM by Iridium Cao

1. refactor, import sitemesh as a struts2's plugin
2. bugfix, display user real name after login
3. refactor, rewrite tadaList.jsp and tadaDetails.jsp using Struts 2 tags

1-10 of 18