Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xsp pages

 
Tacha Arnull
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic