This is just a guess, but are you putting blanks in form
fields that you are trying to use in the pipeline below? If so, are
the fields values really blank or are they 'null'? Maybe it will help
to default your textboxes to "" in case the user doesn't enter anything in
that input?
I use this in my xsp page for a form:
<input type="text" name="xlpin" size="10" >
<xsp:attribute name="value"><xsp-request:get-parameter
name="xlpin" default=""/></xsp:attribute>
</input>
Also, the error about 'HR should be followed by '=' sign':
does that have something to do with a blank being entered in a form field or
is that a separate error?
-----Original Message-----
From:
Sternath Elmar [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 9:03 AM
To: [EMAIL PROTECTED]
Subject:
RequestParmAction does not work with blanks in form input field
Hello,
as soon as I put some blanks into an INPUT text/textarea
field, I get the following output in my browser
(cocoon2.0.1/tomcat4.0.1)
My pipeline looks as follows (works fine without
blanks):
<map:pipeline>
<map:match
pattern="SCW/addNewFileOK">
<map:select
type="session-attribute">
<map:parameter
name="attribute-name" value="isLoggedIn"/>
<map:when
test="true">
<map:match
type="sessionstate" pattern="*">
<map:parameter
name="attribute-name" value="lkz"/>
<map:act
type="request">
<map:parameter
name="parameters" value="true"/>
<map:aggregate
element="AddNewFileOK">
<!-- document
itself is still missing - a mechanism how to access the file stored by it
must be defined -->
<map:part src="http://scw_de:[EMAIL PROTECTED]:8888/BOLServlet/{IdType}Service.uploadDocument?Id={Id}&Title={Title}&DocType={DocType}&Language={Language}&Publisher={Publisher}&Description={Description}&SalesChannel={../1}"/>
<map:part
src="cocoon:/SCW/documentList?IdType={IdType}&Id={Id}"/>
</map:aggregate>
<!--
<map:transform src="stylesheets/addNewFileOK.xsl"/>
<map:parameter
name="use-request-parameters" value="true" />
</map:transform> -->
<map:serialize
type="xml"/>
</map:act>
</map:match>
</map:when>
<map:otherwise>
<map:read
mime-type="text/html" src="http://139.21.207.160:8080/SCW/testLogin.html"/>
</map:otherwise>
</map:select>
</map:match>
</map:pipeline>
Thanks in advance,
Elmar
Browser output:
Cocoon 2 - Internal server error
type fatal
message null
description java.lang.NullPointerException
sender
org.apache.cocoon.servlet.CocoonServlet
source
Cocoon servlet
request-uri
/BOLServlet/ProductService.uploadDocument
path-info
ProductService.uploadDocument
<!--H1{font-family : sans-serif,Arial,Tahoma;color :
white;background-color : #0086b2;} BODY{font-family :
sans-serif,Arial,Tahoma;color : black;background-color : white;} B{color :
white;background-color : #0086b2;} HR{color : #0086b2;} -->
Cocoon 2 - Internal server error
type fatal
message Failed to execute
pipeline.
description
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
org.xml.sax.SAXParseException: Attribute name "HR" must be followed by the
'=' character.
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri
/cocoon/scworkflow/SCW/addNewFileOK
path-info
scworkflow/SCW/addNewFileOK
scworkflow/SCW/addNewFileOK
---------------------------------------------------------------------
Please check that your question has not already been
answered in the
FAQ before
posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail:
<[EMAIL PROTECTED]>
For
additional commands, e-mail: [EMAIL PROTECTED]