Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Problem opening jsp in editor
Problem opening jsp in editor [message #708185] Tue, 02 August 2011 14:34 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:How can I influence the way the xml formatter works?
Next Topic:Adding Static Web Project to Tomcat server
Goto Forum:
  


Current Time: Fri Apr 19 22:41:03 GMT 2024

Powered by FUDForum. Page generated in 0.02637 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top