Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I get the '� ' symbol to appear in a JSP  RSS feed

Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I was wondering if someone could help me. I am trying to get the '�' symbol (UK pound sterling) to appear in my out but nothing happens.

This is the error message that I get in the logs:

<Jan 6, 2005 5:30:10 PM EST> <Error> <HTTP> <BEA-101019> <[ServletContext(id=2064443,name=mario,context-path=/mario)] Servlet failed with IOException javax.servlet.jsp.JspException: The taglib validator rejected the page: " Invalid byte 1 of 1-byte UTF-8 sequence., "
at weblogic.servlet.jsp.Jsp2Java.outputs(
at weblogic.utils.compiler.CodeGenerator.generate(
at weblogic.servlet.jsp.JspStub.compilePage(
at weblogic.servlet.jsp.JspStub.prepareServlet(
at weblogic.servlet.jsp.JspStub.prepareServlet(
at weblogic.servlet.internal.ServletStubImpl.getServlet(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(
at weblogic.servlet.internal.WebAppServletContext$
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(
at weblogic.servlet.internal.ServletRequestImpl.execute(
at weblogic.kernel.ExecuteThread.execute(


This is my code so far. Basically what I am doing is trying to pass the database output to a FLASH movie. I am new to JSP/JSTL so I am sure that the way I am doing it is no the best. Any help would be greatly appriciated.

<%@ page language="java" contentType="text/html"
,javax.servlet.jsp.jstl.core.Config,java.lang.*,java.lang.Number,*,javax.mail.*,javax.mail.internet.*,java.util.*," %>
<%@ taglib prefix="c" uri="" %>
<%@ taglib uri="" prefix="fmt" %>
<%@ taglib uri="" prefix="sql" %>
<%@ taglib uri="" prefix="x" %>

<c:if test="${application.connect == null}">
OracleConnectionCacheImpl ds = null;
try {
ds = new OracleConnectionCacheImpl();
ds.setURL("jdbc nyfbc0xx1");
catch (Exception e){
application.log("Failed to create data source:"+e.getMessage());
<c:set var="connect" value="yes" scope="application" />

<sql:query var="pgroups">
Select Item_Nbr, Item_Name, description, To_Char(Price, '$9,999.99') Price, LTRIM(To_Char(UK_Price, '9,999.99')) UK_Price FROM impsapp.logo_items WHERE item_nbr = ?
<sql aram value="${param.ID}" />

<c:set var="row_count" value="0" scope="page" />
<c:forEach items="${pgroups.rows}" var="row">
<c:set var="Item_Name" value="${row.item_name}"/>
<c:set var="Item_Description" value="${row.description}"/>
<c:set var="Item_Nbr" value="${row.item_nbr}"/>
<c:set var="Item_Price" value="${row.price}"/>
<c:set var="Item_UK_Price" value="${row.uk_price}"/>

<% String Item_Name_Unencoded = (String)pageContext.getAttribute("Item_Name");
String Item_Name_Encoded = URLEncoder.encode(Item_Name_Unencoded);
String Item_Description_Unencoded = (String)pageContext.getAttribute("Item_Description");
String Item_Description_Encoded = URLEncoder.encode(Item_Description_Unencoded);
String Logo_Item = "&item_name=CS-" + pageContext.getAttribute("Item_Nbr") + " " + Item_Name_Encoded + "&price=" + pageContext.getAttribute("Item_Price") + "/�" + pageContext.getAttribute("Item_UK_Price")
+ "&item_desc=" + Item_Description_Encoded;
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this it will work
<font color="#4A2839" size="2" face="Arial, Helvetica, sans-serif">Price

this will show pound in out.
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!