Rev 993 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
956 | dev | 1 | package ak.backpath.taglib; |
2 | |||
3 | import javax.servlet.jsp.JspException; |
||
4 | import ak.backpath.BackPath; |
||
5 | |||
6 | public class ForwardLinkTag extends LinkTagBase |
||
7 | { |
||
8 | protected String calculateURL() throws JspException |
||
9 | { |
||
10 | String url = super.calculateURL(); |
||
11 | if(url == null) return null; |
||
12 | |||
13 | String params = findBackPath().getForwardParams(); |
||
14 | if(params == null) return url; |
||
15 | |||
999 | dev | 16 | params = params.replaceAll("&", "&"); |
956 | dev | 17 | if(url.indexOf("?") > 0) |
993 | dev | 18 | return url + "&" + backPathParam + "=" + params; |
956 | dev | 19 | else |
20 | return url + "?" + backPathParam + "=" + params; |
||
21 | } |
||
22 | } |