Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

Jaames Smith

Greenhorn
+ Follow
since May 28, 2013
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jaames Smith

I did not read all your codes but it looks like you are trying to use a new AppUser object in your loginServiceAction class to check if user is logged in. This will not work since it is initialized to default values. You need to do:

7 years ago
I think you are missing commons-lang3-3.1.jar in your class path.
7 years ago
Try putting http://tiles.apache.org/dtds/tiles-config_2_0.dtd in your browser and see if you can access this address directly.
If not then you have to configure it locally.
7 years ago
I did not tested your codes but try re-arranging your web.xmlbased on this sample.

7 years ago
Just a suggestion, don't use Struts 1. Its has already reached EOL.
If you have to for some reason use Filters and check if user is in session.
Do not give access to JSP directly, it should be from Action class.
When user logout invalidate session in action class.



Also if you don't want jsp pages cached then use this scriplet in JSP page:

7 years ago
Not sure if this is correct way of doing but it will give you idea how to access second HashMap:

7 years ago
I fixed it by putting a Tab class in session with String property name = "DT". I was expecting that it will compare as String but I was wrong.




7 years ago
Just a suggestion, instead of using two HashMaps on JSP page why not just use one List of Users objects in your class and access it in JSP page:


7 years ago
What I am doing wrong here in if condition.

7 years ago