SV: Where can I find the Java code generated by Cocoon2

2001-11-26 Thread Søren Neigaard

Found it, thx :)

-Oprindelig meddelelse-
Fra: Luca Morandini [mailto:[EMAIL PROTECTED]]
Sendt: 26. november 2001 00:40
Til: [EMAIL PROTECTED]
Emne: RE: Where can I find the Java code generated by Cocoon2


Soren,

look under
$tomcat_home\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\

The  being dependent on your particular sitemap and
sub-sitemaps.

To look for every generated Java file, just type (provided you're under
Windows): dir
$tomcat_home\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\*.java /s

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


> -Original Message-
> From: Søren Neigaard [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 26, 2001 6:30 PM
> To: [EMAIL PROTECTED]
> Subject: Where can I find the Java code generated by Cocoon2
>
>
> Where can I find the Java code C2 generates for my XSP pages?
>
> Med venlig hilsen/Best regards
> Søren Neigaard
> System Architect
> 
> Mobilethink A/S
> Arosgaarden
> Åboulevarden 23, 5.sal
> DK - 8000 Århus C
> Telefon: +45 86207800
> Direct: +45 86207810
> Fax: +45 86207801
> Email: [EMAIL PROTECTED]
> Web: www.mobilethink.dk
> 
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Where can I find the Java code generated by Cocoon2

2001-11-26 Thread Søren Neigaard

Where can I find the Java code C2 generates for my XSP pages?

Med venlig hilsen/Best regards
Søren Neigaard
System Architect

Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: [EMAIL PROTECTED]
Web: www.mobilethink.dk



-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




SV: Whats this exception?

2001-11-23 Thread Søren Neigaard

Allright - where can I find the Java code generated by C2?

/Søren

-Oprindelig meddelelse-
Fra: Peter Royal [mailto:[EMAIL PROTECTED]]
Sendt: 19. november 2001 06:00
Til: [EMAIL PROTECTED]
Emne: Re: Whats this exception?


On Monday 19 November 2001 04:38 pm, you wrote:
> I have the attached XSP, but when I run it, it generates the following
> exception, what does this mean?
>
> org.apache.cocoon.ProcessingException: Language Exception:
> org.apache.cocoon.components.language.LanguageException: Error compiling
> general_update_xml:
> Line 88, column 21:  Type expected.

You need to look at the generated java source file which is in your tomcat
work directory. There is an error on line 88 there. Once you take a look at
that, you can correlate it back to your original XSP source document.
-pete

--
peter royal -> [EMAIL PROTECTED]

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Whats this exception?

2001-11-19 Thread Søren Neigaard

I have the attached XSP, but when I run it, it generates the following
exception, what does this mean?

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
general_update_xml:
Line 88, column 21:  Type expected.
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
esource(ProgramGeneratorImpl.java:278)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:192)
at
org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator
.java:145)

Med venlig hilsen/Best regards
Søren Neigaard
System Architect

Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: [EMAIL PROTECTED]
Web: www.mobilethink.dk




http://apache.org/xsp"; xmlns:util="http://apache.org/xsp/util/2.0";>
	
		java.util.*
		java.io.*
		dk.mobilethink.framework.controller.*
		org.w3c.dom.Node
		org.w3c.dom.NodeList
	
	
		String xsp_method = request.getParameter("xsp_method");
		String xsp_dtd = request.getParameter("xsp_dtd");
		String xsp_parm_name = request.getParameter("xsp_parm_name");
		String xsp_parm_success_value = request.getParameter("xsp_parm_success_value");
		String xsp_success_xsp = request.getParameter("xsp_success_xsp");
		String xsp_failure_xsp = request.getParameter("xsp_failure_xsp");
		
		System.out.println("w00t");
		
		Enumeration enum = request.getParameterNames();
		Hashtable nvp = new Hashtable();
		while(enum.hasMoreElements()) {
			String name = (String)enum.nextElement();
			if(name.startsWith("backend_")) {
String[] values = request.getParameterValues(name);
nvp.put(name,values);
			}
		}
		String uid = (String)request.getSession(true).getAttribute("session_uid");
		if(uid != null) {
			nvp.put("session_uid",uid);
		}
		
		Node msg = Controller.execute(method,dtd,null,nvp);
		
		String xsp_return_url = null;
		NodeList nl = ((Element)msg).getElementsByTagName(xsp_parm_name);
		if(nl.getLength() > 0) {
			System.out.println("C2 INFO - xsp_parm_name found");
			if(nl.item(0).getNodeValue().equals(xsp_parm_success_value)){
xsp_return_url = xsp_success_xsp;
			} else {
xsp_return_url = xsp_faliure_xsp;
			}
		} else {
			System.out.println("C2 INFO - xsp_parm_name not found");
			xsp_return_url = xsp_faliure_xsp;
		}
		response.sendRedirect(xsp_faliure_xsp);
	
	
		
			xsp_return_url
		
	
	



-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>


XSP-newbie / XSP gives blank page

2001-11-15 Thread Søren Neigaard

I want to chose between two XSP's based on a parameter. I have attached 3
XSP's, "general_update.xml" should choose either of the two other XSP's and
return those, but it returns a blank page!?

I'm pretty new to XSP, and the person who normally writes XSP are on holiday
(damn), so please advice :)

