cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rachid harradi" <>
Subject a Servelt call a Cocoon
Date Wed, 23 Aug 2006 16:55:32 GMT
how  can i proviede a Sitemape,which receives data by HTTP and  represents  by means of transformer
in HTML?.

my TestApplet 

StringBuffer uri = new StringBuffer("http://localhost:8080/cocoon/ameli/index.html");
    		BufferedReader br = null;
//    		"http://localhost:8080/Acocoon/servlet/TestServlet"
    	try {
                URL url=new URL(uri.toString());
//	    		 URL url=new URL("http://localhost:8080/cocoon/ameli/");
                URLConnection con = url.openConnection();

                // Prepare for both input and output

                // Turn off caching

                // Set the content type to be java-internal/classname
                con.setRequestProperty("Content-type","application/x-www-form-urlencoded ;charset=ISO-8859-1");

                // Write the serialized object as post data
                ObjectOutputStream out = new ObjectOutputStream(con.getOutputStream());
//              InputStream in =con.getInputStream();
//              ObjectInputStream ois = new ObjectInputStream(in);
//           //
////              //Get reply from servlet
//              String reply = ois.readObject().toString();
//              //Show the corresponding message or redirect the user to the
//              //next page.
//              System.out.println("the reply is: " + reply);
//              oos.close();
//              ois.close();

my Sitemape is

<?xml version="1.0" encoding="ISO-8859-1"?>
<map:sitemap xmlns:map="">

      <map:generator name="objectionHTML" src="org.apache.cocoon.generation.StreamGenerator"/>

			<map:pipeline match="/index.html">
			<map:act type="request">
    			<map:parameter name="parameters" value="true"/>
    			<map:generate src="{requestQuery}"/> 

 			<map:match pattern="index.html/">
    			<map:generate type="stream"/>
    			<map:transform src="stylesheets/objection04.xslt"/>
    			<map:serialize type="html"/>
   			<!--map:pipeline match="">
  				<map:generate src="http://localhost:8080/Acocoon/servlet/TestServlet"/>
  				<map:transform src="stylesheets/objection04.xslt"/>
    			<map:serialize type="html"/-->

I would like to be shown HTML representation : automatic

Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN:

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

View raw message