Bnrdo
Bnrdo

Reputation: 5474

JSTL EL - Where is it getting value?

I have a controller which has the following code snippet

...
model.addAttribute("parade", "Parade1");
...
session.setAttribute("parade", "Parade2");

But when I access it using ${parade} it gives me Parade1. I want to access the other one from the session. How can I do this?

Upvotes: 0

Views: 58

Answers (1)

Reimeus
Reimeus

Reputation: 159754

Try this

${sessionScope.parade}

Upvotes: 2

Related Questions