Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Professional JSP, using weblogic.


Message #1 by "Rowena Perks" <Rowenap@w...> on Wed, 15 Nov 2000 12:39:12 -0000
-----Original Message-----
From: John Butler [mailto:JButler@c...]
Sent: 15 November 2000 02:40
To: support@w...
Subject: Professional JSP


Your book has been extremely helpful with getting me started with working
with JSP.

I'm working through Chapter 8 using color_alphabet2.jsp and
AlphabetCode.java/AlphabetCode.class: pp 225-8

I'm using weblogic.

I've gone through the example twice, and get the same error each time:

This piece of code in the JSP

<jsp:setProperty name="letterColor"
			property="startLetter"
			value="<%=FIRST_LETTER %>" />

yields this error:

C:\weblogic\myserver\servletclasses\jsp_servlet\_jsppro\_color_95_alphabet2.

java:102: Method valueOf(java.lang.String) not found in class
java.lang.Character.
probably occurred due to an error in /jsppro/color_alphabet2.jsp line 27:
value="<%=FIRST_LETTER %>" />

if I replace it with

<%
	letterColor.setStartLetter((char)START_LETTER);
%>

it works.  But I would prefer to use the tag...

I'm not sure if this is an error, or if weblogic works differently than
tomcat - and that I may need to do something a little differently.

Thanks,

  Return to Index