Re: Wish: add a header in mail subject

2005-10-08 Thread Seak, Teng-Fong
Kyle wrote:

> Surely Yahoo mail allows you to click on and sort by recipient too?

Nope.

> Set up a Tomcat-User contact in your Yahoo Address Book and all mail
> coming in from Tomcat should display that just like it does in
> Thunderbird, shouldn't it?

And nope.  You're just guessing it should be, but it's not like
that.  And even if it's like this for Yahoo, the same problem exists for
other users.  Many other ML are using this, so it proves to be a good
solution.  So why not adopting it???

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wish: add a header in mail subject

2005-10-07 Thread Seak, Teng-Fong
Sure, this can be used, but it's not always appropriate.  You see,
my address is at Yahoo and I receive mails in Thunderbird at home.  When
I'm not at home, I read mails in Yahoo mail, of course.  But then I
can't apply any filter (or could I?) because I need them all in the
Inbox so that Thunderbird could fetch them all later on when I'm back
home.  Well, you see the problem?  When I'm using Yahoo mail, if the
mailing-list messages contain the header, I could click on the "subject"
to sort them.  But now without the header, I've to read through all
message subject to see if there's anything important.

Quite many other mailing-lists add this header, why don't Tomcat? 
Is it really hard to do so?

Jon Wingfield wrote:

> If what you are after is a way to filter messages then use a good
> email client and filter on the message header "List-Id". For this list
> it is set to:
>
> List-Id: "Tomcat Users List" 
>
>
> Seak, Teng-Fong wrote:
>
>>It would be nice if this mailing-list could add a header to mails,
>> something like [TC-user].  The announcement has the [ANN] header, so
>> I think it won't be a problem for this to have a header.
>>
>>Regards,
>>
>>Seak
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Wish: add a header in mail subject

2005-10-06 Thread Seak, Teng-Fong
   It would be nice if this mailing-list could add a header to mails, 
something like [TC-user].  The announcement has the [ANN] header, so I 
think it won't be a problem for this to have a header.


   Regards,

   Seak


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: What to put into JAVA_HOME on Windows xp

2005-10-03 Thread Seak, Teng-Fong
It's necessary to stop and restart the service when Java home path
is changed.  Reboot the PC doesn't help either.  I had talked about this
in a previous mail but seems like it got passed without catching any
attention:
http://mail-archives.apache.org/mod_mbox/jakarta-tomcat-user/200509.mbox/[EMAIL 
PROTECTED]

Giuseppe Briotti wrote:

>>==
>>Date: Wed, 28 Sep 2005 12:47:07 +0200 (MEST)
>>From: "Markus Hapke" <[EMAIL PROTECTED]>
>>To: "Tomcat Users List" 
>>Subject: Re: What to put into JAVA_HOME on Windows xp
>>==
>>
>>
>>Hello All,
>>
>> now it works ! when runing
>> \bin\startup.bat
>> instead of
>> \\bin\tomcat5w.exe //ES//Tomcat5
>> and then pressing START.
>>
>> For what the tomcat5w.exe should be used ?
>>
>> Markus
>>
>>
>
>In tomcat bin directory there are several batchs that perform all the 
>environment settings, THEN
>execute tomcat.exe... The startup is the first one of the chain...
>
>G.
>
>  
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Script to create tomcat service on windows?

2005-10-03 Thread Seak, Teng-Fong
Yup, 5.5 is very different from 5.0 in that those *.bat files aren't
needed/included.  And 5.5 no longer needs JAVA_HOME environment variable.

David Kerber wrote:

> service.bat doesn't seem to be installed with 5.5.9.  I searched the
> entire HD of two different machines which have that it installed, and
> that file was not found.  I did find the html files with the
> description of service.bat, but not service.bat itself.
>
>
>
> Caldarale, Charles R wrote:
>
>>> From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Script to
>>> create tomcat service on windows?
>>>
>>> Does anybody have a script to create a tomcat service on windows 2000? 
>>
>>
>>
>> Have you tried the service.bat script that's part of the standard
>> download?
>>
>>  - Chuck
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Flexible way of defining application variables in text format?

