dcsimg
Reload page with additional parameter?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Constantine_Kulak
Posted On:   Wednesday, January 24, 2007 02:31 PM

Hi! I'm writing a site with the following simple structure: JSP using taglibs is for page structure, and taglibs are for applying XSLT to XML. Model uses XPath to extract needed XML , and there is no controller. Typical JSP is like that news.jsp: This displays a page with 10 news list and a range selector string like that: 1..10 | 11..20 | 21..25 Tag my:rangeSelector asks its parent tag my:news (which implements IHasRange, so as my:photos for photogallery thumbnails grid, etc.) about the total number of news to form that range selection string. The idea is the following: after the user clicks for example on 11..20, there goes a    More>>

Hi!

I'm writing a site with the following simple structure: JSP using taglibs is for page structure, and taglibs are for applying XSLT to XML. Model uses XPath to extract needed XML , and there is no controller. Typical JSP is like that news.jsp:


			








This displays a page with 10 news list and a range selector string like that:


1..10 | 11..20 | 21..25


Tag my:rangeSelector asks its parent tag my:news (which implements IHasRange, so as my:photos for photogallery thumbnails grid, etc.) about the total number of news to form that range selection string. The idea is the following: after the user clicks for example on 11..20, there goes a request, the same as the previous one, but with additional parameter, something like rangeStart=11. The question is HOW TO ACHIEVE THIS keeping in mind that my:rangeSelector knows nothing about its parent, but that it should implement IHasRange. In other words, how to reload the current page with the same set of parameters, and one more additional parameter, without explicit specifying the page, i. e. without that:


			



Maybe Struts as a controller can help? I have no idea about it...


Thanks a lot! :)


-----
Constantine Kulak
FAMI BSU, IBA BY

   <<Less
About | Sitemap | Contact