Hi, On Wed, Mar 16, 2011 at 10:42 AM, Dimuthu Leelarathne <[email protected]>wrote:
> Hi, > > > I keep getting the above exception on following line and failed to fix it. > This used to work fine and suddenly it has stopped working. > > <jsp:forward page="../admin/error.jsp?<%=error1%>"/> > I have seen similar code in GReg. In my opinion we are doing it wrong (don't know how it worked earlier). Looking at the code inside [1], this, at least, should be corrected as <jsp:forward page="../admin/error.jsp?errorMsg=<%=error1%>"/> But then again it could fail in some application servers if 'error1' has special characters (even a space will do). Because, as per my knowledge, the proper way of passing HTTP parameters into a <jsp:forward ..> uses <jsp:param ..>, then only the web container guarantees encoding special characters. Therefore, I use the following code to send error message details to ../admin/error.jsp <% request.setAttribute(CarbonUIMessage.ID, new CarbonUIMessage(errorMessage, CarbonUIMessage.ERROR, exception)); %> <jsp:forward page="../admin/error.jsp"/> [1] https://svn.wso2.org/repos/wso2/trunk/carbon/core/org.wso2.carbon.ui/src/main/resources/web/admin/error.jsp Thanks, sadeep > > Any idea on how to fix it? > > [2011-03-16 10:33:46,612] ERROR > {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/].[bridgeservlet]} > - Servlet.service() for servlet bridgeservlet threw exception > java.lang.IllegalArgumentException: [=] is not a hexadecimal digit > at > org.apache.catalina.util.RequestUtil.convertHexDigit(RequestUtil.java:360) > at > org.apache.catalina.util.RequestUtil.parseParameters(RequestUtil.java:442) > > thanks, > Dimuthu > > _______________________________________________ > Carbon-dev mailing list > [email protected] > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- Sadeep Jayasumana Software Engineer WSO2 Inc. Email - [email protected] Mobile - +94 77 22 66 507
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
