Solved

Integrating Verisign Secure Seal supplied html into XHTML Seam/JSF application

Posted on 2008-06-25
2
1,142 Views
Last Modified: 2013-12-02
I have a JBoss Seam application that serves up SSL pages to a secure site.  The application uses XHTML/JSF.  I don't think Seam is relevant for my question.

Our SSL certificate is provided by Verisign - and they provide a 'secured by verisign' html fragment to include in your site that allows user to click-through to check that your site is indeed known by verisign.

I am trying to integrate this raw html into a xhtml page within my Jboss Seam application.  (see http://www.verisign.com/ssl/secured-seal) But when the page is rendered on the server it complains about the embedded <script> tag in the supplied html.  

The offending tag is:
<script src="https://seal.verisign.com/getseal?host_name=secure.mobile-sense.com&size=M&use_flash=YES&use_transparent=YES&lang=en"></script>

When the page is rendered within Jboss I get the following error:
javax.servlet.ServletException: Error Parsing /layout/template.xhtml: Error Traced[line: 67] The reference to entity "size" must end with the ';' delimiter.

It looks like the renderer is interpreting the url query parameters as html that needs to be escaped.  I've tried surrounding the code fragment with a jsf verbatim tag <f:verbatim escape="true" (and false) - but still get the same results.

What is wrong the src attribute on the script tag??


0
Comment
Question by:tdsproule
2 Comments
 
LVL 42

Accepted Solution

by:
David S. earned 250 total points
ID: 21871450
All "&" must be changed to "&amp;".
0
 

Author Comment

by:tdsproule
ID: 21873587
I had tried that - but that didn't work as well - but I then tried replacing & with &#31; and that worked in my environment.

Anyways - I'm now sorted.

Many thanks for pointing me in the right direction.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now