Subversion Repositories SmartDukaan

Rev

Rev 3830 | Rev 4453 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3830 Rev 4222
Line 14... Line 14...
14
import java.io.IOException;
14
import java.io.IOException;
15
import java.util.Date;
15
import java.util.Date;
16
import java.util.List;
16
import java.util.List;
17
 
17
 
18
import org.apache.log4j.Logger;
18
import org.apache.log4j.Logger;
-
 
19
import org.apache.struts2.convention.annotation.Action;
-
 
20
import org.apache.struts2.convention.annotation.Actions;
-
 
21
import org.apache.struts2.convention.annotation.InterceptorRef;
19
import org.apache.struts2.convention.annotation.Result;
22
import org.apache.struts2.convention.annotation.Result;
20
import org.apache.struts2.convention.annotation.Results;
23
import org.apache.struts2.convention.annotation.Results;
21
 
24
 
22
/**
25
/**
23
 * 
26
 * 
Line 42... Line 45...
42
	private String redirectUrl = "/";
45
	private String redirectUrl = "/";
43
 
46
 
44
	public LoginController() {
47
	public LoginController() {
45
		super();
48
		super();
46
	}
49
	}
-
 
50
	@Actions({
-
 
51
		@Action(value="login", interceptorRefs={@InterceptorRef("myDefault")}),
-
 
52
		@Action(value="login-mini", interceptorRefs={@InterceptorRef("myDefault")})
47
 
53
	})
48
	public String index() throws SecurityException, IOException {
54
	public String index() throws SecurityException, IOException {
49
		if(userinfo.isLoggedIn()){
55
		if(userinfo.isLoggedIn()){
50
    		return "success";
56
    		return "success";
51
    	}
57
    	}
52
		return "index";
58
		return "index";