Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8184715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:35:58+00:00 2026-06-07T01:35:58+00:00

I have a jsp page that accepts a string in the get parameter mystring

  • 0

I have a jsp page that accepts a string in the get parameter mystring :

http://localhost:8080/MyApp/index.jsp?mystring=

I am trying to place this string inside a <pre> tag.

<body>
 <pre>
      <%= request.getParameter("mystring") %>
  </pre>
</body>

When I call http://localhost:8080/MyApp/index.jsp?mystring=<html> nothing is printed.
Then I tried URLUTF8Encoder and it worked for most of the tags but when I pass something like this :

<script>window.serq=[];StackExchange={ready:function(f){serq.push(f)}}</script>
    <title>Get SVG representation of div using jQuery SVG - Stack Overflow</title>
    <link rel="shortcut icon" href="http://cdn.sstatic.net/stackoverflow/img/favicon.ico">
    <link rel="apple-touch-icon" href="http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png">
    <link rel="search" type="application/opensearchdescription+xml" title="Stack Overflow" href="/opensearch.xml">
    <link rel="stylesheet" type="text/css" href="http://cdn.sstatic.net/stackoverflow/all.css?v=691f98480525">
    <meta name="relativepagescore" content="5555">
    <link rel="canonical" href="http://stackoverflow.com/questions/11340476/get-svg-representation-of-div-using-jquery-svg">
    <link rel="alternate" type="application/atom+xml" title="Feed for question 'Get SVG representation of div using jQuery SVG'" href="/feeds/question/11340476">
    <script type="text/javascript">
      StackExchange.ready(function () {
        StackExchange.realtime.init('ws://sockets.ny.stackexchange.com');
        StackExchange.realtime.subscribeToInboxNotifications();
        StackExchange.realtime.subscribeToReputationNotifications('1');            
      });
    </script>

I get a nothing in response.

After encoding the url, it looks like this:

