You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mohan Radhakrishnan <mr...@cellexchange.com> on 2003/07/09 08:30:53 UTC

Refreshing screens

Hi

        This is a question about the best practice followed when refreshing
screens to reflect new data in the database.


        1. View 1 has a 'search' button.
        2. The searched records are displayed with a hyperlink for editing
them.
        3. The edit page opens a new JSP. After editing the first page is
shown again.
        4. The edited values will not be reflected until the 'search' button
is clicked another time in the first page. The records are in the scope in
the presentation tier.

        What is the popular practice for this ? It is something like yahoo
mail that doesn't refresh the screen
automatically.

        Do I call the same 'search' action every time I edit a record so
that the user need not click the button ?

Mohan







---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Refreshing screens

Posted by Nagendra Kumar O V S <na...@ikigo.com>.
hi,
1. first thing u need to do is turn off the client caching by setting
nocache=true in the controller element of the struts-config file
2. if this does't solve ur problem, pl check if ur updating the records in
the scope after updating to the datasource.

-- nagi



-------Original Message-------

From: Struts Users Mailing List
Date: Wednesday, July 09, 2003 11:58:21 AM
To: 'Struts Users Mailing List'
Subject: Refreshing screens

Hi

This is a question about the best practice followed when refreshing
screens to reflect new data in the database.


1. View 1 has a 'search' button.
2. The searched records are displayed with a hyperlink for editing
them.
3. The edit page opens a new JSP. After editing the first page is
shown again.
4. The edited values will not be reflected until the 'search' button
is clicked another time in the first page. The records are in the scope in
the presentation tier.

What is the popular practice for this ? It is something like yahoo
mail that doesn't refresh the screen
automatically.

Do I call the same 'search' action every time I edit a record so
that the user need not click the button ?

Mohan







---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


.