JSP Include Issues

T

thehuby

I have a web page using an include file. I am passing params to the
include page using jsp:param but am having some difficulty.

Locally (Windows PC/Tomcat Server, JBuilder) I can include ™ in
the heading1 param - when I put this live (Linux/Tomcat Server) the
heading1 text is cut off after the &. There is no error message from
Java (unless it is a System.out.print type error).

Does anyone have any suggestions as to why this is not working and how
I can resolve it?

<jsp:include flush="true" page="/inc/nav.jsp">
<jsp:param name="heading1" value="Business Web Design:
<em>Functional, Findable, Accessible &trade;</em>" />
<jsp:param name="pageTitle" value="Home" />
</jsp:include>

Regards,

Rick
www.e-connected.com
 
T

thehuby

Hmmm.

Similarly it works locally but online gives me the output â,,¢ !

Very confused....

Rick
 
A

Andrew Thompson

Similarly it works locally but online gives me the output â,,¢ !

OK.. random shot.. Try this one..

<jsp:include flush="true" page="/inc/nav.jsp">
<jsp:param name="heading1" value="Business Web Design:
<em>Functional, Findable, Accessible &amp;trade;</em>" />
<jsp:param name="pageTitle" value="Home" />
</jsp:include>

(Note, it *is* different to your first example..)
 
T

thehuby

Won't work - whatever the issue is it seems to drop everything after
(and including) the &.

I thought Java was a lot more portable - these are the sorts of issues
I usually come up against with PHP!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top