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 654331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:28:58+00:00 2026-05-13T22:28:58+00:00

I use sitemesh for page decoration in my web app. I have a form

  • 0

I use sitemesh for page decoration in my web app.

I have a form where the contents of a textarea field is a complete html page.

The problem is that when Sitemesh parses this page it extracts the title, head and body from my textarea field and decorates the page with it.

<textarea name="page_content">
    <!-- tags below should not be parsed by Sitemesh -->
    <html>
         <head>...</head>
         <body>...</body>
    </html>
</textarea>

It seems that the Sitemesh page parser does care that it has already seen these tags in the page.

Do you have any ideas on how to prevent Sitemesh from parsing the content of the textarea?

  • 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-05-13T22:28:58+00:00Added an answer on May 13, 2026 at 10:28 pm

    You can’t put <tags> inside a textarea. It is completely invalid. Textarea elements are not ‘CDATA elements’ like <script> and <style>, any < you put inside them is real markup and not a string literal.

    In practice browsers will usually let you get away with it (until you try to include another textarea inside, of course), but what you should be writing is:

    <textarea name="page_content">
        &lt;html>
            ...
        &lt;/html>
    </textarea>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

use the [] symbol in the name of the form field you are submitting
use case example I have a servlet that is receiving login requests. If a
Use of gradient images is very common among developers for styling a page. Gradient
Have someone there any experience with integrating Tiles into Grails (instead of SiteMesh)? I
I am using sitemesh to decorate the pages. I am using a JSP page
Use PHP and MySQL. I have an array, P, which contains the value of
use javascript or other method ? have any recommendation?
In rails, I'm used to use the yield/content_for to site mesh. ( http://guides.rubyonrails.org/layouts_and_rendering.html#using-content_for )
In order to make our web pages with the same theme,we want to use
use an icon (.png transparent background) for my menu. There isn't any problem for

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.