Hi experts
I am using Tomcat 5.5 and struts framework and security filter
in order to authenticate users like the others I am using j_security_check
action
but my problem is that I have a field in my user table namely status which
represent whether the user is available or deleted by administrat
"Andrew Friebel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>I am having trouble parsing a web.xml file using SAX. The war file will
> deploy with no hassles, however, I am writing a local program that will
> allow me to change the web.xml file locally before distribution.
>
>
>
> -Original Message-
> From: Angelov, Rossen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 27, 2007 12:56 PM
> To: Tomcat Users List
> Subject: Tomcat Monitoring
>
> What is recommended for monitoring Tomcat? Or is there anything built in
> that can help monitoring the performance and
hello to all..
i;m using tomcat 5.5.23 and apache 2.0.52
and mod_jk 1.2.23 on centos 4.4
amd 64
i'm running it in load balancer mode
i get a few errors.. roughly 0.1%
statistics after reset, a few hours after reset shows
the access is 59697
CE (client error) is 93
Err = 0
WARN: Exception throw
"lightbulb432" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I did notice the getServletContext() of the servlet classes, but in this
> case
> the code is in a custom class that was forwarded to by the servlet - I
> don't
> have access to the servlet in this class.
>
> If howe
I am having trouble parsing a web.xml file using SAX. The war file will
deploy with no hassles, however, I am writing a local program that will
allow me to change the web.xml file locally before distribution.
My problem is the DTD definition in the web.xml file. I require the DTD
file definit
"Johnny Kewl" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Bill, let me just say that your little auto module helped me tremendously
> when I first looked at JK, for a newbie, having that stuff generated
> becomes a great tutorial in itself, so its a damn shame it will probab
> From: lightbulb432 [mailto:[EMAIL PROTECTED]
> Subject: RE: HttpSession questions
>
> If however, I were to change my code and pass the return
> value of Servlet's getServletContext() to my class, would
> a session still be created
No, no session is created.
> Out of curiosity, why is there
I did notice the getServletContext() of the servlet classes, but in this case
the code is in a custom class that was forwarded to by the servlet - I don't
have access to the servlet in this class.
If however, I were to change my code and pass the return value of Servlet's
getServletContext() to m
It's also available via the servlet class. See
http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/GenericServlet.html#getServletContext()
If you are trying this via jsp, it should be available via PageContext. See
http://tomcat.apache.org/tomcat-5.5-doc/jspapi/javax/servlet/jsp/
> From: lightbulb432 [mailto:[EMAIL PROTECTED]
> Subject: HttpSession questions
>
> Why is it that you need an HttpSession in order to get a
> ServletContext?
You don't - since your code is in a class that extends HttpServlet, just
call getServletContext() directly; it's defined under
javax.ser
I would suggest spring ..but springs injected entities are *usually*
classical pojos such as DBDrivers
Here is a project which shows great promise of injecting whole listeners
which may be of help for your effort
http://oranjestad.sourceforge.net/spring-oranjestad.html
hyva?
Martin-
This ema
Why is it that you need an HttpSession in order to get a ServletContext? I
tried to obtain a ServletContext using an HttpServletRequest, but this isn't
possible in the API, unless you do a
request.getSession().getServletContext().
This creates a session, however, and I'm not sure I need a session
Niu Kun wrote:
> Any help would be appreciated and thanks in advance.
http://tomcat.apache.org/faq/misc.html#tomcat5CharEncoding
Mark
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTEC
Best article I have found so far on this subject, is this one
It seems that POST is more difficult than GET
http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/
good luck...
- Original Message -
From: "Niu Kun" <[EMAIL PROTECTED]>
To:
Sent: Sunday, July 01, 2007
> From: Robert J. Carr [mailto:[EMAIL PROTECTED]
> Subject: Re: WebdavServlet
>
> > Mapping it to /edit/* allows the content to be exposed at an
> > alternative url.
>
> Sure, but the content exposed would still be the "whole of
> the webapp", right?
Yes - allowing appropriately privileged use
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
> Subject: RE: CGIServlet
>
> > So, in summary, you're saying the only way I can get CGIServlet
> > defined in a single webapp is to leave servlets-cgi.jar in
> > /server/lib and require an administrator to rename it?
>
> Put it in the depl
> From: Robert J. Carr [mailto:[EMAIL PROTECTED]
> Subject: Re: CGIServlet
>
> http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
>
> So I'm not following, are the resources "TOTALLY invisible to web
> applications" or are they "made visible through this class loader"?
Both. You'
> From: Juha Laiho [mailto:[EMAIL PROTECTED]
> Subject: How to inject a webapp listener?
>
> I would like to have the Tomcat container to inject a specific
> ServletContextListener to each loaded webapp on my server - without
> touching the individual web.xml files, and am looking for advise on
>
Thanks,
the reason why I believe I need to do this from the context level
is that the code running in the listener needs to access the context
classloader of the individual webapps - and they seem to me at least
be most straightforward to access from the webapp listener.
Of course, a way to acce
Dear all,
I've just got a simple form to post Chinese characters to my jsp file.
But the data submitted can't be seen on my web browser.
After analyzing the data posted and shown on my browser, I find the
following problem.
The letters I submit are "e7 89 9b e5 9d a4" which are in UTF-8 form.
And
Bill, let me just say that your little auto module helped me tremendously
when I first looked at JK, for a newbie, having that stuff generated becomes
a great tutorial in itself, so its a damn shame it will probably fall away.
I had a look at the code, and I see there are other maintainers, ha
- Original Message -
From: "Johnny Kewl" <[EMAIL PROTECTED]>
To: "Tomcat Users List"
Sent: Sunday, July 01, 2007 11:22 AM
Subject: Re: Filters and getLastModified
You know LightBulb, been seeing your questions for a while now, you
clearly learning, but you have got one serious con
Am not sure, but, whatever job your injected contextlistener is supposed
to do, it could perhaps be done in the container listener without
ressorting to context listener, isn't it? (using ADD_CHILD for the
'context initialized' and REMOVE_CHILD for contect destroyed)?
As for calling init on your in
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
if you want to use Tomcat you can also use EJB by utilizing OpenEJB.
Have a look at: http://openejb.apache.org/tomcat.html
Please beware: This is not a suggestion in favor or against EJB. Just an
info that you don't need to abandon Tomcat if you
You know LightBulb, been seeing your questions for a while now, you clearly
learning, but you have got one serious conceptual mind on you, not enough
just to use TC, hey ;) I think its great, a guru in the making.
To try answer your question, if its HTTP, the getLastModified() that you
p
Hello,
I would like to have the Tomcat container to inject a specific
ServletContextListener to each loaded webapp on my server - without
touching the individual web.xml files, and am looking for advise on
how to achieve this.
In other words, I'd like to have the container act as if there was
27 matches
Mail list logo