Med venlig hilsen/Best regards
Søren Neigaard
System Architect

Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: [EMAIL PROTECTED]
Web: www.mobilethink.dk






http://apache.org/xsp"; xmlns:pim="http://www.mobilethink.dk/pim";>
	
		
			pim
			Adress Book
			Kontaktpersoner
		
		
			
			
adress_book
default
			
			
		
	






http://apache.org/xsp"; xmlns:pim="http://www.mobilethink.dk/pim";>
	
		
			pim
			Adress Book
			Ny Kontaktperson
		
		
			
			
ny_person
default
			
			
		
	




http://apache.org/xsp";>
	
		java.util.*
		java.io.*
		dk.mobilethink.framework.controller.*
		org.w3c.dom.Node
		org.w3c.dom.NodeList
	
	
		String xsp_method = request.getParameter("xsp_method");
		String xsp_dtd = request.getParameter("xsp_dtd");
		String xsp_parm_name = request.getParameter("xsp_parm_name");
		String xsp_parm_success_value = request.getParameter("xsp_parm_success_value");
		String xsp_success_xsp = request.getParameter("xsp_success_xsp");
		String xsp_failure_xsp = request.getParameter("xsp_failure_xsp");
		
		System.out.println("w00t");
		
		Enumeration enum = request.getParameterNames();
		Hashtable nvp = new Hashtable();
		while(enum.hasMoreElements()) {
			String name = (String)enum.nextElement();
			if(name.startsWith("backend_")) {
String[] values = request.getParameterValues(name);
nvp.put(name,values);
			}
		}
		String uid = (String)request.getSession(true).getAttribute("session_uid");
		if(uid != null) {
			nvp.put("session_uid",uid);
		}
		
		Node msg = Controller.execute(method,dtd,null,nvp);
		
		String xsp_return_url = null;
		NodeList nl = ((Element)msg).getElementsByTagName(xsp_parm_name);
		if(nl.getLength() > 0) {
			System.out.println("C2 INFO - xsp_parm_name found");
			if(nl.item(0).getNodeValue().equals(xsp_parm_success_value)){
xsp_return_url = xsp_success_xsp;
			} else {
xsp_return_url = xsp_faliure_xsp;
			}
		} else {
			System.out.println("C2 INFO - xsp_parm_name not found");
			xsp_return_url = xsp_faliure_xsp;
		}
	
	



-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>


Include contenf from other XSP

2001-11-15 Thread Søren Neigaard

I have read that I can include content from one XSP into another XSP by
saying:

-
http://localhost:8080/foo/simple.xml"/>
-

But how can I, based on a parameter, choos between two different XSP, like
this pseudo code:

-

  if(request.getParamter("foo").equals("simple")){

http://localhost:8080/foo/simple.xml"/>
  } else {

http://localhost:8080/foo/advanced.xml"/>
  }

-

So how do I do this? Can I make this happen from wihin my xsp:logic, or
should I do something completly different?

Med venlig hilsen/Best regards
Søren Neigaard
System Architect

Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: [EMAIL PROTECTED]
Web: www.mobilethink.dk



-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Wrapper XSP around two or more XSP's

2001-11-15 Thread Søren Neigaard

Can I make a wrapper XSP that, depending on a varibel from the browser,
includes one XSP inside or includes another XSP inside?

Med venlig hilsen/Best regards
Søren Neigaard
System Architect

Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: [EMAIL PROTECTED]
Web: www.mobilethink.dk



-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




SV: Max size on logicsheet

2001-11-14 Thread Søren Neigaard

To fast againg, this wasent my problem :)

-Oprindelig meddelelse-
Fra: Søren Neigaard [mailto:[EMAIL PROTECTED]]
Sendt: 14. november 2001 13:34
Til: [EMAIL PROTECTED]
Emne: Max size on logicsheet


I think I have heard something about max size on logicsheets on this list,
and I have just hit it - is it 2104B?

How can I work around this? Can I include XSP's in my XSP, or will they all
count as one XSP when it comes to size?

Med venlig hilsen/Best regards
Søren Neigaard
System Architect

Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: [EMAIL PROTECTED]
Web: www.mobilethink.dk



-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Max size on logicsheet

2001-11-14 Thread Søren Neigaard

I think I have heard something about max size on logicsheets on this list,
and I have just hit it - is it 2104B?

How can I work around this? Can I include XSP's in my XSP, or will they all
count as one XSP when it comes to size?

Med venlig hilsen/Best regards
Søren Neigaard
System Architect

Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: [EMAIL PROTECTED]
Web: www.mobilethink.dk



-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Static data on Cocoon?

2001-11-14 Thread Søren Neigaard

I'm not sure if I get this right. When my XML/XSL developers work on their
local mashines, they use some static XML data, and when this is moved to
Cocoon the namespace is replaced by my dynamic data, right?

Can I make it so that if theres no dynamic data, the "old" static data is
used instead, and how is this done?

Med venlig hilsen/Best regards
Søren Neigaard
System Architect

Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: [EMAIL PROTECTED]
Web: www.mobilethink.dk



-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




It works :)

2001-11-14 Thread Søren Neigaard

Hi everybody

Just as depressed I was yesterday, just as happy am I today :)

