Question: I am starting to work on a Fairly standard Jsp application. (Jsp,Oracle backend).

The security of the application is important. So what are the common(also uncommon ) Pitfalls that I should avoid as a novice.

Basically, Its just a few forms to get user input and some session management to display data according to user roles.

This discussion could serve as reference to future users also.

regards

Answer: 
```
public void addTimeBySecondsDemo(Date date,int sec){
    //int sec = 300;
    System.out.println("Given date:"+date);
    Calendar calender = Calendar.getInstance();
    calender.setTimeInMillis(date.getTime());
    calender.add(Calendar.SECOND, sec);
    Date changeDate=calender.getTime();
    System.out.println("changeDate ..:"+changeDate);                
}

```
```
Timestamp.from(dto.getTimeModified().toInstant().plusSeconds(600))

```