You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Morrison, John" <Jo...@uk.experian.com> on 2001/06/13 10:17:06 UTC

RE: [PATCH][c2] ServletContext/ServletConfig

Please find attached patches to environment/Context.java,
CommandlineContext.java, HttpContext,java.

Theses allow access to parameters defined in the web.xml file...

  <description>Cocoon2 Demo</description>
  
  <context-param>
    <param-name>db1</param-name>
 
<param-value>jdbc:JTurbo://xxx.experian.co.uk/yyy/sql70=true</param-value>
    <description>Primary Database</description>
  </context-param>
  <context-param>
    <param-name>db2</param-name>
    <param-value>jdbc:odbc:MS Access
Database;DBQ=d:/temp/postal.mdb</param-value>
    <description>Secondary Database</description>
  </context-param>

  <servlet>
    <servlet-name>Cocoon2</servlet-name>

I've also noticed a lot of people asking questions along the lines of "how
can I get access to XXX from my xsp..." so I've attached a patch for the
xsp.xsl file - all it adds are comments which should show up in the java.
It adds comments to the effect of what 'built-in' (ie derived from
parent(s)) variables are defined.  I *know* this adds nothing to your
knowledge if you know it, but a newbie may actually look in the generated
java code(?).  If there are other variables I didn't add (context,
parameters, request, response) and people think it's useful, please
extend...

John.



=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

[C2] [Update] I18nTransformer with date-time and number formatting.

Posted by "Piroumian, Konstantin" <KP...@flagship.ru>.
Hi, Cocooners!

As I promised, I've implemented some new possibilities in I18nTransformer2
and corrected samples and the dictionary. Patch is attached.
What's new:
    - date-time localized formatting (in substitution params too)
    - number formatting, including currency and percent format (in
substitution params too)
    - locale support (only for date, number formatting, not in dictionaries
yet)
    - samples are changed to show new capabilities
    - xdocs/i18n.xml was changed to reflect new features
    - corrected German translation
    - a stylesheet for merging dictionaries and generating keys

Could anybody apply this patch and check if it's working?

I couldn't run any of sub-sitemap sample. Sub-sitemaps compile but Cocoon
gives a wrong response - browser tries to download something or closes
connection. Something's changed since I was out.

My config:
    Win NT 4.0
    Tomcat 3.3-dev
    Sun JDK 1.3
    Cocoon 2.1-dev (just updated from CVS)

Regards,
    Konstantin Piroumian.



Re: [C2] Download from site

Posted by Davanum Srinivas <di...@yahoo.com>.
My mistake. Updated site again. Thanks Konstantin....

-- dims

--- "Piroumian, Konstantin" <KP...@flagship.ru> wrote:
> Good day!
> 
> What is the reason that Download link is absent in the C2 site menu?
> Also, I don't see a link to JavaDocs (API).
> 
> Something's wrong with the site. Or there is a reason for that that I don't
> know yet?
> 
> Regards,
>     Konstantin Piroumian.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 


=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


[C2] Download from site

Posted by "Piroumian, Konstantin" <KP...@flagship.ru>.
Good day!

What is the reason that Download link is absent in the C2 site menu?
Also, I don't see a link to JavaDocs (API).

Something's wrong with the site. Or there is a reason for that that I don't
know yet?

Regards,
    Konstantin Piroumian.

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org