Rev 960 | Go to most recent revision | 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 | |||
16 | if(url.indexOf("?") > 0) |
||
993 | dev | 17 | return url + "&" + backPathParam + "=" + params; |
956 | dev | 18 | else |
19 | return url + "?" + backPathParam + "=" + params; |
||
20 | } |
||
21 | } |