Everything works just fine now. I pass C2 a DOM node, I have been doing this
for some time now but I passed C2 subclass of the DOM node, not the node
directly. C2 would have this!? So now I just cast it to an node before it
even reaches C2 (should have tried this a long time ago, but I was so
frustrated I could't think anymore). This way I dont have to make a
Generator :)

Even thoug my mail (you know the one) was a bit frustrated, it gave a lot of
response that I learned from - didn't expect that :)

Bottom line, you guys have been greath (as I also said in "the mail"), so
I'm sending you all a e-cake. Ok it's a bit colorless, but hey, you get to
deside the flawor :)

   _0__0_
  /  \
 |+ + + + |
/  \
   | ¤  ¤  ¤  ¤ |
  
  #CHEERS#
  

Med venlig hilsen/Best regards
Søren Neigaard
System Architect

Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: [EMAIL PROTECTED]
Web: www.mobilethink.dk



-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




SV: What is Cocoon good for???

2001-11-13 Thread Søren Neigaard

Nice to see I'm not totally alone :)

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sendt: 13. november 2001 06:58
Til: [EMAIL PROTECTED]
Emne: Re: What is Cocoon good for???


I too wonder why "org.apache.cocoon.environment.Request" mimics but doesn't
extend "javax.servlet.http.HttpServletRequest". Isn't that what objects are
for?

Regards,

Anthony Aldridge
Lead Application developer

Managed Intranet Hosting
CSC
JPMorganChase
Personal GDP: 325-8338
MIH Hotline: 876-1300





Søren Neigaard <[EMAIL PROTECTED]> on 13/11/2001 23:33:29

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  What is Cocoon good for???


Ok I'm a bit frustrated right now, but nothing I do works :(

I have tried to deliver XML from my Java method to C2 as a stream of ASCII
XML, as a string of ASCII XML, as a SAXSource and as a DOMSource. But to no
avail. Yes I know that I probably havent done the last two attempts
correctly, but I cant figure out how to do it, and I cant find any info
that
might help me, and the first two attempte should work according to the info
I have found on Apache's C2 site (but it dont).

If I return a stream/string of ACSII XML data to C2, it works just fine on
the first URL I call (no matter how many times i call it), but if I call
another URL which doest EXCATLY the same as the first (same logicsheet,
same
namespace) it dosn't work. BUT If I had called the last URL first, it
would have bene the one to work, and number one URL would fail!??? What is
this?? Thats just impossible to work with :(

Oh yes... Then there's the "org.apache.cocoon.environment.Request". Whats
that then?? Why not keep it as "javax.servlet.http.HttpServletRequest" so
others can work with it without binding their code to C2.

Ok you guys, don't take this as a flame or anything like that. You have
been
super to help me, I'm just so damn tired off Cocoon, and I just neede to
blow off some steam. It may sound stupid, but I really needed to send this
mail, or I'm afraid I might go crazy :)

Med venlig hilsen/Best regards
Søren Neigaard
System Architect

Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: [EMAIL PROTECTED]
Web: www.mobilethink.dk



-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>







-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




SV: SV: SAX tree?

2001-11-13 Thread Søren Neigaard

-Oprindelig meddelelse-
Fra: David Rosenstrauch [mailto:[EMAIL PROTECTED]]
Sendt: 13. november 2001 06:14
Til: [EMAIL PROTECTED]
Emne: Re: SV: SAX tree?

>>
(http://www.aoindustries.com/docs/cocoon-1.8.2/faqs.html#faq-xspinsertxml)
>> it seemed (to me anyway) that I could give C2 a DOM/SAX source directly,
and
>> C2 then could work on this. Can I, and how?

> It doesn't seem to me that this link indicates you can "give C2 a DOM/SAX
source directly".

> It outlines your options as:

> 1) use  (which I suggested to you the other day and
which you said
> worked - not sure why you're not still using it).  Drawback is that this
invokes a parser
> to create a DOM object, and so you pay a performance penalty.

Well I thought it worked, until I tried to call more than one URL (see my
desprate mail).

> 2) Pass in a DOM object you've already created some other way.  This way
you don't need
> to invoke the parser.  One suggestion they give for doing this is to
create a
> XMLFragment, which can be converted to both DOM and SAX easily.

But how? I tried to return a Document, DocumentFragment and a DOMSource
directly to Cocoon with no sucess. I dont want to use any Cocoon specific
classes in my own framework (this may be stupied, but it's not entirely up
to me). Ok then I might be able to use the inner class you mailed me, but I
cant seem to find the "XMLFragment", what to import? Should it meybe be the
Cocoon XML fragment defined in the "old" example URL (the site is down right
now, and I cant remember the name)?

Best regards
Søren

> I don't see any other implication in there (like you can pass in a SAX
object).


>Ok - If not, what to do then? How do I do the things you talk about (the
>offical writer that can write to the xsp page, or even better, the parent
>SAXHandler for the xsp page)? The XML I return is actually a XML fragment,
>and is only part of a bigger XML document C2 should process.
>
>Basicly I don't know what to do, so please aid me :)
>
>Mvh/Best regards
>Søren


OK.  Let's take a step back.

The reason why this is so hard is that what you're doing is pretty
unorthodox.

Why are you using XSP to feed in a large amount of XML that's coming from
elsewhere?  That's not really what XSP is intended for.  It's intended to
run logic on your XML data.