http://localhost:8080/SnippetImage/image.jsp?mystring=%3cspan+class%3d%22tag%22%3e%26lt%3bscript%26gt%3b%3c%2fspan%3e%3cspan+class%3d%22pln%22%3ewindow%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e.%3c%2fspan%3e%3cspan+class%3d%22pln%22%3eserq%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%5b%5d%3b%3c%2fspan%3e%3cspan+class%3d%22typ%22%3eStackExchange%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%7b%3c%2fspan%3e%3cspan+class%3d%22pln%22%3eready%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3a%3c%2fspan%3e%3cspan+class%3d%22kwd%22%3efunction%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e(%3c%2fspan%3e%3cspan+class%3d%22pln%22%3ef%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e)%7b%3c%2fspan%3e%3cspan+class%3d%22pln%22%3eserq%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e.%3c%2fspan%3e%3cspan+class%3d%22pln%22%3epush%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e(%3c%2fspan%3e%3cspan+class%3d%22pln%22%3ef%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e)%7d%7d%3c%2fspan%3e%3cspan+class%3d%22tag%22%3e%26lt%3b%2fscript%26gt%3b%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e%0a%0a++++%0a%0a++++%0a%0a++++%3c%2fspan%3e%3cspan+class%3d%22tag%22%3e%26lt%3btitle%26gt%3b%3c%2fspan%3e%3cspan+class%3d%22pln%22%3eGet+SVG+representation+of+div+using+jQuery+SVG+-+Stack+Overflow%3c%2fspan%3e%3cspan+class%3d%22tag%22%3e%26lt%3b%2ftitle%26gt%3b%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e%0a%0a++++%3c%2fspan%3e%3cspan+class%3d%22tag%22%3e%26lt%3blink%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22atn%22%3erel%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%3c%2fspan%3e%3cspan+class%3d%22atv%22%3e%22shortcut+icon%22%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22atn%22%3ehref%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%3c%2fspan%3e%3cspan+class%3d%22atv%22%3e%22http%3a%2f%2fcdn.sstatic.net%2fstackoverflow%2fimg%2ffavicon.ico%22%3c%2fspan%3e%3cspan+class%3d%22tag%22%3e%26gt%3b%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e%0a%0a++++%3c%2fspan%3e%3cspan+class%3d%22tag%22%3e%26lt%3blink%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22atn%22%3erel%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%3c%2fspan%3e%3cspan+class%3d%22atv%22%3e%22apple-touch-icon%22%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22atn%22%3ehref%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%3c%2fspan%3e%3cspan+class%3d%22atv%22%3e%22http%3a%2f%2fcdn.sstatic.net%2fstackoverflow%2fimg%2fapple-touch-icon.png%22%3c%2fspan%3e%3cspan+class%3d%22tag%22%3e%26gt%3b%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e%0a%0a++++%3c%2fspan%3e%3cspan+class%3d%22tag%22%3e%26lt%3blink%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22atn%22%3erel%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%3c%2fspan%3e%3cspan+class%3d%22atv%22%3e%22search%22%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22atn%22%3etype%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%3c%2fspan%3e%3cspan+class%3d%22atv%22%3e%22application%2fopensearchdescription%2bxml%22%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22atn%22%3etitle%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%3c%2fspan%3e%3cspan+class%3d%22atv%22%3e%22Stack+Overflow%22%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22atn%22%3ehref%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%3c%2fspan%3e%3cspan+class%3d%22atv%22%3e%22%2fopensearch.xml%22%3c%2fspan%3e%3cspan+class%3d%22tag%22%3e%26gt%3b%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e%0a%0a%0a%0a++++%0a%0a++++%0a%0a++++%0a%0a++++%3c%2fspan%3e%3cspan+class%3d%22tag%22%3e%26lt%3blink%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22atn%22%3erel%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%3c%2fspan%3e%3cspan+class%3d%22atv%22%3e%22stylesheet%22%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22atn%22%3etype%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%3c%2fspan%3e%3cspan+class%3d%22atv%22%3e%22text%2fcss%22%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22atn%22%3ehref%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%3c%2fspan%3e%3cspan+class%3d%22atv%22%3e%22http%3a%2f%2fcdn.sstatic.net%2fstackoverflow%2fall.css%3fv%3d691f98480525%22%3c%2fspan%3e%3cspan+class%3d%22tag%22%3e%26gt%3b%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e%0a%0a++++%0a%0a++++%3c%2fspan%3e%3cspan+class%3d%22tag%22%3e%26lt%3bmeta%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22atn%22%3ename%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%3c%2fspan%3e%3cspan+class%3d%22atv%22%3e%22relativepagescore%22%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22atn%22%3econtent%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%3c%2fspan%3e%3cspan+class%3d%22atv%22%3e%225555%22%3c%2fspan%3e%3cspan+class%3d%22tag%22%3e%26gt%3b%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e%0a%0a++++%3c%2fspan%3e%3cspan+class%3d%22tag%22%3e%26lt%3blink%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22atn%22%3erel%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%3c%2fspan%3e%3cspan+class%3d%22atv%22%3e%22canonical%22%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22atn%22%3ehref%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%3c%2fspan%3e%3cspan+class%3d%22atv%22%3e%22http%3a%2f%2fstackoverflow.com%2fquestions%2f11340476%2fget-svg-representation-of-div-using-jquery-svg%22%3c%2fspan%3e%3cspan+class%3d%22tag%22%3e%26gt%3b%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e%0a%0a++++%3c%2fspan%3e%3cspan+class%3d%22tag%22%3e%26lt%3blink%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22atn%22%3erel%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%3c%2fspan%3e%3cspan+class%3d%22atv%22%3e%22alternate%22%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22atn%22%3etype%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%3c%2fspan%3e%3cspan+class%3d%22atv%22%3e%22application%2fatom%2bxml%22%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22atn%22%3etitle%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%3c%2fspan%3e%3cspan+class%3d%22atv%22%3e%22Feed+for+question+'Get+SVG+representation+of+div+using+jQuery+SVG'%22%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22atn%22%3ehref%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%3c%2fspan%3e%3cspan+class%3d%22atv%22%3e%22%2ffeeds%2fquestion%2f11340476%22%3c%2fspan%3e%3cspan+class%3d%22tag%22%3e%26gt%3b%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e%0a%0a%0a%0a%0a%0a++++++++%3c%2fspan%3e%3cspan+class%3d%22tag%22%3e%26lt%3bscript%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22atn%22%3etype%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%3d%3c%2fspan%3e%3cspan+class%3d%22atv%22%3e%22text%2fjavascript%22%3c%2fspan%3e%3cspan+class%3d%22tag%22%3e%26gt%3b%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e%0a%0a+++++++++++++%3c%2fspan%3e%3cspan+class%3d%22typ%22%3eStackExchange%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e.%3c%2fspan%3e%3cspan+class%3d%22pln%22%3eready%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e(%3c%2fspan%3e%3cspan+class%3d%22kwd%22%3efunction%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e()%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e+%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%7b%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e%0a%0a+++++++++++++++++%3c%2fspan%3e%3cspan+class%3d%22typ%22%3eStackExchange%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e.%3c%2fspan%3e%3cspan+class%3d%22pln%22%3erealtime%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e.%3c%2fspan%3e%3cspan+class%3d%22pln%22%3einit%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e(%3c%2fspan%3e%3cspan+class%3d%22str%22%3e'ws%3a%2f%2fsockets.ny.stackexchange.com'%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e)%3b%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e%0a%0a++++++++++++++++%3c%2fspan%3e%3cspan+class%3d%22typ%22%3eStackExchange%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e.%3c%2fspan%3e%3cspan+class%3d%22pln%22%3erealtime%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e.%3c%2fspan%3e%3cspan+class%3d%22pln%22%3esubscribeToInboxNotifications%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e()%3b%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e%0a%0a++++++++++++++++%3c%2fspan%3e%3cspan+class%3d%22typ%22%3eStackExchange%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e.%3c%2fspan%3e%3cspan+class%3d%22pln%22%3erealtime%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e.%3c%2fspan%3e%3cspan+class%3d%22pln%22%3esubscribeToReputationNotifications%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e(%3c%2fspan%3e%3cspan+class%3d%22str%22%3e'1'%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e)%3b%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e++++++++++++%0a%0a++++++++%3c%2fspan%3e%3cspan+class%3d%22pun%22%3e%7d)%3b%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e%0a%0a++++++++%3c%2fspan%3e%3cspan+class%3d%22tag%22%3e%26lt%3b%2fscript%26gt%3b%3c%2fspan%3e%3cspan+class%3d%22pln%22%3e%0a%3c%2fspan%3e

