Problem opening jsp in editor [message #708185] |
Tue, 02 August 2011 14:34 |
Eclipse User |
|
|
|
Originally posted by: Gary Mrenak
Eclipse Helios
Build id: 20110301-1815
I have a strange problem opening some jsp pages in the editor, all of
which contain one or more of the following:
<link href="<%=request.getContextPath()%>/images/chhs.css"
rel="stylesheet" type="text/css" />
or
<img src="<%=request.getContextPath()%>/images/spacer.gif"
alt="" width="305" height="1" border="0" />
The error returned is:
Could not open the editor: URLDecoder: Illegal hex characters in escape
(%) pattern - For input string: "=r"
Now, in the pages that produce this error, if I remove
<%=request.getContextPath()%> from these lines, the page opens fine.
Note that I have many jsp pages that contain these lines, but only SOME
of them produce this error from the editor when attempting to open.
Am I using improper syntax? Is there a better way to get the context for
these links?
Gary
|
|
|
Re: Problem opening jsp in editor [message #708186 is a reply to message #708185] |
Tue, 02 August 2011 14:38 |
Eclipse User |
|
|
|
Originally posted by: Gary Mrenak
On 8/2/2011 10:34 AM, Gary Mrenak wrote:
> Eclipse Helios
> Build id: 20110301-1815
>
> I have a strange problem opening some jsp pages in the editor, all of
> which contain one or more of the following:
>
> <link href="<%=request.getContextPath()%>/images/chhs.css"
> rel="stylesheet" type="text/css" />
>
> or
>
> <img src="<%=request.getContextPath()%>/images/spacer.gif"
> alt="" width="305" height="1" border="0" />
>
> The error returned is:
>
> Could not open the editor: URLDecoder: Illegal hex characters in escape
> (%) pattern - For input string: "=r"
>
> Now, in the pages that produce this error, if I remove
> <%=request.getContextPath()%> from these lines, the page opens fine.
>
> Note that I have many jsp pages that contain these lines, but only SOME
> of them produce this error from the editor when attempting to open.
>
> Am I using improper syntax? Is there a better way to get the context for
> these links?
>
> Gary
I just noticed that the problem only occurs using the 'Web' editor. The
'problem' pages all open fine in the 'JSP' editor. Still, why does the
Web editor have problems with some pages but not others?
Gary
|
|
|
Powered by
FUDForum. Page generated in 0.02825 seconds