Hi,
I try to run the mysql connector with Tomcat with
security enabled
(NT4, jakarta-tomcat-5.0.25, j2sdk1.4.2_05,
mysql-connector-java-3.1.2-alpha-bin.jar)
With the rule
grant {
permission java.net.SocketPermission
"localhost:3306", "connect,resolve";
};
it works. But this rule is not specif
I got database connection up and running as described
in tomcat-docs/jndi-datasource-examples-howto.html
But it does not run with the Security Manager enabled.
The mysql driver and commons-dbcp are in common/lib,
so
grant codeBase "file:${catalina.home}/common/-" {
permission java.secur
Well, as usual it was very helpful explaining the
problem ;-)
I can check if
getContext("/a/b/c.html").getRealPath("/").equals(getContext("/").getRealPath("/"))
Thanks,
Juergen
__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxe
Hello,
For context = getContext("/a/b/c.html"), the path
being user-entered,
how do I know, if the Context is the Root context
containing /a/b/c.html
or if the Context is /a containing /b/c.html?
The difference is important because to get the real
path of c.html in the former case I'd have to
g
If on a NT machine (Tomcat 5.0.19)
http://localhost:8080/test/
returns a valid directory,
then http://localhost:8080/Test/ returns 404.
OK, sofar.
But
getServletContext().getContext("/Test/");
returns not null.
I think, this might be an
I found the problem, the classname was used as String
parameter in the constructor for a TagExtraInfo.
Should always use Myclass.class.getClass().getName()
instead of String class names.
Sorry for bothering you,
Juergen
>Where does Tomcat remember types of EL variables?
>
>If I use an EL vari
Where does Tomcat remember types of EL variables?
If I use an EL variable image like
${index.selected}
Tomcat 5 generates code like:
image = (de.jwi.jgallery.Image)
pageContext.findAttribute("image");
When I renamed the class name of image, Tomcat would
still generate code to access the old n
I tried to use a map based EL expression
${folder.variables["copyright"]}
as Tag attribute like
But there was a JasperException "equal symbol
expected"
When I included backslashes, it worked:
I think this is a bug or a feature? I did find nothing
in the JSP 2.0 spec about having to escap
I want to run all requests through a controller
servlet.
The requests should be like
/controller/dir/fileXXX.html
This is done with a
Controller
/controller/*
request.getPathInfo() is "dir/fileXXX.html"
fileXXX.html in reality are JSPs, which the Controller
servlet forward
How do you setup Tomcat for an ISP, that offers Tomcat
services to it's user?
o Have different Tomcat installations for each user.
That would cost lots of memory.
o Put Context configuration XML files for each user to
$TOMCAT_HOME/conf/Catalina/localhost
This should work, but there would only be
Hi,
thanks to all who answered to my question.
The valve solution looks good, but as we develop with
tomcat and run on weblogic we cannot use nonportable
solutions.
So, if marketing insists on their idea we have to dump
container managed security. Probably we will use a
struts based security.
T
Hello,
we have a portal. Now the marketing people want that
on the portal page be a form with user and password
field. After submitting the user should be logged in.
First this looked like a very easy to do feature.
We use container managed security to protect some
pages.
So submitting the abov
hello,
with 3.2 final I ran into the same problem as the
message below. Is there a solution, so the 8080 is
not necessary, now?
Thanks, Juergen
http://mikal.org/interests/java/tomcat_users/msg09581.html
I am using Tomcat 3.2b6 with mod_jk. When accessing
http://localhost:8080/examples/jsp/sec
13 matches
Mail list logo