This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes XML and Related Technologies and the fly likes xsp pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xsp pages" Watch "xsp pages" New topic
Author

xsp pages

Tacha Arnull
Greenhorn

Joined: Aug 18, 2000
Posts: 12
Has anybody been using xsp? I am trying to send information from a form using Javascript to an xsp page and then dynamically crete an html page. But I am having problems using getParameter() The form is created dynamically on the original Javascript page - is this where the problem is?
I am not sure if I am explaining this clearly. Does anyone know where I can find more information about xsp?
Bill Pearce
Ranch Hand

Joined: Sep 19, 2000
Posts: 53
I just read over the section on XSP in the book I have on Java and XML, and it seems to discuss XSP within the framework of Cocoon (http://xml.apache.org/cocoon/index.html). Are you using Cocoon? If so, can you please tell me how you like it and what server you are using it with? If not, what are you using to process your XSP?
Basically the way I read this (and I have never used XSP) is that XSP allows you to dynamically create XML documents by inserting Java code between <xsp:logic> tags. For example:


The above should (and I've never tried it) allow you to dynamically output the adminInstruction content within your XML document. You would still use XSL to process into HTML (or something else). The book I am reading describes this as overcoming a (sometimes) limitation of JSP in that it is easy to mix presentation and business logic. It seems like a few extra steps to get it set up, though.
To your specific question, are you using something like Cocoon that will process XSP? Does anyone know of another product for using XSP?
Bill
Tacha Arnull
Greenhorn

Joined: Aug 18, 2000
Posts: 12
Yes I am using Cocoon. I don't know of any other processor for xsp either. The server I am using is Tomcat. The problem I am finding is that there are very few examples of xsp anywhere. I have read and reread the Cocoon stuff and am getting there..... Which book are you using?
Bill Pearce
Ranch Hand

Joined: Sep 19, 2000
Posts: 53
I am looking in "Java and XML" from O'Reilly, by Brett McLaughlin. They have a web site for the book: http://www.oreilly.com/catalog/javaxml/

Chapter 9 covers web publishing frameworks, including Cocoon installation and configuration. I am familiar with Cocoon, but have not set it up. The chapter seems to be pretty thorough. It is also very good at XSL.
Good luck,
Bill
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
Also bear in mind that Resin ( www.caucho.com ), as well as being a high-performance, open-source 2.2-compliant Servlet Container, also has XML, XSL and JSP built-in. It will do XSLT-formatted JSP "out of the box". I'm a happy user, anyway.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: xsp pages