You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Joe <hu...@yahoo.cn> on 2009/04/15 08:17:30 UTC

how control user enter url error.

Hi All,
second error
We are using Sitemesh2.2.1 along with wicket1.3.1 in our product.
The sitemesh JSP page contains SCRIPT and LINK tags to include styles and functions that will determine the header and footer for the wicket pages.
When I use the URL like http://www.XXXXX.com/upgrade where as helpDetails is the page, it works fine.
But when I try using http://www.XXXXX.com/upgrade/asd, wicket throws error for all the entries like SCRIPT and LINK tags in the sitemesh jsp page.
We are using mountBookmarkablePage as the url stratergy.
i want url return to http://www.XXXXX.com/upgrade page when user try using http://localhost../helpDetails/topic/xyz/sd,
The error message is as follows....
04 15,2009 14:09 ERROR - RequestCycle.logRuntimeException(1414) | URL fragment has unmatched key/value pair: sd
java.lang.IllegalStateException: URL fragment has unmatched key/value pair: sd
    at org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy.decodeParameters(AbstractRequestTargetUrlCodingStrategy.java:174)
    at org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.decode(BookmarkablePageRequestTargetUrlCodingStrategy.java:76)
    at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:475)
    at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:175)
    at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224)
    at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1331)
    at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
    at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:363)
    at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.splashnote.util.JsessionIdUtil.doFilter(JsessionIdUtil.java:84)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
    at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.splashnote.web.MessageFilter.doFilter(MessageFilter.java:42)


Thanks,
Joe


      ___________________________________________________________ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/