Instead, why don't you create a Generator to generate that XML.  Your
generator would get XML from your Controller and feed it into the pipeline.
Then have a stylesheet or XSP process it.  Seems to me to make a lot more
conceptual sense.  And generators deal with all the SAX stuff much easier
than XSP.


HTH.

DR


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




What is Cocoon good for???

2001-11-13 Thread Søren Neigaard

Ok I'm a bit frustrated right now, but nothing I do works :(

I have tried to deliver XML from my Java method to C2 as a stream of ASCII
XML, as a string of ASCII XML, as a SAXSource and as a DOMSource. But to no
avail. Yes I know that I probably havent done the last two attempts
correctly, but I cant figure out how to do it, and I cant find any info that
might help me, and the first two attempte should work according to the info
I have found on Apache's C2 site (but it dont).

If I return a stream/string of ACSII XML data to C2, it works just fine on
the first URL I call (no matter how many times i call it), but if I call
another URL which doest EXCATLY the same as the first (same logicsheet, same
namespace) it dosn't work. BUT If I had called the last URL first, it
would have bene the one to work, and number one URL would fail!??? What is
this?? Thats just impossible to work with :(

Oh yes... Then there's the "org.apache.cocoon.environment.Request". Whats
that then?? Why not keep it as "javax.servlet.http.HttpServletRequest" so
others can work with it without binding their code to C2.

Ok you guys, don't take this as a flame or anything like that. You have been
super to help me, I'm just so damn tired off Cocoon, and I just neede to
blow off some steam. It may sound stupid, but I really needed to send this
mail, or I'm afraid I might go crazy :)

Med venlig hilsen/Best regards
Søren Neigaard
System Architect

Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: [EMAIL PROTECTED]
Web: www.mobilethink.dk



-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




SV: SAX tree?

2001-11-13 Thread Søren Neigaard

Well... Hmm... But..??

Ok - In the previous supplied link
(http://www.aoindustries.com/docs/cocoon-1.8.2/faqs.html#faq-xspinsertxml)
it seemed (to me anyway) that I could give C2 a DOM/SAX source directly, and
C2 then could work on this. Can I, and how?

Ok - If not, what to do then? How do I do the things you talk about (the
offical writer that can write to the xsp page, or even better, the parent
SAXHandler for the xsp page)? The XML I return is actually a XML fragment,
and is only part of a bigger XML document C2 should process.

Basicly I don't know what to do, so please aid me :)

Mvh/Best regards
Søren

-Oprindelig meddelelse-
Fra: Karl Øie [mailto:[EMAIL PROTECTED]]
Sendt: 13. november 2001 04:57
Til: [EMAIL PROTECTED]
Emne: RE: SAX tree?


obviously I cant type right, the SAXSource msg is supposed to be used in the
transform command, not the undeclared mystic source variable

transformer.transform( msg, result );

mvh karl øie



-Original Message-
From: Karl Øie [mailto:[EMAIL PROTECTED]]
Sent: 13. november 2001 13:50
To: [EMAIL PROTECTED]
Subject: RE: SAX tree?


yes, the SAX source is useless without any handler, what you are looking for
is perhaps to serialize this to xml. i havent yet looked at xsp actually,
but here is one approach that might create xml from a SAX source inside a
xsp page:


try {
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();

SAXSource msg = Controller.execute();
StreamResult result = new StreamResult( new PrintWriter(System.out) );
//SAXResult result = new SAXHandler( xspsuperparent.handler );

transformer.transform( source, result );
}
catch( Exception e ) {
arg!!!
}


as i said, i havent yet written one single line of xsp myself, but this
might work, what happens here is that the sax source msg is transformed
without a stylesheet to the system.out pipe, this should be replaced with
the offical writer that can write to the xsp page, or even better, the
parent SAXHandler for the xsp page. you might find some info here in the
list or at the homepage how to get tre transformation to stream directly
into your xsp page.

hope this helped a little! :-)

mvh karl


-Original Message-
From: Søren Neigaard [mailto:[EMAIL PROTECTED]]
Sent: 13. november 2001 22:32
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: SV: SAX tree?


Oh - Thanks for clearing this out for me :)

Now my Java method returns a "javax.xml.transform.sax.SAXSource", and I put
this in my logicsheet like this:

--


SAXSource msg = Controller.execute();

msg

--

But this prints out "javax.xml.transform.sax.SAXSource@7b56e", which looks
like a reference the object. Do you have any idea what I'm doing wrong here?

Best regards
Søren

-Oprindelig meddelelse-
Fra: Karl Øie [mailto:[EMAIL PROTECTED]]
Sendt: 13. november 2001 03:03
Til: [EMAIL PROTECTED]
Emne: RE: SAX tree?


there is no such thing as a SAX tree, if it is a tree it is a DOM tree.

SAX is an interface that generates event streams, like when you parse a xml
file with sax the sax parser would fire events like startDocument(),
startElement(), endElement(), endDocument() in a succession of function
calls.

DOM creates a tree of nodes much like an unbalanced b-tree where every node
represents a element, atrribute and visa versa.

DOM is then again mosty buildt up by a SAX parser, because you could taje
the events from the SAX parser and create the corresponding nodes when the
event functions tells you so.

