We have started developing portlets in Jahia 5 using the struts-portlet
bridge.  So far our portlets have been very basic with 2 struts actions, one
to display a form to the user for input and the other to process the user's
input and store it in a database.  This all works fine but we have noticed
the following:

1. The user opens a browser and goes to our portlet page.  When this is done
the display action is executed and displays the input form.
2. The user processes the form.  This executes the action which validates
the form and stores the user's data in the database.  If successful the user
gets presented with a notification page.
3. The user decides to go look at some other pages on our site.
4. The user comes back to our portlet page where it displays the
notification page again instead of the input form.

Is there a way to reset the state of the portlet so that whenever a user
leaves the page the portlet is on and comes back it displays an
initial/default action?

Thanks in advance for any help on this.

Tim


Reply via email to