cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philipp Bößem <>
Date Fri, 07 Jun 2002 13:31:56 GMT
$		I NEED HELP !!!
$        		WITH XSP

right then.

- what i tried:

i tried, to recreate the tutorial example in cocoon2 (creating, updating,
and editing data in my database)
that for i made a copy of the tutorial and created a new subsitemap with a
slightly different name, and another database connection, but in the first
step using a copy of identicall tables.
the tutorial works perfect!

- problem is:

the recreated emxample runs until the point, where i wanna pick up value
from the database, to edit it. deletion and creating works.
when i want to change the data in editing-department, by typing in a new
name, and pressing update department, the same value like bevor is
i asked someone, if it could be a problem related to the format of my table.
but because of the fact, that its an identicall copy of the tutorial table
that guy meant, that this would be unlikely.

i had an closer look to the generated html source file of the edit

there was a slightly different source entrie with in the code of the
displayed html source:

instead of showing:

<input value="1" name="id" type="hidden">
Name: <span style="color: #ff0000;">*</span><input value="Informatik"
size="30" name="name" type="text">

the source of the recreated edit-department looks like:

<input value=" 1 " name="id" type="hidden">
Name: <span style="color: #ff0000;">*</span><input value=" Informatik "
size="30" name="name" type="text">

when i realised that, i had an closer look to, if i have got any spaces
within my queries, or values. but obviously i dont.

i also deleted the work directory a couple of times, but the original
tutorial worked, but the other didnt.

iff anyone has got an idea, why this happens i would be very cratefull, to
get an reply!!

my files by the look like this:


<?xml version="1.0"?>
<xsp:page xmlns:xsp=""
			<s1 title="Create a Department">
				<form handler="edit-dept.html">
          You can create a department by typing in the
          name and pressing the "submit" button.
						<parameter name="id">
							<xsp:attribute name="value">
								<xsp-request:get-parameter name="id"/>
                SELECT name FROM department
                WHERE id = <esql:parameter>
										<xsp-request:get-parameter name="id"/>
                  Name: <text name="name" size="30" required="true">
											<xsp:attribute name="value">
												<esql:get-string column="name"/>
										<xsp-formval:on-toosmall name="name">
                    Name must be at least 5 characters.
										<xsp-formval:on-toolarge name="name">
                    Name must be less than 64 characters.
					<submit name="Update Department"/>
					<submit name="Delete Department"/>
          * These fields are required.

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message