Title: RE: RequestParmAction does not work with blanks in form input field
----- Original Message -----
Sent: Tuesday, June 11, 2002 3:27 PM
Subject: AW: RequestParmAction does not work with blanks in form input fie ld

You're right, the exception does not have to do anything with the blanks. What I want to do is the following: I try to get request params using RequestParmAction. Then I add these request parms to a http get request string in my sitemap: <map:part src="http://scw_de:[EMAIL PROTECTED]:8888/BOLServlet/{IdType}Service.uploadDocument?Id={Id}&amp;Title={Title}&amp;DocType={DocType}&amp;Language={Language}&amp;Publisher={Publisher}&amp;Description={Description}&amp;SalesChannel={../1}"/
Unfortunately, as soon as the request params contain characters which must be escaped (like blanks) this http get request fails. I already tried to use requestQuery instead of single params, but this does not work for browser http post which I need because of doing file upload. Any ideas how to solve this problem?
 
Thanks,
Elmar
 
 
-----Ursprüngliche Nachricht-----
Von: Naquin, Beth [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. Juni 2002 18:58
An: '[EMAIL PROTECTED]'
Betreff: RE: RequestParmAction does not work with blanks in form input fie ld

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}&amp;Title={Title}&amp;DocType={DocType}&amp;Language={Language}&amp;Publisher={Publisher}&amp;Description={Description}&amp;SalesChannel={../1}"/>                 

                                                        <map:part src="cocoon:/SCW/documentList?IdType={IdType}&amp;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]

 

 

 

Reply via email to