the javax.xml.transform.sax.SAXSource is junction between thes two ways of
processing xml because a SAXSource could be a stream of
ascii(javax.xml.transform.stream.StreamSource), a stream of SAX events
(javax.xml.transform.sax.SAXSource) or a DOM tree
javax.xml.transform.dom.DOMSource. all of these can be a
javax.xml.transform.Source to create SAX events which is what cocoon2 likes
to eat.

Cocoon2s generators are in general just routines that creates SAX events
from various sources. if you have a Document object in memory, you can pass
it to cocoon2 through "DOMStreamer", a utility class in cocoon2 that
generates SAX events from a DOM source.


to make a long story short, DOM is xml nodes in memory as nodes in a b-tree,
while SAX is just function events that pass by a api and never leaves
anything in memory, SAX leaves the responsability of creating memory objects
if required to the SAX Handler.


hope this helped a bit! :-)

mvh karl øie



-Original Message-
From: Søren Neigaard [mailto:[EMAIL PROTECTED]]
Sent: 13. november 2001 20:30
To: [EMAIL PROTECTED]
Subject: SAX tree?


This subject is a little offtopic :)

Ok I will try to return a SAX tree to C2 instead of a stream of XML. I found
the following link that talks about this:
http://www.aoin

SV: SAX tree?

2001-11-13 Thread Søren Neigaard

Oh - Thanks for clearing this out for me :)

Now my Java method returns a "javax.xml.transform.sax.SAXSource", and I put
this in my logicsheet like this:

--


SAXSource msg = Controller.execute();

msg

--

But this prints out "javax.xml.transform.sax.SAXSource@7b56e", which looks
like a reference the object. Do you have any idea what I'm doing wrong here?

Best regards
Søren

-Oprindelig meddelelse-
Fra: Karl Øie [mailto:[EMAIL PROTECTED]]
Sendt: 13. november 2001 03:03
Til: [EMAIL PROTECTED]
Emne: RE: SAX tree?


there is no such thing as a SAX tree, if it is a tree it is a DOM tree.

SAX is an interface that generates event streams, like when you parse a xml
file with sax the sax parser would fire events like startDocument(),
startElement(), endElement(), endDocument() in a succession of function
calls.

DOM creates a tree of nodes much like an unbalanced b-tree where every node
represents a element, atrribute and visa versa.

DOM is then again mosty buildt up by a SAX parser, because you could taje
the events from the SAX parser and create the corresponding nodes when the
event functions tells you so.

the javax.xml.transform.sax.SAXSource is junction between thes two ways of
processing xml because a SAXSource could be a stream of
ascii(javax.xml.transform.stream.StreamSource), a stream of SAX events
(javax.xml.transform.sax.SAXSource) or a DOM tree
javax.xml.transform.dom.DOMSource. all of these can be a
javax.xml.transform.Source to create SAX events which is what cocoon2 likes
to eat.

Cocoon2s generators are in general just routines that creates SAX events
from various sources. if you have a Document object in memory, you can pass
it to cocoon2 through "DOMStreamer", a utility class in cocoon2 that
generates SAX events from a DOM source.


to make a long story short, DOM is xml nodes in memory as nodes in a b-tree,
while SAX is just function events that pass by a api and never leaves
anything in memory, SAX leaves the responsability of creating memory objects
if required to the SAX Handler.


hope this helped a bit! :-)

mvh karl øie



-----Original Message-
From: Søren Neigaard [mailto:[EMAIL PROTECTED]]
Sent: 13. november 2001 20:30
To: [EMAIL PROTECTED]
Subject: SAX tree?


This subject is a little offtopic :)

Ok I will try to return a SAX tree to C2 instead of a stream of XML. I found
the following link that talks about this:
http://www.aoindustries.com/docs/cocoon-1.8.2/faqs.html#faq-xspinsertxml

Now I'm not a XML shark, so I could need some help doing this. I guess I
will be using this API to create a SAX tree:
http://java.sun.com/xml/jaxp/dist/1.1/docs/api/, but what object should I
return? What is it excactly C2 accepts as input? Is it a
"javax.xml.transform.sax.SAXSource"?

Please just give a few pointers :)

Med venlig hilsen/Best regards
Søren Neigaard
System Architect

Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: [EMAIL PROTECTED]
Web: www.mobilethink.dk



-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




SAX tree?

2001-11-13 Thread Søren Neigaard

This subject is a little offtopic :)

Ok I will try to return a SAX tree to C2 instead of a stream of XML. I found
the following link that talks about this:
http://www.aoindustries.com/docs/cocoon-1.8.2/faqs.html#faq-xspinsertxml

Now I'm not a XML shark, so I could need some help doing this. I guess I
will be using this API to create a SAX tree:
http://java.sun.com/xml/jaxp/dist/1.1/docs/api/, but what object should I
return? What is it excactly C2 accepts as input? Is it a
"javax.xml.transform.sax.SAXSource"?

Please just give a few pointers :)

Med venlig hilsen/Best regards
Søren Neigaard
System Architect

Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: [EMAIL PROTECTED]
Web: www.mobilethink.dk



-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Where to read information on "http://apache.org/xsp/util/2.0"?

2001-11-13 Thread Søren Neigaard

Where do I find information on all the functions in
"http://apache.org/xsp/util/2.0";?

Med venlig hilsen/Best regards
Søren Neigaard
System Architect

Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: [EMAIL PROTECTED]
Web: www.mobilethink.dk



-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




SV: Can I send the intire HttpResponse object to a Java class

