|
|
In my new starting Spring application, a non-content region of a screen(web page) is for a special set of data from the back end database. The data will be shown every time when a user opens a page containing the region, if there is any. A dynamically data pressing will be a better approach. That needs to introduce Ajax.
I have implemented such functionality with the Tiles in a Spring application before. Since this one is a simple application, I don’t like to use the Tiles for the view. An alternative approach, I can think of, is a custom tag.
Any other approaches for this problem?
Thanks for your thought in advance.
Sounds like a pretty simple application if the back end data is independent of the user and his session. How about a simple @include fragment instead of a custom tag. For the Ajax side you might want to try DWR, if you haven't already.
Originally Posted by david_syerSounds like a pretty simple application if the back end data is independent of the user and his session. How about a simple @include fragment instead of a custom tag. ...
Do you mean the JSP include tag? If so, how does it solve my problem?
Sorry, I missed something. You have a problem? I thought you were just asking for general advice. What is it that you need that has to be in a custom tag (since you don't seem to want to use one)?
Originally Posted by david_syerSorry, I missed something. You have a problem? I thought you were just asking for general advice. What is it that you need that has to be in a custom tag (since you don't seem to want to use one)?
David,
That is my mistake. I thought you knew what you were talking about. |
|