Announcement Announcement Module
Collapse
No announcement yet.
How to retrieve data from Model if its possible or may be SessionAttribue instead? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to retrieve data from Model if its possible or may be SessionAttribue instead?

    Hello there folks

    I have typical scenario with CRUD web app.

    The JSP do have several fields filled manually by user.

    Once its finished , that action in controller (after post), can be called in its GET method, but my formBean filled with data from model (added in model before post method finish), gets cleared somehow, it gets all its attributes null.

    Is there anyway (if its possible) to get that formBean from POST and sending to the GET ? (I'd like to keep it simply as much as possible)

    Usually most of the time GET populate data filling fields in JSP anytime but, in this case, data aren't populated always , GET can return data or no registry with data (in that case I return empty bean instead of null).

    This is the case, where once I come back clicking corresponding link in my JSP (GET of my action), data are empty so fields in JSP too.

    Thanks in advance.
Working...
X