RE: Sitemap parameters from servlet init (e.g. from outside the sitemap)...

2002-06-25 Thread Piroumian Konstantin

> From: Per Kreipke [mailto:[EMAIL PROTECTED]] 
> 
> P.s. 
> 
> > - in Cocoon, does something already exist to get set sitemap 
> > parameters from somewhere 'global' (hopefully from the init params)?
> 
> Or perhaps to/from the servlet context?

There is a new thing in CVS HEAD called InputModules. I think that this is
what you are looking for. You can create an input module for servlet context
attributes (or wait a little -  I think it will be available soon) and use
it like this in your sitemap:

http://{app:server-port}/bin/get?foo"; />

There is also another new thing in sitemap syntax, called
'global-parameters':

  

 ...

   http://{../server-port}/bin/get?foo"; />

But AFAIK they can be set only from the mounting sitemap, so you'll have to
change your sitemaps anyway.

Konstantin

> 
> Per
> 
> -
> 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]>




RE: Sitemap parameters from servlet init (e.g. from outside the sitemap)...

2002-06-24 Thread Per Kreipke

P.s. 

> - in Cocoon, does something already exist to get set sitemap 
> parameters from somewhere 'global' (hopefully from the init params)?

Or perhaps to/from the servlet context?

Per

-
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]>




Sitemap parameters from servlet init (e.g. from outside the sitemap)...

2002-06-24 Thread Per Kreipke

I'm looking a "Best Practice" suggestion.

In our sitemap, we get XML from another machine (e.g. backend server) like
this:

http://dataserver.onclave.com:1234/bin/get?foo"; />

However, developers need to point to their local machine. E.g.:

http://localhost/bin/get?foo"; />


This is just begging for a global sitemap parameter so that it becomes:

http://{server-port}/bin/get?foo"; />


Unfortunately, we're all in the same CVS archive, are changing the sitemap
fairly frequently, and I wouldn't want to have multiple copies of the
sitemap around which we then have to reset by hand every time.


- What is the right way to handle this in a servlet environment? I figure
it's to use the servlet init parameters. Yes?

- in Cocoon, does something already exist to get set sitemap parameters from
somewhere 'global' (hopefully from the init params)?


Thanks, Per


-
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]>