2005-09-27 Thread Seak, Teng-Fong
   My webapp needs some application string variables for 
configuration.  For the moment, I hard-code them as class static 
properties and compiled.  But I'd like to know if there's any method to 
define such variables in a text file, something like the global.asa in 
ASP where we could simply write something like this withing the 
application_onstart subroutine:

application("myvar") = "my value"

   I like them to be withing text file because if even there's a need 
to change config, I'd like to just launch a text editor, edit it and 
start again!  I don't want to install Eclipse or other IDE in deployment 
server just in case we need to change some parameter and have to compile 
everything.  This is very inconvenient, non professional and stupid.  
And the client would probably not appreciate this.


   OK, I know I could write a wrapper function to parse that text file 
and assign the correct values, but is there a simpler way?  Is the 
answer lying in the "web.xml" file?  But its syntax seems quite 
complicated that I've no idea what to begin.


   TIA

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Generic Types support in Tomcat?

2005-09-27 Thread Seak, Teng-Fong

Nikola Milutinovic wrote:

Tomcat 5 supports all the features of the underlying JVM, the problem 
is in the JSPs. They are compiled by Jasper + Eclipse compiler module, 
which, in version 5.5.9, has no support for Java5. Later versions of 
Tomcat have a newer version of Eclipse Compiler and it works. Also, 
you can plugin manually a newer version of Eclipse compiler, try to 
search the mailing list for posts on how to do it (simple, if I 
remember correctly).


Nix.


   I would just forget about it.  Nowadays, a simple search would give 
hundreds, if not thousands or millions, results.  The problem is I don't 
know what keyword(s) to use.  Last time I spent quite a lot of time (at 
least half an hour) to find out that Tomcat (well, JSP) couldn't support 
Java5.


   Thanks anyway.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Generic Types support in Tomcat?

2005-09-26 Thread Seak, Teng-Fong
Stephan van Loendersloot wrote:

> Seak, Teng-Fong wrote:
>
>>I've received an announcement mail telling that 5.5.12 is in alpha
>> phase!  So what's this story?  Actually, I'm more interested in using
>> the new "for" loop in Java5 than using generic.
>>
> I always like to think that the modularity that comes with Java is one
> of it's greatest features.
>
> Combined with JSP and the recommended MVC model, this leaves me with
> enough options to generate pre-packaged JAR's for  inclusion with my
> web-applications.
>
> I use the latest Eclipse (which does support those features) and I use
> the enhanced for loop and generics a lot, though mostly pre-compiled
> and pre-packaged.
>
> Maybe it's a suitable workaround for you while waiting for the next
> stable Tomcat release.

Yup, I moved some code to compiled classes, but some I can't. 
That's why I've been confused during a whole hour wondering why my jsp
generated lot of errors until at last I made a search on google to find
out that Java5 features aren't support in JSP!!!  Damned!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Generic Types support in Tomcat?

2005-09-26 Thread Seak, Teng-Fong
When I first saw the announcement that Tomcat 5.5 needs Java5 to
run, I thought it would supports Java5 features.  But it turns out that
it needs Java5 but not "supports" Java5.  Quite disappointed.  Anyway, I
have to go on with my webapp, so much for it.

Christoph Kutzinski wrote:

> What's what story?
>
> Java 5 features are not supported in latest tomcat stable (5.5.9), but
> are in the latest alphas (5.5.10-5.5.12)
> Just as I said in my previous mail.
>
> Seak, Teng-Fong wrote:
>
>> I've received an announcement mail telling that 5.5.12 is in alpha
>> phase!  So what's this story?  Actually, I'm more interested in using
>> the new "for" loop in Java5 than using generic.
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: What to put into JAVA_HOME on Windows xp

2005-09-26 Thread Seak, Teng-Fong

   I remember when I was using Tomcat 5.0.x.  It was giving me
headaches!  After changing JAVA_HOME, it was still necessary to do a
"service remove" and then "service install", or else Tomcat won't take
that into account.

   Try Tomcat 5.5.  You don't need to declare JAVA_HOME anymore, and
