This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tiles Refresh!!!

 
Prateek Sharma
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I developed an application in struts 2.0 I am using tiles for designing pages. Here is my layout.jsp.



But the problem in this approach is my whole page refreshes every time. I dont want to refresh Header, Slidemenu and footer every time, I want to refresh my page's Body part only. Please tell me what is the best approach to do it because My whole application has been developed now and I dont want to change my internal code.


Prateek
.
 
Lorand Komaromi
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prateek Sharma wrote:I dont want to refresh Header, Slidemenu and footer every time, I want to refresh my page's Body part only.


Don't you want to refresh the title of the page..?
 
Prateek Sharma
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NO I didnt want to refresh title as well!!!
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you only want to refresh part of your page, Ajax is the solution.

Normally you'd test these kinds of things *before* you were done.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic