Excellent. Please fix this.
On Wed, Mar 16, 2011 at 12:19 PM, Dimuthu Leelarathne <[email protected]>wrote: > > Hi, > On Wed, Mar 16, 2011 at 12:18 PM, Sadeep Jayasumana <[email protected]>wrote: > >> Hi, >> >> Just saw that although [1] has the line, >> >> String errorMsg = request.getParameter("errorMsg"); >> >> it's not used anywhere. Therefore I think sending a parameter named >> "errorMsg" won't help. >> >> > Yes. But i got the basic idea. > > thanks, > dimuthu > > >> sadeep >> >> >> On Wed, Mar 16, 2011 at 12:14 PM, Sadeep Jayasumana <[email protected]>wrote: >> >>> 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 - <%2B94%2077%2022%2066%20507> <%2B94%2077%2022%2066%20507>+94 77 >>> 22 66 507 >>> >> >> >> >> -- >> Sadeep Jayasumana >> >> Software Engineer >> WSO2 Inc. >> Email - [email protected] >> Mobile - <%2B94%2077%2022%2066%20507>+94 77 22 66 507 >> > > > _______________________________________________ > Carbon-dev mailing list > [email protected] > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- *Afkham Azeez* Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com, * * *Member; Apache Software Foundation; **http://www.apache.org/*<http://www.apache.org/> * email: **[email protected]* <[email protected]>* cell: +94 77 3320919 blog: **http://blog.afkham.org* <http://blog.afkham.org>* twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware*
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
