开发者

Struts2 linking actions

I am working on the Login module of my Struts2 app. I have created the Login Page, a开发者_运维百科nd a home Page(which is rendered by Login.action). Now i want to add another feature, forgot password which after performing its business must call the Login.action so that the user need not have to Login explicitly. what should i code and where so that as soon as the ForgotPassword.action finishes its work it passes control to Login.action.


Encapsulate the logic for logging a user in into a separate class (e.g., UserLoginTask) and then call that class from your LoginAction and your ForgotPasswordAction.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