you could use the configure console to point Tomcat to the correct JRE.

Jan Fredrik Fallsen wrote:

>your java home is C:\jsdk1\Àppserver\jdk
>
>-Original Message-
>From: Arthur D'Alessandro [mailto:[EMAIL PROTECTED]
>Sent: 26. september 2005 00:16
>To: Tomcat Users List
>Subject: Re: What to put into JAVA_HOME on Windows xp
>
>Move it up one level, in your case:
>C:\JDK1.4\AppServer\jdk
>
> On 9/25/05, Markus Hapke <[EMAIL PROTECTED]> wrote:
>
>
>>Hello,
>>
>>I just installed tomcat 5.0.28 successfully.
>>
>>Then tested the samples in
>>C:\TOMCAT\webapps\jsp-examples\jsp2 - they worked.
>>
>>Thed tried to test a .jsp of my own- getting the error msg in the
>>MS Internet-Explorer:
>>=== BEGIN of error Msg 
>>HTTP Status 500 -
>>
>>type Exception report
>>
>>message
>>
>>description The server encountered an internal error () that prevented it
>>from fulfilling this request.
>>
>>exception
>>
>>org.apache.jasper.JasperException: Unable to compile class for
>>JSP
>>org.apache.jasper.compiler.DefaultErrorHandler.javacError(
>>DefaultErrorHandler.java:97)
>>org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java
>>:346)
>>org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
>>org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
>>org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
>>org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
>>org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java
>>:511)
>>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
>>:295)
>>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>>javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>
>>
>>root cause
>>
>>Unable to find a javac compiler;
>>com.sun.tools.javac.Main is not on the classpath.
>>Perhaps JAVA_HOME does not point to the
>>JDK
>>org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler
>>(CompilerAdapterFactory.java:106)
>>org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
>>org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
>>org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
>>org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
>>org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
>>org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
>>org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java
>>:511)
>>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
>>:295)
>>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>>javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>
>>
>>note The full stack trace of the root cause is available in the Apache
>>Tomcat/5.0.28 logs.
>>=== END of error Msg= ==
>>
>>I set the environment entry of JAVA_HOME to
>>C:\JDK1.4\AppServer\jdk\bin
>>
>>Is that correct?
>>
>>OK, nobody of you could know where I have my J2EE (1.4) :
>>it is 'mounted' under:
>>C:\JDK1.4\AppServer
>>and i can find the javac.exe under: C:\JDK1.4\AppServer\jdk\bin
>>
>>Is my entry of the JAVA_HOME correct?
>>
>>Is there another error?
>>
>>Thanx in advance, Markus
>>
>>--
>>,,
>>
>>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Generic Types support in Tomcat?

2005-09-24 Thread Seak, Teng-Fong
I've received an announcement mail telling that 5.5.12 is in alpha
phase!  So what's this story?  Actually, I'm more interested in using
the new "for" loop in Java5 than using generic.

Christoph Kutzinski wrote:

> Hi,
>
> it is only since 5.5.10
> 5.5.10 was already released, but it is only supposed to be "alpha".
> I.e. not recommended for production use.
> I have no idea, when the next stable tomcat version will be released
>
>
> Christoph



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Generic Types support in Tomcat?

2005-09-22 Thread Seak, Teng-Fong
   Well, after many many hours' search (seems like not a hot subject), 
I finally came to this mail archive.  But before getting here, I've 
already come across a similar page at

http://blog.taragana.com/index.php/archive/how-to-run-javac-15-or-beyond-compiler-for-jsp-compilation-in-tomcat-55-with-generics-enabled-and-other-15-only-features/2/

   I've put all those JSP parameters in the web.xml and of course it 
didn't work (or else I wouldn't be here).


   This thread said it's for Tomcat 5.5.10 (ie, in the future) but that 
page just said it's for Tomcat 5.5, and then 
 only 
say it's for Tomcat 5.5 too.  So, is it possible to use Java 5 syntax in 
JSP in Tomcat 5.5.9?


   TIA


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]