What version of tomcat are you running?
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
when passed through apache.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
This is correct. Servlets are simply another class and should
be placed in webapps/name here/WEB-INF/classes/package name/.
Then add the appropriate servlet mapping(s).
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
I'm not sure but I put them under
the following:
int max = session.getMaxInactiveInterval();
code
session.setMaxInactiveInterval(Integet.MAX_VALUE);
// whatever needs to be done here...
session.setMaxInactiveInterval(max);
/code
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
note that one of the rules on this list is all messages
are to be posted in plain text so everyone can read them(no HTML).
Not only does this keep us long time residents happy but it will
get you questions answered much more quickly.
---
Michael Wentzel
Software Developer
Software As We Think
from the root server up and/or using telnet/ping to
check to see if a server is listening on the port.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
on
all requests != the desired JSP. As a side note... if done this
way may I suggest configuring this in a props file to remove the
need for a recompile if things should change in the future.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
for the jsp name,
possibly a regexp for parsing what EXACTLY should get redir,
hosts list that should get redir, etc...
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
of people out there, you know who
you are;), who are just plain lazy and want to be given their answer
and don't want to search for themselves. Whether it be a 3 line msg
footer or an 8*{ {0 -1},
{1 0} } message archive;).
---
Michael Wentzel
Software Developer
Software As We
to me like you're calling JspWriter.print[ln] without
passing any parameters.
i.e. %=out.println();%
Do a search for print() and println() and make sure you
have not forgotten to pass a parameter to this method.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
. Any
particular reason you wish to do this...? Just curious;)
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
or a forward.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
/servlet/ mapping. Have you tried
url-pattern/Venus//url-pattern
I usually put somekind of extension on my servlet mappings so I haven't
tried this but you might give that a try.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
much more quickly and bog down the list much
less at the same time please check archives before posting
a question.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
try an ant script. If you write it well you would only
have to have a single
one for all of your webapps. I'm not well versed in ant so I'll leave it to
you or someone else
to follow up on this one.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
, server.xml will not get reloaded so you can't add a new context.
(2) redeploy a without restarting the tomcat service?
check out the reloadable flag in server.xml. Once again, though, c could
not be made reloadable for the same reason as (1).
---
Michael Wentzel
Software Developer
Software As We
This is a copy of the welcome message you get when subscribing to
this group. You can use one of two methods.
'ya know, I'm a huge proponent of NO html messages on the list
(especially since it's in the usage policy!), but maybe the welcome
message should be changed to an html message.
. The important environment vars
are of course classpath and tomcat_home.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
command line HTTP GET request
and see what comes back.
Sounds like tomcat isn't running though. Make sure nothing
is using this port already and use tomcat run instead of
tomcat start(if that should be your case) so you can view
things as they are happening.
Just a few starting points.
---
Michael
then as there are now.
There is just no definitive cure for laziness.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
on. Anyone have any ideas? I've already spent entirely
too much time
on something that should be trivial. Thanks,
You might try checking your security permissions on the work folder and
make sure the user you are running tomcat under has enough permissions.
Just a guess.
---
Michael Wentzel
, but
Tomcat can't see
it for some reason. Any suggestions?
try href=./style1.css
We used relative references to solve this problem in our app
(i.e. ../style1.css for parent folder).
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
API is available on a per cpu basis at 2,500USD/cpu. Checks can be
made out to Michael Wentzel and sent directly to ME! ;)
Seriously though obviously you didn't check out the tomcat website
before posting this message. If you had you would have realized that
tomcat is released under
of the
example web.xml files included with tomcat.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
. Some people may not have a HTML capable mail viewer.
This is a guideline listed on the tomcat website before subscribing to the
list. That is all.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
esh. Without a name the input
element is essentially useless because you can not get the selected value
from
the request.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
to the best of my knowledge Syntax is the
problem.the actual systax for the radio but
Can anybody tell what's the best solution for logging out.
I use Tomcat 3.2.1, Windows2000 and JDBCRealm.
session.invalidate();
simple yet effective.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
correctly).
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
additional servlet mappings
in your config files. Examples provided in standard config files.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
y requests to any of the services(doPost, doGet,
etc...). And also note that there is an instance created for each
servlet mapping you have configured plus the default
webapps/myapp/servlets/MyServlet.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
}
%
which call confirmLogin.jsp
and on the top of each page i have a : %@ include
file="confirmLogin.jsp"
%
try adding
return;
after your sendRedirect(...)
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
what is the equivalent to session.setAttribute("aName",
anObject) but whith
an application scope
there's context.set|getAttribute(String, Object); for
webapp context scope attribs.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
it as
java.sql.Date d = new java.sql.Date();
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
in tomcat-user.
- Using DB Connection Pooling with Tomcat does belong here.
* First check archives(link can be found tomcat website).
* Then post it if you still have a question.
(Another good guideline is... Please post in plain text. Not HTML, etc.)
---
Michael Wentzel
Software Developer
be
willing to answer your
questions if you post in plain text.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
information you can provide the faster a solution can be found.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
Run 'tomcat.bat run' at command prompt instead of startup.bat.
This will allow you to see stack trace.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
in some way, shape or form
a separate session will automatically be created for that new browser
instance(i.e. start a browser, go to the webapp, start another window by
clicking my desktop IE icon, go to the webapp in the new window...).
---
Michael Wentzel
Software Developer
Software As We
requests(if that is the manner in which jobs are going to get
scheduled)
and is load-on-startup enabled. Then in the init method fork a thread for
a Runnable Object which continually checks for tasks that need to be run
and processes them as needed.
---
Michael Wentzel
Software Developer
Software
rl-pattern
/servlet/LoginController
/url-pattern
if you really want the servlet path in there.
and then change your ACTION to ../LoginController or
../servlet/LoginController
appropriately.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL
of the trival examples.
All the DTDs are in TOMCAT_HOME/conf/ folder.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
username and
password.
am i right? which parameter have i to change to prevent
tomcat to do this?
Set your session timeout in your web.xml. Or you can set the session
timeout in your jsp as well.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto
...
Anyone else have comments on this?
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
- Punisher of those who cannot spell dumb!
Ultimately, I want to get the thumb of this Image and convert it to a URL.
I want to be able to do this efficiently and use something like the
following syntax.
myImage.getThumb().toURL()
Is this possible?
Yes, but getThumb() must return a subclass of SuperOne.
---
Michael Wentzel
orrelation between this class and the class it extends.
Just a thought...
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
- Punisher of those who cannot spell dumb!
and get more information than just the data,
but of course this costs money.
HTH
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
- Punisher of those who cannot spell dumb!
ws the use of various ODBC
datasources(a perfect example of this is if you were to use... cringe...
MS Access as you datastore).
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
- Punisher of those who cannot spell dumb!
your bean.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
- Punisher of those who cannot spell dumb!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
the
Req. Specs. On the otherhand if you are given the specs and
for some oddball reason you can only use a single server engine
there are work-arounds that can be devised... Some customers
can come up with some pretty screwball requests and specs as
you probably know.
---
Michael Wentzel
Software
be your first step to finding a
solution. The FAQ and list archives should always be checked first
since traffic is so high on the user list that we really need to
reduce the number of duplicate posts.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto
s needed essentially creating
a history object. The advantage of this is you can peek at
the top object and see if it's the same as the current
referer and not push if it is.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
- Punisher of th
ase post to the list in plain text. I am using
a hypermedia enabled mail viewer but there are plenty of
people on the list who are not.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:
nt();
} catch (Exception e)
{
System.out.println(e);
return;
}
}
Just as a side note...In case you hadn't already considered it.
It's kind of a bad practice to use static Strings in this manner.
Consider using a properties file or init-param.
---
Michael Wentzel
Software Develop
Okay, I did that but it is not finding the classes in the
/Web-inf/classes.
What else do I have to do?
Lori Edelen
Web Application Developer
Lattestone.com
Without seeing your config, steps used to achieve problem,
and the exact error it's hard to say what the problem is.
---
Michael
jakarta.apache.org). What do you get when you
type 'ipconfig /all' at a command prompt?
What is your system configuration like?
OS
Any other webservers?
ver of Tomcat
etc...
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
- Punisher
sure what could cause this in W2K but you could always
write a small c/c++ program that would run as a service automatically
and poll the tomcat server periodically and restart the service if
necessary.
What does the error log say?
---
Michael Wentzel
Software Developer
Software As We Th
all getParameter(s) for
each s in the enumeration. This is all in the servlet api.
You can also tokenize the getQueryString() String to do the
same thing but this is a very bad practice since the methods
already exist in the servlet api. getQueryString() is
generally used to pass query strings to new requests.
the just released
a new edition not long ago). While this is an arena for open discussion
we should all also do our own share of personal research on the subject.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
- Punisher of those
maintenance itself on being destroyed(at shutdown).
Another is to create a bean with application scope.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
- Punisher of those who cannot spell dumb(JG)!
-
.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
- Punisher of those who cannot spell dumb(JG)!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email
sted) maps to the
servlet "folder". This is ONLY a mapping. It is there for servlets
which you do not create a specific mapping for in your webapps web.xml file.
Does this make sense?
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
ewise, all webapp jars
should go in
webapps/WEBAPP-NAME/WEB-INF/lib.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
- Punisher of those who cannot
method instead of refetching them?
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
- Punisher of those who cannot spell dumb!
-
To unsubscribe, e-mail: [EMAIL PROTECTED
with param-value.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
- Punisher of those who cannot spell dumb!
-
To unsubscribe, e-mail: [EMAIL PROTECTED
gTokenizer to tokenize the
userAgent String using " /" as the second param in your Tokenizer.
I would put all this in a utility bean/class abstract it out of course.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
- Punisher
to check and make sure they are set correctly.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
- Punisher of those who cannot spell dumb!
-
To unsubscribe, e-mail: [EMAIL
It looks like from your error log and your classpath set at the top of
the log you do not have servlet.jar in your classpath. It should be in
TOMCAT_HOME/lib/.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
- Punisher of those
where whatever is the name of your webapp. 3.2 stopped getting this info
from the conf
xml.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail
in WEB-INF/classes and JSPs
are in the /jsp/ tree. No need to package up anything. WARs are simply for
easily distributing an entire app in one swoop.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED
specific it a very logical place
to put this mechanism IMHO.
Servlet would also work but that would be adding a step in the
processing of every request.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
- Punisher of those who cannot
of the problem so far, so that I can move
forward.
I am getting the following exception:
java.lang.IllegalStateException: Cannot forward after
response has been
committed
at
This is from a forward being used after output has already been
written to the JSPWriter.
---
Michael Wentzel
Software
fixing your problem but maybe at
least it
will be a starting point.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
- Punisher of those who cannot spell dumb!
-
To
and 8080.
You could always telnet to the port and do a manual HTTP GET
and see what comes back.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
- Punisher of those who cannot spell dumb
not the user list. Granted many of the developers
are likely to read user but it shouldn't be assumed.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED
r the response. Try making a
request to the servlet outside of any JSP functionality.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-ma
PFS to me. There's a pretty widely used syntax of using package syntax
for your session objects(page.size).
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED
e dark. I haven't done
anything like this myself.
Definitely an interesting prospect you have going there
PS - Hey look John G. you get to see another of my responses on the
list!!! Lucky you.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.
of the same problems as frontpage... Too many extraneous
tags. In other words their products tend to be for designers and
not programmers. IMHO.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED
the presentation needs to be resolved in jsp
which is somwhat trivial.
This list should be reserved for Tomcat topics and Tomcat related topics
and this is REALLY not a Tomcat topic.
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED
Is it possible to use JSP to dynamically create a calendar?
Of course... You can create a new Calendar object then from that
get the month and year(and current day) then generate an HTML
table using the various methods in Calendar.
---
Michael Wentzel
Software Developer
Software As We Think
Also, if you want to debug the startup of your servlet you can
do whatever you want(i.e. debug output) in your servlets init() method.
This is the method that gets called when a servlet is instantiated.
Utilize it like you would a constructor.
---
Michael Wentzel
Software Developer
Software
How do I include a file in a JSP-file? What tag do I use? I'm using
Tomcat 3.1.
This is independent of what server you're running(it's a jsp spec thingy).
Here's a good reference:
http://java.sun.com/products/jsp/pdf/card11.pdf
---
Michael Wentzel
Software Developer
Software As We Think
besides the one packaged with the jdk
but I'd check freshmeat.net. The viewer will essentially only allow you
to view method headers but that is sufficient for your needs of course.
This doesn't sound like the problem though since there are two contrasting
exceptions.
---
Michael Wentzel
Software
My servlet won't stay loaded. Is there a default time limit for
unused servlets? If so, how can I override it.
Are you sure that's what's happening? Try putting a debug
output line in your servlets init() method to make sure that
it is actually getting reloaded.
---
Michael Wentzel
SUB:Where is mod_jk.so for WIN32?(required for apache-tomcat
connectin in
win 98)
URL address will be most helpful.
There is no mod_jk.so for win32. A .so is a static library
in linux. Should be a dll you're looking for.
---
Michael Wentzel
Software Developer
A HREF="
Try deleting all of your working files from the TOMCAT_HOME/work
directory.
---
Michael Wentzel
Software Developer
A HREF="http://www.aswethink.com"Software As We Think/A
A HREF="mailto:[EMAIL PROTECTED]&
And then parse your properties file.
---
Michael Wentzel
Software Developer
A HREF="http://www.aswethink.com"Software As We Think/A
A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A
-
To unsubscribe, e-ma
be a DB Connection getting dropped due
to a timeout and causing an unhandled exception that kills the servlets
thread?
Post a message to the list if any of this works. I'd be interested in
hearing
if it works. Good Luck.
---
Michael Wentzel
Software Developer
Software As We Think - http
to work, sort of.
I notice that server.xml has lines in it about jdbc drivers -
what's that
about? At the moment they're commented out on my setup.
Works fine for us putting our jar files in our projects
Web-inf/lib/ folder.
---
Michael Wentzel
Software Developer
Software As We Think
preference...;P
---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com
mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
in jsp how i get the date for print in web in the format XX-XX-XX?
Works just like any other java class:
java.util.GregorianCalendar cal= new GregorianCalendar();
java.text.SimpleDateFormat format = new SimpleDateFormat("mm-dd-yy");
String s = format(cal.getTime());
---
Micha
e a little more info... Show the stack trace from the
tomcat log. Is it a compile error, runtime error,?
BTW, instead of:
% out.println(s) %
try using:
%=format(cal.getTime())%
won't get rid of your error but it's cleaner.
---
Michael Wentzel
Software Developer
A HREF="http://ww
friend...).
---
Michael Wentzel
Software Developer
A HREF="http://www.aswethink.com"Software As We Think/A
A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
(and servlets/jsps in general)
doesn't fit into well.
---
Michael Wentzel
Software Developer
A HREF="http://www.aswethink.com"Software As We Think/A
A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A
-
To unsubsc
WentzelSoftware DeveloperA HREF="http://www.aswethink.com"Software As We
Think/AA HREF="mailto:[EMAIL PROTECTED]"Michael
Wentzel/A
made 100 times before. And FYI, for future reference, it is best to search
the archive for an answer to your question before posting it to the list
since
quite a few of the questions you may have probably have already been
answered before.
---
Michael Wentzel
Software Developer
Software As We
is the code
that is raising a exception.
If you can't figure out the problem from this. Post more information
on what exactly is happening and your configuration(settings in
web.xml, tomcat ver, OS, webserver config[stand alone or w/ IIS/Apache,
etc...).
---
Michael Wentzel
Software Developer
workaround is to set the forward in the http header(response.setHeader()).
---
Michael Wentzel
Software Developer
A HREF="http://www.aswethink.com"Software As We Think/A
A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A
-
for these methods in case you don't have access to
them.
I believe what you'd need to do is write a service that was setup as manual
on
your service that did the stop/start of IIS and then write an interface that
allowed you to run that service over the web.
---
Michael Wentzel
Software Developer
A HREF
ecs for VM elopement as given by Tomcat then the VM good.
You mean the VM specs given by Sun right?
---
Michael Wentzel
Software Developer
A HREF="http://www.aswethink.com"Software As We Think/A
A HREF="mailt
101 - 200 of 250 matches
Mail list logo