What am I doing wrong here? Is there any way I can display html without encoding?

  • I have to send a GET request only. Not a POST request.
  • Without javascript.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T01:36:00+00:00Added an answer on June 7, 2026 at 1:36 am

    After encoding the url, it looks like this:
    http://localhost:8080/SnippetImage/image.jsp?code=%3cspan...

    Note that your parameter mystring does not exist in your URL string. Therefore your jsp page will pull nothing.

    Also note that there is a maximum length of an http url, and I’m only guessing but it looks like you might be going up against a hard limit there. If you are, the way this encoding returns may be unpredictable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a functional JSP page that accepts URL parameters and updates a table
I have a .jsp page that begins with <%@ taglib uri=http://java.sun.com/jstl/core prefix=c %> <%@
I have a jsp page that is trying to reference some user defined classes.
I have a page that accepts parameters from the user. I read this parameter
I'm using Spring Web Flow (v. 1.0.5) and I have a JSP page that
I have a JSP page, which accepts user strings in more than 23 languages.
I have a JSP page which accepts SQL queries, performs them then returns the
I have a JSP page at an address like this: http://example.com/foo/bar/rawr/something.jsp When I output
i have put fckeditor in jsp page. I want to get the value whatever
iam having a jsp page Index.jsp which accept a only unicode string as its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.