2001-11-12 Thread Søren Neigaard

Oh no, I get a "Can't convert org.apache.cocoon.environment.Request to
javax.servlet.http.HttpServletRequest". Can I pass my method a standard
"HttpServletRequest" from my logicsheet? I really don't want a
"org.apache.cocoon.environment.Request" because I want to be able to run my
framework without Cocoon in the future (is I ever get the need).

/Søren

-Oprindelig meddelelse-
Fra: David Rosenstrauch [mailto:[EMAIL PROTECTED]]
Sendt: 8. november 2001 04:40
Til: [EMAIL PROTECTED]
Emne: Re: Can I send the intire HttpResponse object to a Java class


OutputStream msg =
Controller.execute("Hent_Kontakter","Kontakter",null,null, request);


DR



At 09:36 AM 11/8/01 -0800, you wrote:
>In my old example (and now working example, thanks to you guys) I now need
>to get my hands on all parameters send from the client. Whats the best way
>to do this? My guess is to pass the entire HttpRequest object to my method,
>but what do you guys think?
>
>How do I pass the HttpRequest to the following method in a logicsheet?
>
>---
-
>-
>OutputStream msg =
>Controller.execute("Hent_Kontakter","Kontakter",null,null);
>---
-
>-
>
>Med venlig hilsen/Best regards
>Søren Neigaard
>System Architect
>
>Mobilethink A/S
>Arosgaarden
>Åboulevarden 23, 5.sal
>DK - 8000 Århus C
>Telefon: +45 86207800
>Direct: +45 86207810
>Fax: +45 86207801
>Email: [EMAIL PROTECTED]
>Web: www.mobilethink.dk
>
>
>
>-
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail: <[EMAIL PROTECTED]>


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




SV: Re: Newbie XSP question - why dosn't this work?

2001-11-12 Thread Søren Neigaard

Please let me know if some more info can help you guys help me, and I will
include it ASAP. I really need some help here you see :)

I... What... But... Ok tjeck this one out (this will probably not make any
sence to people new to this thread):

I have my "old" Java object that returns XML to my logicsheet. This object
can return a lot of different XML, depending on what parameters it get (my
super duper framework - joke). Now I have two different XML outputs on two
different URL's. Each work just fine, C2 processes my XML just fine. But if
I hit XML1-URL C2 processes the XML, and if I then hit XML2-URL reight
thereafter it prints out the XML (my old problem returns), and I have to
restart C2 to get XML2-URL to work correctly. And vise versa if I start by
hitting XML2-URL (after a restart) it works but then XML1-URL fails (yes the
old "XML-printout" problem again again).

Are you confused, I know I am. I dont understand a thing at all Any
input apriciated.

Best regards
Søren

-Oprindelig meddelelse-
Fra: David Rosenstrauch [mailto:[EMAIL PROTECTED]]
Sendt: 6. november 2001 08:24
Til: [EMAIL PROTECTED]
Emne: Fwd: Re: Newbie XSP question - why dosn't this work?


Søren,

OK.  Problem solved.

Frank was right.   is the way to go.  It will parse the
text that you pass in to it, and generate SAX calls from it (as opposed to
writing the text straight to the output - after escaping all the control
chars - like it's doing now).

I've attached:
* test.xsp, which is the solution to your problem but using test data (you
should be able to easily adapt it to your needs), and
* test.xml, which is the output that proves this works.

Note:
1) You must include the namespace
xmlns:util="http://apache.org/xsp/util/2.0"; in your XSP or the
 won't get called properly.

2) the super-nested call you need to make this work:
s

s takes the value of String  s, which is then passed in
to .


This should solve your problem.  Email if not.


DR


>From: "Frank Taffelt" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: Re: Newbie XSP question - why dosn't this work?
>Date: Tue, 6 Nov 2001 10:17:03 +0100
>
>sorry i sent you the right in the wrong syntax.
>the code to embed your String is:
>
>msg 
>
>
>alternatively you can let your ContactBO return either an
>* org.w3c.dom.Node that represents your BO in a DOM
>* object that implements org.apache.cocoon.xml.XMLizable for generating
>SAX-Events according to your BO-Data
>
>
>hth,
>frank
>
>
>
>
>
>
>
>-
>Please check that your question has not already been answered in the
>FAQ before posting. 
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail: <[EMAIL PROTECTED]>


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




SV: Re: Newbie XSP question - why dosn't this work?

2001-11-09 Thread Søren Neigaard

I... What... But... Ok tjeck this one out (this will probably not make any
sence to people new to this thread):

I have my "old" Java object that returns XML to my logicsheet. This object
can return a lot of different XML, depending on what parameters it get (my
super duper framework - joke). Now I have two different XML outputs on two
different URL's. Each work just fine, C2 processes my XML just fine. But if
I hit XML1-URL C2 processes the XML, and if I then hit XML2-URL reight
thereafter it prints out the XML (my old problem returns), and I have to
restart C2 to get XML2-URL to work correctly. And vise versa if I start by
hitting XML2-URL (after a restart) it works but then XML1-URL fails (yes the
old "XML-printout" problem again again).

Are you confused, I know I am. I dont understand a thing at all Any
input apriciated.

Best regards
Søren

