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:
<myage>
<my:header title="News" />
<my:news show="10">
<my:rangeSelector />
</my:news>
</myage>
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 myhotos 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:
<my:rangeSelector target="news.jsp" />
Maybe Struts as a controller can help? I have no idea about it...
Thanks a lot!
-----
Constantine Kulak
FAMI BSU, IBA BY
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:
<myage>
<my:header title="News" />
<my:news show="10">
<my:rangeSelector />
</my:news>
</myage>
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 myhotos 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:
<my:rangeSelector target="news.jsp" />
Maybe Struts as a controller can help? I have no idea about it...
Thanks a lot!
-----
Constantine Kulak
FAMI BSU, IBA BY