Reputation: 47
I'm looking for a way to dynamically update my jsp content, like an image, after servlet execution. The servlet would fetch the image and display this in a jsp "tag".
Is this possible? I'm eager to hear if it's also possible without page refresh. I have already made a Ajax that run the servlet perfectly.
I'm sorry if my question appear vague.
UPDATE: Okey so I've used the session.Attribute to display some information and this code:
<c:out value="${sessionScope.Text}"/>
But this only appears randomly if I log in and out. But I ofcourse want it to appear at all times.
I use session.invalidate();
to make sure when I log in a new session is created.
Is there a way to dynamically update the c:out ?
2nd UPDATE. Solved it. Instead of toying with jsp. I just make an ajax call after the first login ajax call. That way I could use the session.attributes to "upload" the info on login.
Upvotes: 0
Views: 173
Reputation: 47
Solved it. Instead of toying with jsp. I just make an ajax call after the first login ajax call. That way I could use the session.attributes to "upload" the info on login
Upvotes: 1