users@glassfish.java.net

Re: Set a Cookie with JSP

From: <glassfish_at_javadesktop.org>
Date: Wed, 16 Jan 2008 15:02:16 PST

Thank you, but I don't know how to add this to my page. NetBeans generate code and when I add this, I get an error. My code look like this:

<?xml version="1.0" encoding="UTF-8"?>
<!--
    Document : Page1
    Created on : 09.01.2008, 22:44:34
    Author : gregor
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <webuijsf:page binding="#{Login.page1}" id="page1">
            <webuijsf:html binding="#{Login.html1}" id="html1">
                <webuijsf:head binding="#{Login.head1}" id="head1">
                    <webuijsf:link binding="#{Login.link1}" id="link1" url="/resources/stylesheet.css"/>
                </webuijsf:head>
                <webuijsf:body binding="#{Login.body1}" id="body1" style="-rave-layout: grid">
                    <webuijsf:form binding="#{Login.form1}" id="form1">
                        <webuijsf:panelLayout binding="#{Login.layoutPanel1}" id="layoutPanel1" style="border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0); height: 550px; left: 24px; top: 24px; position: absolute; width: 910px; -rave-layout: grid">
                            <webuijsf:panelLayout binding="#{Login.layoutPanel2}" id="layoutPanel2" style="border-width: 1px; border-style: solid; border-color: rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0) rgb(0, 0, 0); height: 189px; left: 288px; top: 168px; position: absolute; width: 333px; -rave-layout: grid">
                                <webuijsf:label binding="#{Login.label2}" id="label2" style="left: 24px; top: 24px; position: absolute" text="Kundennummer:"/>
                                <webuijsf:label binding="#{Login.label3}" id="label3"

I get the error: The content of elements must consist of well-formed character data or markup.
[Message sent by forum member 'choernchen' (choernchen)]

http://forums.java.net/jive/thread.jspa?messageID=254315