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: 
I've always favoured brevity:

```
int sec = 600;

Timestamp later = new Timestamp(retry_date.getTime() + sec * 1000);

```

or if you want relative to "now":

```
Timestamp later = new Timestamp(System.currentTimeMillis() + sec * 1000);

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

```