You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Steve Conover <sc...@groundswell.net> on 2000/08/30 00:54:10 UTC

2 questions: nested xml evaluation, forcing servlets not to cache , code design opinions

Hi all,

First a hopefully easy question.  Every time I want to execute a change to
one of my files, I have to go into my servlet repository and delete out the
cached .java and .class files.  Should there be a way to turn this off (I
looked thru the config files an I couldn't find anything obvious).  Anyone
know how to do this with Jrun specifically?

Second question.  I'd like some "inner" xml content to be evaluated by xsp
before the "outer" stuff executes.  Specifically, here's the relevant part
of my content file:

<category levels-up="9999" levels-down="1" show-files="true">
			<categoryid><http-parameter
name="categoryid"/></categoryid>
		</category>

in my xsp file, the http-parameter tag just grabs http parameter and returns
it (request.getParameter("<xsl:value-of select="@name"/>"))

I want the http-parameter tag to evaluate before the category stuff...so I
put an <xsl:apply-templates/> at the beginning of my category template in
the xsp file.  That doesn't seem to work...is this possible or am I on the
wrong track?

Final question: should I even be allowing the content people to control what
the http parameter is called?  Or should I just hard-code it ("categoryid")
into my xsp file?  This is more of a design issue than anything...opinions?

Regards,
Steve