-Oprindelig meddelelse-
Fra: David Rosenstrauch [mailto:[EMAIL PROTECTED]]
Sendt: 6. november 2001 08:24
Til: [EMAIL PROTECTED]
Emne: Fwd: Re: Newbie XSP question - why dosn't this work?


Søren,

OK.  Problem solved.

Frank was right.   is the way to go.  It will parse the
text that you pass in to it, and generate SAX calls from it (as opposed to
writing the text straight to the output - after escaping all the control
chars - like it's doing now).

I've attached:
* test.xsp, which is the solution to your problem but using test data (you
should be able to easily adapt it to your needs), and
* test.xml, which is the output that proves this works.

Note:
1) You must include the namespace
xmlns:util="http://apache.org/xsp/util/2.0"; in your XSP or the
 won't get called properly.

2) the super-nested call you need to make this work:
s

s takes the value of String  s, which is then passed in
to .


This should solve your problem.  Email if not.


DR


>From: "Frank Taffelt" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: Re: Newbie XSP question - why dosn't this work?
>Date: Tue, 6 Nov 2001 10:17:03 +0100
>
>sorry i sent you the right in the wrong syntax.
>the code to embed your String is:
>
>msg 
>
>
>alternatively you can let your ContactBO return either an
>* org.w3c.dom.Node that represents your BO in a DOM
>* object that implements org.apache.cocoon.xml.XMLizable for generating
>SAX-Events according to your BO-Data
>
>
>hth,
>frank
>
>
>
>
>
>
>
>-
>Please check that your question has not already been answered in the
>FAQ before posting. 
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail: <[EMAIL PROTECTED]>


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




SV: Can I send the intire HttpResponse object to a Java class

2001-11-09 Thread Søren Neigaard

Oh no, I get a "Can't convert org.apache.cocoon.environment.Request to
javax.servlet.http.HttpServletRequest". Can I pass my method a standard
"HttpServletRequest" from my logicsheet? I really don't want a
"org.apache.cocoon.environment.Request" because I want to be able to run my
framework without Cocoon in the future (is I ever get the need).

/Søren

-Oprindelig meddelelse-
Fra: David Rosenstrauch [mailto:[EMAIL PROTECTED]]
Sendt: 8. november 2001 04:40
Til: [EMAIL PROTECTED]
Emne: Re: Can I send the intire HttpResponse object to a Java class


OutputStream msg =
Controller.execute("Hent_Kontakter","Kontakter",null,null, request);


DR



At 09:36 AM 11/8/01 -0800, you wrote:
>In my old example (and now working example, thanks to you guys) I now need
>to get my hands on all parameters send from the client. Whats the best way
>to do this? My guess is to pass the entire HttpRequest object to my method,
>but what do you guys think?
>
>How do I pass the HttpRequest to the following method in a logicsheet?
>
>---
-
>-
>OutputStream msg =
>Controller.execute("Hent_Kontakter","Kontakter",null,null);
>---
-
>-
>
>Med venlig hilsen/Best regards
>Søren Neigaard
>System Architect
>
>Mobilethink A/S
>Arosgaarden
>Åboulevarden 23, 5.sal
>DK - 8000 Århus C
>Telefon: +45 86207800
>Direct: +45 86207810
>Fax: +45 86207801
>Email: [EMAIL PROTECTED]
>Web: www.mobilethink.dk
>
>
>
>-
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail: <[EMAIL PROTECTED]>


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




SV: How to chnage log level?

2001-11-09 Thread Søren Neigaard
Title: Message



Ok - 
strange I set it to ERROR in my web.xml with sucess!?

  -Oprindelig meddelelse-Fra: Henrik Hofmann 
  [mailto:[EMAIL PROTECTED]]Sendt: 9. november 2001 
  02:35Til: [EMAIL PROTECTED]Emne: RE: How to 
  chnage log level?
  

  I've found the solution. I need to change the 
  loglvele in 
logkit.xconf


SV: How to chnage log level?

2001-11-09 Thread Søren Neigaard
Title: Message



It 
should :) Set it to ERROR if you only wants errors.

  -Oprindelig meddelelse-Fra: Henrik Hofmann 
  [mailto:[EMAIL PROTECTED]]Sendt: 9. november 2001 
  02:15Til: [EMAIL PROTECTED]Emne: How to chnage 
  log level?
  Hi , I'm trying to 
  change the log level. After setting the loglevle in web.xml to DEBUG nothing 
  happend. It still loggs every debug event.
   
  bye


SV: More sitemap magic, what about css files?

2001-11-09 Thread Søren Neigaard





Worked perfectly for me, thanks :)

-Oprindelig meddelelse-
Fra: Piroumian, Konstantin [mailto:[EMAIL PROTECTED]]
Sendt: 8. november 2001 08:03
Til: [EMAIL PROTECTED]
Emne: Re: More sitemap magic, what about css files?


This doesn't work (maybe this has been fixed already?) in case, when your
referring file is in a subdirectory:
http:///level1/level2/file.xml

href="main-style.css" will result in
http:///level1/level2/main-style.css request from browser - this won't
be processed by "*.css" matcher.

I use this combination:











Regards,
Konstantin Piroumian

- Original Message -
From: "Luca Morandini" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 08, 2001 6:34 PM
Subject: RE: More sitemap magic, what about css files?


Soren,

I simply use this in the sitemap (of course I have a "styles" directory):





and this in the HTML:



and it works.

Though an error is signaled by Tomcat... and it was reported by other users
last week... this error is suspicious, but, apparently, harmless.

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-----


> -Original Message-
> From: Søren Neigaard [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 09, 2001 1:28 AM
> To: [EMAIL PROTECTED]
> Subject: More sitemap magic, what about css files?
>
>
> It's like my css files aren't returned by my server, as if C2 wants to
> process them instead. If I try to hit a css file directly via my browser
> (and I know it's there), I get a blank page!??? Do I have to
> instruct C2 to
> return those css files without even looking at them? How do I do this
> smartest?
>
> One thing I like in the sitemap, is the posibility to fake the DocumenRoot
> (look beneath).
>
> Real DocumentRoot (set by application server) = /project/
>
> With following sitemap:
> 
> 
>  
>  
>  
> 
> 
>
> Gives:
> 
> http://host/test.xml -> /project/client/media_pc/pages/test.xml
> 
>
> But what if the generated HTML has a relative URL to it's CSS, like
> "../css/test.css", and this CSS file really is in
> "/project/client/media_pc/css/test.css"? What to do then? The
> page thinks it
> is on root of server, so "../" would go beneath DocumentRoot and that wont
> work. What would you guys do here?
>
> Med venlig hilsen/Best regards
> Søren Neigaard
> System Architect
> 
> Mobilethink A/S
> Arosgaarden
> Åboulevarden 23, 5.sal
> DK - 8000 Århus C
> Telefon: +45 86207800
> Direct: +45 86207810
> Fax: +45 86207801
> Email: [EMAIL PROTECTED]
> Web: www.mobilethink.dk
> 
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Newbie XSP question - why dosn't this work?

2001-11-02 Thread Søren Neigaard

Long time I had time to look at this, but I still have the problem.

My problem is not getting the parameter to the Java method, but the fact
that the XML returned from my method (msg) is escaped/encoded so that "<",
">" and so on is escaped to something quite useless.

I have attached my original post! Please help me :)

-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sendt: 12. oktober 2001 04:41
Til: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Emne: Re: SV: Newbie XSP question - why dosn't this work?


Hi Søren,

On Fri, 12 Oct 2001, Søren Neigaard wrote:
>   
>   String msg = ContactBO.getContacts(
>   "" 
>   );
>   System.out.println("\n---> XML returned from BO:\n");
>   System.out.println(msg);
>   System.out.println("\n---\n");
>   

Are you sure you want to what you are doing with the "-s? I am a complete
newbie on this, but it seems to me that the Java part of things would get
into problems with the 4 "-s up there... you'd have to do some escaping of
them, ie.

String msg = ContactBO.getContacts(
   ""
   );

Hope that works...

Sincerely,
Jan

--
Mr. Jan-Aage Bruvoll IT Project Manager
20 Min Holding, Thurgauerstrasse 40, CH-8050 Zurich
Zurich office: +41 1 307 4293,  fax: +41 1 307 4281
Office/fax: +44 2072408283   Mobile: +44 7740291600


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




I have a XSP, a XSL and a logicsheet. Everything works fine, but one thing. My 
logicsheet returns XML, but it encodes the "<" and the ">". Why and what can I do to 
prevent this?

Here is my logicsheet:


http://www.w3.org/1999/XSL/Transform"; 
xmlns:xsp="http://apache.org/xsp"; xmlns:pim="http://www.mobilethink.dk/pim";>








java.util.*

dk.mobilethink.test.businessobjects.*


  





String msg = ContactBO.getContacts(
""
);
System.out.println(msg);

msg











-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>


Cocoon2 on Enhydra?

2001-10-05 Thread Søren Neigaard

Has anybody tried subj.? What do I need to achive this? I have made the WAR
file, but what do I do with it?

Med venlig hilsen/Best regards
Søren Neigaard
---
Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




General framework question

2001-10-04 Thread Søren Neigaard

Hi

I would love you comment on my idea of a framework I'm planning to make.
Whether it is possible, whether you think it's a good solution. Basicly all
comments are welcome.

I want to make a business layer, that always generates some generic (home
invented) XML to the presentation layer. Then I would like to use Cocoon to
use this XML, and present it for me. The reason that I want to use my own
XML, is that I want to be able to replace Cocoon with a total different
presentation layer (maybe my own implementation, who knows). My client side
people likes the Cocoon idea, and want it to be easy to build prototypes
fast (offcourse), so I still need a lot of the "smart" features of Cocoon.

Can this be done? Is it a good idea?

Med venlig hilsen/Best regards
Søren Neigaard
---
Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




General framework question

2001-10-03 Thread Søren Neigaard

Hi

I would love you comment on my idea of a framework I'm planning to make.
Whether it is possible, whether you think it's a good solution. Basicly all
comments are welcome.

I want to make a business layer, that always generates some generic (home
invented) XML to the presentation layer. Then I would like to use Cocoon to
use this XML, and present it for me. The reason that I want to use my own
XML, is that I want to be able to replace Cocoon with a total different
presentation layer (maybe my own implementation, who knows). My client side
people likes the Cocoon idea, and want it to be easy to build prototypes
fast (offcourse), so I still need a lot of the "smart" features of Cocoon.

Can this be done? Is it a good idea?

Med venlig hilsen/Best regards
Søren Neigaard
---
Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>