k.
>
> Any ideas ?
You could try like a previous post in this list discussed
and use a properties file for your parameters instead. Look
at the archive for more info if needed. Basically,
p1
filename.properties
And then parse your properties file.
---
Michael Wentzel
Software De
Try deleting all of your working files from the TOMCAT_HOME/work
directory.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
-
T
> 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
Sof
> 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.
been
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
apj.
---Michael WentzelSoftware Developerhttp://www.aswethink.com">Software As We
Thinkmailto:[EMAIL PROTECTED]">Michael
Wentzel
be cases developed that Tomcat(and servlets/jsps in general)
doesn't fit into well.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
---
friend...).
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional command
; <%
> out.println(s);
>
> %>
>
Give 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 bu
> 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());
---
Mi
ase wait" page.
>
> That's all.
A workaround is to set the forward in the http header(response.setHeader()).
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
ing in doPost() what 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...).
---
or 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
Softw
If IBM follows the
> specs for VM elopement as given by Tomcat then the VM good.
You mean the VM specs given by Sun right?
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
---
e because I do " contains a errorpage pagedirective, so it appears multiple times?
> Shouldn't tomcat be able to handle that? WebLogic does handle this!
Change errorpage to errorPage. Case-sensitivity ain't it a
---
Michael Wentzel
Software Developer
http://www.a
ou're doing if you can't figure it out then.
This just sounds like a resource permissions or locking issue and
since the first servlet will work fine I don't believe it's perms.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We T
nfiguration(OS, tomcat
standalone vs tomcat/apache, webapp configuration, etc...).
PS - Changed subject of thread to more appropriate subject.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMA
RAD/IDE's out there.
Not better, Not worse, just different...
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
-
To unsubsc
> How can I make tomcat to start whe the
machine reboots
What
OS?
---Michael
WentzelSoftware Developerhttp://www.aswethink.com">Software As We
Thinkmailto:[EMAIL PROTECTED]">Michael
Wentzel
. The Sun implementation
is pretty standard to their other vm ports.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
-
To unsubscri
n), I still think that a bean is a better
solution.
IMHO
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
-
To unsubscribe, e-mail: [EMAI
discussed in the past on this list. It would
cut down on traffic and save you time as well if you check
the archives before posting messages because most topics have
at least been mentioned on the list before.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As
fit your needs?
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
Check out the archive for more information about multipart
requests. There have been several threads started. In
short it is possible but haven't heard of anyone getting
it done with jsp's but with servlets instead.
---
Michael Wentzel
Software Developer
http://www.aswethink.com&qu
somewhere else and copy over
the class files then set up a servlet mapping in your web.xml file.
I haven't delt with this directly but I recall a couple of posts a
while back in the list regarding this I believe try checking the
archive.
---
Michael Wentzel
Software Developer
http://www.as
ld be relatively
transparent to all users(might cause a slight bubble of time at server
startup but it wouldn't be too significant and it would only be once).
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software
se in your servlet there
is a call to getWriter() while the jsp page still has a handle on
the JSPWriter.
Another option might be replacing your servlet with a bean but I'm not
sure about that.
---
Michael Wentzel
Software Developer
Software As We Think
http://www.aswethink.com
mailto:[EMAIL
Another way to do this is write a servlet that will make a
request to all jsp's in your webapp at startup. This takes
care of the class name translations and such.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]&quo
Another way is to write a bean and instantiate it with a
appropriate scope(request, page, application, session),
probably application, on your pages:
Don't know if you want the object shared across users. If
so this solution will not work.
---
Michael Wentzel
Software Developer
the request if you handle navigation
by submitting the form.
The only reason this would be programmatically better than the
previous solution is if it can not be assumed that the user
has cookies enabled or if cookies are not even an option per
project specs.
---
Michael Wentzel
Software
unning does not affect
classes. At startup the class definition was loaded into the
jvm's memory block and was instantiated and init() 'ialized and
then waits for requests. Since the instance already exists and
the class def has been loaded the class file itself is really no
longe
nd this on w3c.org if anyone is interested).
The nn digit value is actually in decimal. So for a \n(line feed) I used
to insert a newline in our xml definition and the StringTokenizer
the parsed value(I'm outputting PDF not HTML so \n is meaningless).
---
Michael Wentzel
Software
The Tomcat XML Parser seems to replace ctrl chars(such as \n)
with char strings(ie \n becomes \\n). Anyone know the technique
to specify ctrl chars in xml files? Tried &0x; and got
a SAXException on parsing.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">So
use the servlet will
be stopped unless you are running the servlet on some other
server.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
urrently performs logic very similar to your code snippet.
That's probably a better solution...:) Didn't even think of that...
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
--
ecific information should be stored
anyways.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
-
To unsubscribe, e-mail: [EMAI
ing properties files would allow for changing
of session checking without having to recompile.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
--
over a browser). Just my humble opinion though:)
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
-
To unsubscribe, e-mail: [EMAIL PROT
you don't have multiple copies of servlet.jar sitting
around and check the version of the servlet.jar file you're using.
I echo the sentiment of Wenz Christian regarding HTML messages(plain text
please).
---
Michael Wentzel
Software Developer
http://www.aswethink.com">
eally
too broad of a question for here.
In general, you COULD run tomcat on a VERY minimal 486 box
(running linux) but your performance will be pretty miserable
if you're using for a dev box as well.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We T
common.jsp,
and then include the following on all your pages:
<%@ include file="common.jsp" %>
You can also have multiple @include tags on a single page so you could
split up a file if need be.
---
Michael Wentzel
Software Developer
http://www.asweth
is started. The value for this property is a
startup index for the priority startup queue. The lower the value(can be
negative) the sooner the servlet is loaded.
Hope this makes sense.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMA
le is included on
all pages in our context.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
-
To unsubscribe, e-mail: [EMAIL PROTECTE
>
> Thanks but how could it work when clicking on netscape reload button ?
>
I haven't tried this but why not the below?
response.sendRedirect(response.encodeURL(address));
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMA
nterface
of the first firewall that you do not want to allow direct
access to some resource below it(in which case I would probably
put that subnet outside the firewall).
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Thin
asy way to test this is create two jars(a.jar and b.jar) with the
same class but the two classes differ in a System.out.println call and
then create an instance of that class and see which println you get.
Please correct me if I'm wrong anyone?
---
Michael Wentzel
Software Developer
htt
please email me directly(don't want to clutter up the list)
at mailto:[EMAIL PROTECTED]">ME and
let me know so I can try to track down the problem further.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTEC
Take a look at jspc in TOMCAT_HOME/bin/.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
-
To unsubscribe, e-mail: [EMAI
I haven't seen the bookstore app but it sounds to me like
you don't have your servlet context setup correctly and tomcat
can't find the servlet class for /bookstore/catalog. Have
you looked into this yet?
---
Michael Wentzel
Software Developer
http://www.aswethink.com"&
s and see if that works.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
essionDoohicky(param1);
you use:
this can be thought of as a macro that at compile time gets
converted to the first line.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAI
(s);
// ...
operate on val[] ...
}
---Michael WentzelSoftware Developerhttp://www.aswethink.com">Software As We
Thinkmailto:[EMAIL PROTECTED]">Michael
Wentzel
from there.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
own Realm object (that extends BaseInterceptor) for
> authentication/authorization purposes. Could something be done in
> there?
One solution to to check the referring document and see if it's a valid
one otherwise go to default for user determined from database.
---
Michael Wentz
prewrite to
the output in any manner that I've been able to gather yet.
What I've been doing so far is generating a file and then
forwarding to that file in my servlet. The only problem
with this solution is it requires maintenance of these files
where the OS would normally take care of
o HttpServlet off the
top of my head but I'll take a look through my favorites and see if I find
anything.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
---
Yes.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
even improves greatly on the "Have to restart to use new
settings" junk that you used to get when making changes
to stuff like TCP/IP settings.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED
ed to be able to be found in the CLASSPATH.
The CLASSPATH environ var tells the JVM where to look for classes that it
needs.
Hope this straightens everything out for you...
---
Michael Wentzel
Software Developer
http://www.aswethink.co
I think it's actually better to either set your environ variables
it the batch files. This way you don't have to deal with rebooting
you just restart the tomcat process. It's all a matter of
preferences though...
---
Michael Wentzel
Software Developer
http://www.aswethink.com&
you are using for the servlet in your web.xml
if you do already have this set up.
I don't believe this is a problem with TOMCAT finding the lib dir
but more like TOMCAT not being told where the Servlet is located.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">S
be instantiated if one does not already exist. This
allows for more specific user checking in that you can check
if there is a valid session as well as if there is a valid
user stored in the session.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
ma
o:[EMAIL PROTECTED]">Michael
Wentzel
hod was causing the problem.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Another source of the problem could be the jdbc drivers you
are using.
What database are you using?
What jdbc drivers are you using?
I don't think this is the problem but figured it's worth a go.
---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software
file is in the Web-inf/classes/reporting path
as it should be but it's still not loading.
Any ideas on what's wrong? Is this the correct form for
the load-on-startup tag in web.xml? What does the integer
represent(classid...)?
---
Michael Wentzel
Software Developer
Software A
Does anything at all get inserted into the database or is the query
simply ignored/Exception thrown/...? If you post the exact results
of executing your query and a snippet of code used to do so it would
help diagnose the problem.
---
Michael Wentzel
Software Developer
Software As We Think
suggest you post again.
As a starting point for your inserts make sure your database
is configured to use an appropriate character set as we as
if your SQL is formed correctly.
---
Michael Wentzel
Software Developer
Software As We Think
Put your class
file in ./Web-inf/classes/ and add the following to you ./Web-inf/web.xml
file:
ABC
abc
If you want to
hide the fact that it's a servlet you can add the following to your
web.xml
ABC
acb.htm
Michael Wentzel
Software Developer
Software As We
the script files in TOMCAT_HOME/bin/ setup all of your
environment params.
> where abouts do you set up the Java Home variable
>
--
Michael Wentzel
Software Developer
Software As We Think
-
To unsubscribe, e-mail:
I am having a problem with an automated process in a
servlet taking too long and the browser times out.
Anyone know of a way to set the timeout limit in headers?
i.e. response.setHeader("TIMEOUT", "10"); ...
---
Michael Wentzel
Software Developer
That's a good thing to know about the higher versions of IE though.
Thanks again.
---
Michael Wentzel 4939 Lower Roswell Road
Software Developer Suite 201B
Software As We ThinkMarietta, GA 30068
-
To unsu
:
pdf
application/pdf
I also set the Response content type to application/pdf
before anything gets written to the OutputStream.
Any ideas on what I might be doing wrong? Thanks.
---
Michael Wentzel 4939 Lower Roswell Road
Software
201 - 273 of 273 matches
Mail list logo