Re: [5] Proposal: webapp startup

2002-08-20 Thread Alex Chaffee / Purple Technology


On Tue, Aug 20, 2002 at 09:59:11AM -0700, [EMAIL PROTECTED] wrote:
> There are several possible use cases, and I think we should try to
> provide options to support each one.

Agreed.

> Regardless of the startup timing, in all cases no request will
> be served from an webapp until all initialization is done, including
> load on startup servlets. There are 2 options here:
>  1. Wait. The request will be delayed until the initialization completes.
> The user will just see a slow request.
>  2. 503. A response page with 'application is temporarily unavilable' or
>   'starting' or 'refreshing' - eventually with a meta reload.

Options are good, but I vote for "wait" to be the default behavior.
(Supporting use cases are below.)

There is a third option, by the way:

3. Wait with timeout.  The request is queued, but if it takes longer
than a specified time to process (say, 20 seconds), then it returns a
503.

The third case actually subsumes the first two, since case 1 is
enabled by setting the timeout very high, and case 2 is enabled by
setting it very low (like 0).  So I think this might be the best
design choice: only one algorithm to implement, only one setting to
configure.

If I wanted to make a patch proposal, what source file(s) should I
look at?  It's been a while...

---

Why I think Wait should be the default:

Use cases:

* Human UI: most naive users will tolerate a pause (of up to, say, 30
seconds) much better than they will understand that the proper
response to a 503 is to wait a moment and then click reload.  Instead,
they will think "this site is down" and go to your competitor's :-)

* Scripts: my test scripts launch Tomcat, then send a bunch of test
requests and verify the results.  A 503 will cause the tests to fail
(unless I write special code to handle that case).  

Behavior seems to be mixed now -- there's a window where requests will
fail, following which they will wait.  There's also a condition where
a request at just the wrong time will corrupt the webapp, causing all
future requests to fail, but since I haven't been able to reproduce it
I haven't reported it.


-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/

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




Re: Modified "stop"-script for Linux

2002-08-19 Thread Alex Chaffee / Purple Technology

Thanks!  I added it to the recently-posted Bug 11754.  You may want to
add yourself as a CC on this to track its progress.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11754

 - A

On Mon, Aug 19, 2002 at 09:57:31AM +0200, Golden Planet Support wrote:
> Hello All
> 
> I have noticed that the /etc/init.d/tomcat4 script still contains 
> what is described as an "Ugly hack" - a short two second pause when 
> restarting the service instead of something that confirms that all 
> threads have been shut down.
> 
> A while ago I modified my own script to conatain the following lines -
>  perhaps they could be of some use for others, I don't know. I am by 
> no means an experienced coder so please bear with me if this is not 
> the most elegant solution - it just works for me... ;-)
> 
> stop() {
> echo -n "Stopping $TOMCAT_PROG: "
> if [ -x /etc/rc.d/init.d/functions ]; then
> daemon --user $TOMCAT_USER $TOMCAT_SCRIPT stop
> else
> su - $TOMCAT_USER -c "$TOMCAT_SCRIPT stop"
> fi
> RETVAL=$?
> echo
> 
> echo 'Waiting for java threads to finish...'
> threads=1
> until [ $threads = '0' ]
>   do
>   ps -aux | grep $TOMCAT_USER -c > /tmp/threads
>   read threads < /tmp/threads
> done
> rm -f /tmp/threads
> echo 'Java threads cleaned up - shutdown complete.'
> 
> [ $RETVAL = 0 ] && rm -f /var/lock/subsys/tomcat4 
> /var/run/tomcat4.pid
> }
> 
> The above works on a x86 RedHat 7.1 - I don't know if things may work 
> differently on other systems.
> 
> --
> Med venlig hilsen / Best regards
> 
> Anders C. Madsen
> 
> Golden Planet  Tel.: +45 7020 9594
> Dalbygade 40   Fax.: +45 7020 9592
> DK-6000  Kolding   http://www.goldenplanet.dk
> --
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 

-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/

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




[FAQ] jGuru FAQ Update

2002-07-12 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


 JGURU PREMIUM SERVICE!

 jGuru has invested over 1 million dollars in our 6500+ carefully
 edited FAQ entries.  Become a premium member now and help us to
 continue providing high quality content.

 Get the World's BEST JAVA SEARCH ENGINE, JAVADOC QUICK LINKS, FASTER
 PAGE RENDERING, and NO ADS. Just 9.95 a month or subscribe for a year
 at 99.95 and get 12 months for the price of 10 and a FREE XL JGURU
 T-SHIRT!  Sign up now and try out the premium service for two weeks at
 no charge!

http://www.jguru.com/misc/page.jsp?fsm=premiumreg&node=blurb&src=email


Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

i have placed the class file in the WEB-INF/classes in the project directory and the 
whne i run my aplication 
this is what comes...


org.apache.jasper.JasperException: Unable to compile class for JSPNote: 
sun.tools.javac.Main has been deprecated.


An error occurred at line: 2 in the jsp file: /techSupport.jsp

Generated servlet error:
C:\Program Files\Apache Tomcat 
4.0\work\localhost\JSPTechSupport\techSupport$jsp.java:60: Class 
org.apache.jsp.TechSupportBean not found.
TechSupportBean techSupportBean = null;
^


An error occurred at line: 2 in the jsp file: /techSupport.jsp

Generated servlet error:
C:\Program Files\Apache Tomcat 
4.0\work\localhost\JSPTechSupport\techSupport$jsp.java:63: Class 
org.apache.jsp.TechSupportBean not found.
techSupportBean= (TechSupportBean)
  ^

An error occurred at line: 2 in the jsp file: /techSupport.jsp

Generated servlet error:
C:\Program Files\Apache Tomcat 
4.0\work\localhost\JSPTechSupport\techSupport$jsp.java:68: Class 
org.apache.jsp.TechSupportBean not found.
techSupportBean = (TechSupportBean) 
java.beans.Beans.instantiate(this.getClass().getClassLoader(), "TechSupportBean");
   ^


http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=939638

Does anybody know of any available classes that can create word documents on the fly? 
(or RTF format)
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=939635

I'm running into a problem when I encounter a coding error in my jsp file, go and fix 
the error, save it, and try to access the page with my changes. The server (Tomcat 
4.0) persists in giving me the old version of the file. 
I tried 1) shutting down and restarting Catalina, then 2) shutting down, deleting the 
.java file for the page from work\myWebApp, and restarting. I'm still getting errors 
related to code that no longer exists in the page. 
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=939634


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2002-06-07 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


 JGURU PREMIUM SERVICE!

 How often has jGuru helped you solve a problem?  Contribute to the
 Java community and keep jGuru the best place to get answers by
 becoming a premium member.

 Get the World's BEST JAVA SEARCH ENGINE, FASTER PAGE RENDERING, and
 NO ADS. Just 4.95 a month or subscribe for a year at 49.95 and get
 12 months for the price of 10 and a FREE XL JGURU T-SHIRT!  Sign up
 now and try out the premium service for two weeks at no charge!

http://www.jguru.com/misc/page.jsp?fsm=premiumreg&node=blurb&src=email


Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

Is the HTTP Session maintained even when the network connection goes down? Can the 
same browser instance resume a previous session after re-establishing the network 
connection?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=906310

Is the HTTP Session maintained even when the network connection goes down? Can the 
same browser instance resume a previous session after re-establishing the network 
connection?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=906309

I am using Resin2.0. In our Intranet, all the user requests are directed to a servlet 
which does the authentication and redirects to the respective jsp files. Users are not 
supposed to access the jsp files directly. How to prevent, if a user access the jsp 
file directly by typing the url...This is possible after establishing the session...Is 
there any way to check this in the resin configuration, so that automatically 
redirecting to the servletIn resin.conf some mappings can be done for servlets..Is 
it possible for jsp..?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=906307


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2002-05-24 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


 JGURU PREMIUM SERVICE!

 How often has jGuru helped you solve a problem?  Contribute to the
 Java community and keep jGuru the best place to get answers by
 becoming a premium member.

 Get the World's BEST JAVA SEARCH ENGINE, FASTER PAGE RENDERING, and
 NO ADS. Just 4.95 a month or subscribe for a year at 49.95 and get
 12 months for the price of 10 and a FREE XL JGURU T-SHIRT!  Sign up
 now and try out the premium service for two weeks at no charge!

http://www.jguru.com/misc/page.jsp?fsm=premiumreg&node=blurb&src=email


Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

What are the different ways of declaring a tag library to use from a JSP?  Which 
methods are compatible from any JSP container?
What are the different ways of declaring a tag library to use from a JSP?
Which methods are compatible from any JSP container?
Assume the following directory structure of a WAR deployed under Tomcat 4.0:

Files in / directory:
test.jsp

Files in /WEB-INF directory:
web.xml
ha.tld

Files in /WEB-INF/lib directory:
ha.jar

Files in ha.jar:
/meta-inf/taglib.jar
class files for tag handler(s)
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=889470


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2002-05-17 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


 JGURU PREMIUM SERVICE!

 How often has jGuru helped you solve a problem?  Contribute to the
 Java community and keep jGuru the best place to get answers by
 becoming a premium member.

 Get the World's BEST JAVA SEARCH ENGINE, FASTER PAGE RENDERING, and
 NO ADS. Just 4.95 a month or subscribe for a year at 49.95 and get
 12 months for the price of 10 and a FREE XL JGURU T-SHIRT!  Sign up
 now and try out the premium service for two weeks at no charge!

http://www.jguru.com/misc/page.jsp?fsm=premiumreg&node=blurb&src=email


Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.


++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

Problem with Tomcat (4 and 3.3.x) with Cocoon 1.8.2: Logicsheet util.xsl not found
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=875317

Tomcat4 and AJP12 Connector
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=875216

Configuring cgi-bin virtual path in a stand alone Tomcat 4 installation
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=875215


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2002-05-03 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


 JGURU LAUNCHES PREMIUM SERVICES!
 For as little as 0.14 a day, you can look at
 naughty pictures on the net...just not at jGuru.
 You can, however, help keep jGuru the best place
 to get Java answers by becoming a premium member!

 Help support jGuru:
 http://www.jguru.com/misc/page.jsp?fsm=premiumreg&node=blurb&src=email


Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.


++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

Tomcat 4.0.1 startup memory fault on SUSe 7.1
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=863276

Does Tomcat 4 (Catalina) run with JDK 1.4?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=862243


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2002-04-27 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


 JGURU LAUNCHES PREMIUM SERVICES!
 For as little as 0.14 a day, you can look at
 naughty pictures on the net...just not at jGuru.
 You can, however, help keep jGuru the best place
 to get Java answers by becoming a premium member!

 Help support jGuru:
 http://www.jguru.com/misc/page.jsp?fsm=premiumreg&node=blurb&src=email


Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.


++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

How do I configure Tomcat 4.0 with the Apache 2.0 web server on a Windows 2000 server?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=853905


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2002-04-19 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


 JGURU LAUNCHES PREMIUM SERVICES!
 For as little as 0.14 a day, you can look at
 naughty pictures on the net...just not at jGuru.
 You can, however, help keep jGuru the best place
 to get Java answers by becoming a premium member!

 Help support jGuru:
 http://www.jguru.com/misc/page.jsp?fsm=premiumreg&node=blurb&src=email


Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.


++ Servlets FAQ: http://www.jguru.com/faq/Servlets

Why request.getRemoteUser() returns NULL ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=842151

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

Can I update the web.xml (of my context) using my servlet?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=845609

Why request.getRemoteUser() returns NULL ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=842151


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2002-04-05 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


 JGURU LAUNCHES PREMIUM SERVICES!
 For as little as 0.14 a day, you can look at
 naughty pictures on the net...just not at jGuru.
 You can, however, help keep jGuru the best place
 to get Java answers by becoming a premium member!

 Help support jGuru:
 http://www.jguru.com/misc/page.jsp?fsm=premiumreg&node=blurb&src=email


Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

I have a Jsp page that accepts some parameters from the user. Now if the user clicks 
on the Submit button in rapid succession, multiple entries are inserted in DB, though 
I am checking for duplicate entries.

This works fine if the user enters the same data after some time. It gives appropriate 
message saying "Duplicate record".

Please use html tags to format code blocks.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=820070

I'm a bit confused with the term bean in JSP eg. the tag 
>From what I understand, the term bean used here is referring to a simple java object.

When I look through the JavaBean resources, their definition of bean seemed a bit 
different.

Any comment ?

Thank u ...
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=820069

Need some assistance on this one.  I am very new to managing a java environment and a 
production application appears to be having a major memory leak.  Am currently using 
JDK 1.3 on a Sun box running Sol 2.6, with 2GB of RAm, and using Orion 1.5.1.  I have 
-Xmx set to 756MB.  When Orion is started the heap immediately grabs 512MB, then over 
the next 6 - 8 hours the heap slowly consumes all but 30 or so MB of RAM on the box, 
totally disregarding the -Xmx setting.  Additionally, if we run a bootstrap of our a 
client during this time memory consumption is accelerated drastically.  Any insights 
would be greatly appreciated.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=820066

Can any one post a - code snippet - which can create a .txt file on the application 
server - using the text from a "textArea" on a  JSP page.
(Basically the user types some text on the JSP on a client and the text should be 
saved to a txt-file on ap-server.)
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=820007

What is the easiest way to convert the output of a JSP to PDF?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=820005


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2002-03-29 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

Can my JSP page access initalization parameters from the servlet context?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=817005

I am calling my EJB method "transfer(request,destination)" from inside JSP 
page.

"request"is a HttpServletRequest object
"destiation" is a string

it is throwing following exceptions.

java.rmi.MarshalException: failed to marshal public 
abstract void project.upload.Copy.transf
er(javax.servlet.http.HttpServletRequest,java.lang.String) throws 
java.rmi.RemoteException,j
ava.io.IOException; 
nested exception is: java.io.NotSerializableException: 
weblogic.servlet.internal.ServletRequestImpl
java.io.NotSerializableException: 
weblogic.servlet.internal.ServletRequestImpl



actually i am trying to uplaod files and in JSP i use  tag to 
select a file inside a form.the logic is this that request object also have the file 
stream and using
 
ServletInputStream in = request.getInputStream(); 

i can get the file stream and then save this stream in a new file


Why it is giving exception and any other way to upload files?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=816605

If a directory does not have one of the welcome-file I want to redirect to a page, not 
show the subdirectories and files.

How could I do it?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=816600

Using JSP with Tomcat 4, I've noticed that using the response.sendRedirect() method, 
or jsp:forward tag to another directory on the same server is loosing all the session 
variables.

Does anyone know the reason for this and a work around?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=816599

I'm using jboss(2.4.1) +tomcat(3.2.3).
I need to share the same directory structure of jsp's for different applications (I 
have deployed the jsp's as they are not in a war). Also I need to use the same 
libraries for all the applications. So my questions are:  Does a declaration in 
server.xml like this:
 
 
means really different applications?
2. Is there a way, if the above is true, to have different web.xml for each of 
them, I mean to make Tomcat to look for web.xml elsewhere WEB-INF for 
any of the app's?
3. Another issue is how to share the same libraries, (without affecting the .bat files 
of jboss/tomcat) between different applications that don't have the same docbase? Is 
there a way to instruct Tomcat to search for application libraries elsewhere 
WEB-INF/lib?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=816583

Is there a way to run a JSP that will give me the current classpath used by Tomcat?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=816577

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

Tomcat does "unescape" the underscore (_) char when it is part of a 
war file. Why? Is there any way to disable this?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=815865

How can I ensure that Tomcat compiles servlets with debugging info included (-g option 
of the javac compiler)?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=809402


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2002-03-22 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

I have two webapps which I would like to pass information between.

I would also like to pass all the session information between the webapps.

An example would be helpful.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=800059



I have to deploy a war file. 
the structure is
/contextroot
  jsp
test.jsp

  web-inf
classes
  util
Connect.class
connect.properties
 
The Connect class has to load the properties file. 
howeever i get error reading the file using 
getClass().getResourceAsStream("connect.properties");

I am deploying it in tomcat.
It reads the file if i put it in /bin folder ..
how do i avoid this ?? 

Can u please post a code example


http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=800058



I have to deploy a war file. 
the structure is
/contextroot
  jsp
test.jsp

  web-inf
classes
  util
Connect.class
connect.properties
 
The Connect class has to load the properties file. 
howeever i get error reading the file using 
getClass().getResourceAsStream("connect.properties");

I am deploying it in tomcat.
It reads the file if i put it in /bin folder ..
how do i avoid this ?? 

Can u please post a code example


http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=800057

I have taken parameters of a form from a jsp. I need to pass that parameters to 
another jsp. How can I do it without writing that manually using string like 
another.jsp?name=value. Since there are many paramters, passing through URL is 
inconvenient. Is there a way to do it ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=800056

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

"Out of environment space" when running Tomcat on Windows 98.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=803991


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2002-03-15 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

In one of my applications i am using jsp for all reporting. But the problem here is 
that the window.print() command will print everything on screen. 
Is it possible to print only a part of the scrren, say the data displayed in a table?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=789539


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2002-03-08 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


++ Servlets FAQ: http://www.jguru.com/faq/Servlets

Is possible to subdir webapps directory?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=779619

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

Tomcat 4.0.x with AOLserver 3.4.2
Does anyone have any information on how to integrate Tomcat 4.0.x with AOLserver 3.4.2?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=780567

Is possible to subdir webapps directory?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=779619


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2002-03-01 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

Does anyone know the pro's or con's between developing a site for 2k users in either 
JSP or ColdFusion?  What is faster development done in?  How well does JSP scale when 
compared to coldfusion?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=777501

Are Page scoped variables available across multiple requests to the same page?
If this is not the case, what is the difference between request scope and page scope 
for JSP? Also, is this data available even when something like a query string is 
changed?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=777497

How can I retrieve an expired session?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=777496

I have a JSP that uses frames inside frames. How can say to the browser to open the 
Error Page in the main frame (the topmost frame)?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=777478

Is it possible to call a custom tag from another custom tag?
If so how?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=777473

I have downloaded the Tomcat 3.3a. After I start up the server.. it puts out this 
strange message: embeded Tomcat: exception initializing ContextManager. What do I have 
to do to start my Server without any error messages?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=775521

We have multiple RquestDspacter.forward() in a single JSP file. This JSP runs OK with 
JRun 3.0 but gives Error 500 (response has already been commited) with Web Sphere 3.4. 
Is there any restriction in WebSphere that we can have only 1 
RequestDispatcher.forward() call in a single JSP?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=775349

Does Buffer size affects the performance in any way?
I am using buffer size as 100kb.will it in anyway affect the performance?
If yes what is the optimum size that can be used?
If no why?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=775339

Is it possible to press a button in one frame and caused a form in another frame to be 
submitted? 
I have a scrollable jsp in one frame and another frame with just buttons. 
I want to be able to press a button and sumbit a form from the jsp page. Thanks for 
any replies.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=775280

I am aware of the technical differences between response.sendRedirect() and 
 i.e. that the first one sends an instruction to the browser to 
request the specified page, and the second simply sends the specified page.However, 
can anyone tell me why one should be used instead of the other?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=775275

   How to pass parameters to a bean constructor. I can create a bean 
constructor with parameters. but bow do I pass values to the bean from a JSP page on 
creation..Is there any way to do this..

   Also, is there any way to access bean properties which are set using 
jsp:setProperty, from another bean. I am able to access properties which are 
initialized in the bean itself.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=775216

How can I find out the name of the machine on which the JSP is executing?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=775213

I'm kind of new to JSP, and am working on putting together a framework wherein I 
include common elements of a page (title bar, menu, etc.) in a single WAR file and 
then attach those elements to my content pages that belong to another WAR file.

The problem I'm running into is that my include statements in my content pages 
don't work when I try to include items from the different WAR.  I can bring the 
included pages up, but can't get a JSP to include them.

Example:

In shared.war, I have the file /htmlcommon/header.jsp. In search.war, I have the document /search.jsp In search.jsp, I have the following include statement: However, when I load the page, the header doesn't come in and I get an error 404 - not found. I'd appreciate any thoughts on this. Thanks much Michael Lundin [EMAIL PROTECTED] http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=773526 Using Jigsaw, W3C's Server, I have to find out how many sessions are there at a given time. Any help will be greatly appreciated http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=773521 In my jsp page I have 2 combo boxes--data of 2nd comboBox is dependent on the 1st. The data for both is previously obtained from a database. http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EI

[FAQ] jGuru FAQ Update

2002-02-15 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


++ Servlets FAQ: http://www.jguru.com/faq/Servlets

How can a servlet refresh automatically if some new data has entered the database?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=759758

How can I send user authentication information while making URLConnection?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=759689

Can I have some simple code for my own connection pooling class?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=759672

Using WebLogic 6.1, why can't I load a servlet from a JAR file in my /WEB-INF/lib 
directory?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=759427

What's the initial user name and password for Jakarta Tomcat 4's admin tool?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=757542

Why can't I upload image files using com.oreilly.servlet.multipart.FilePart?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=757536

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

What's the initial user name and password for Jakarta Tomcat 4's admin tool?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=757542

Why can't I upload image files using com.oreilly.servlet.multipart.FilePart?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=757536

Tomcat 4.0.x "Class org.apache.jsp.{Class} not found.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=753900

Fatal error: The encoding "Cp1252" is not supported.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=753194


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2002-02-08 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

How to close database connection explicitly when session is ended?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=744074

++ Servlets FAQ: http://www.jguru.com/faq/Servlets

How can I unit test my servlets?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=744086

How to get url of current request from HttpServletRequest?
for example "http://site/index.jsp?id=1";
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=744079

How to close database connection explicitly when session is ended?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=744074

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

Automatically redirect on SSL port?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=748030

How can I unit test my servlets?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=744086


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2002-02-01 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

I have several jsp pages that are referenced in an SSL server, and non-SSL server. To 
avoid the "this document contains some unencrypted data" error, I want to have it look 
at the HTTPS variable apache sets and see if its in secure mode.
 So, if $HTTPS == on, I want to write:
img src="https://content.domain/images/foo.jpg";else I want to write: img 
src="http://content.domain/images/foo.jpg

How do I do this?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=741813

How can I make a JSP page implement the SingleThreadedModel interface?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=741113

Using JSP I can use implicit object exception when my JSP page is declared 
with <%@ page isErrorPage="true" %> directive. But how to get this reference 
programmatically, for example with a servlet ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=740991

I have a framed JSP application and would like to make it so pages meant to be 
viewed as a frame can only be viewed as a frame.

So, if they type the direct URL to that frame, I would like that page to check to 
see what frame it is in, and if it is in, say, _top, then redirect to the main 
(framed) page.

Is this possible?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=740988

I want to ship my JSP-based application to my customers by bundling it with Tomcat. 
Is Jakarta Tomcat 4.0 freeware?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=740986

If we declare a variable, say int i=3 in jsp file, then in what method does this 
variable reside? Is it within service() or the init() method? If this resides in 
service(), how can I make to be in init() and vice versa?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=739377

I want to create a Error Page and  save the StackTrace within a String type 
variable.

My code is:


<%@ page import="java.lang.Exception,java.io.*"%>
<%@ page isErrorPage="true" %>


Untitled


Fehler
Fehler: <%=exception.getMessage()%>
<% PrintWriter writer = new PrintWriter(out);%>
Stack: <% exception.printStackTrace(writer);%>
getLocalizedMessage = <%=exception.getLocalizedMessage()%>
toString = <%=exception.toString()%>




But here, the StackTrace is printed directly within the Page. How do I save it in a 
String variable? I want to send myself an automatic report if there is any error.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=739375

Hello! I am trying to include a JSP page that contains commonly used html/java 
code, into another JSP page multiple times using the jsp include directive.
This causes the parser in Websphere Appl. Server 3.5.3 to display an error page 
that says org.apache.jasper.compiler.ParseException: Seen file include.jsp 
already, maybe this is a recursive include?!
However, when developing and testing the JSP page in Visual Age's 4.0 Websphere 
Test Environment, everything works fineWhy?
If Websphere Application Server is right about not allowing me to include the same 
JSP page several times, is there some other way perform this task?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=739372

I need to allow users to upload files and pictures.

When they upload pictures, I need to create thumbnail for them on the fly.

Is there any taglibs or java source to do this from JSP or servlets?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=735673

I need to allow users to upload files and pictures.

When they upload pictures, I need to create thumbnail for them on the fly.

Is there any taglibs or java source to do this from JSP or servlets?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=735672

My Jsp file need to forward a request to another servlet which is located in another 
Web Application on another machine. How can I do that? If I also want to add more 
parameters to the original request from the jsp file, what should I do?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=735653

++ Servlets FAQ: http://www.jguru.com/faq/Servlets

Using JSP I can use implicit object exception when my JSP page is declared 
with <%@ page isErrorPage="true" %> directive. But how to get this reference 
programmatically, for example with a servlet ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=740991

Why do I get the error
org.xml.sax.SAXParseException : Element type "web-app" must be declared
when starting my web application? It has a web-app element already!
http://www.jg

[FAQ] jGuru FAQ Update

2002-01-25 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

How can I get the complete URL address
(like "www.jguru.com" (with or without "http://";)) from a HttpServletRequest?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=734942

Is there any justification in creating a cache that maintains values pulled from a 
given property file so that your app does not have to continually getProperty() on the 
same property over and over again?

I suppose the key question is: How much of a performance hit is it to access a 
property file as opposed to maintaining a cache (HashMap) of key / value pairs?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=733887

Can someone explain to me what this code does and what situations it needs to used?




http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=731186

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

Reverse Proxying and Redirection issue.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=734227


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2002-01-18 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

If I have a URL (GET) param and hidden (POST) field in a form with the same name, how 
can I get and differenciate them?
I have the following code:


  
I need to differenciate between the id in the URL parameter and the id in the form. I know you can use getParameterValues() to get multiple values but I need to know which one belongs to the URL or form because sometimes I will get only one of them. Is it possible? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=724996 I understand that a JSP session cookie is not persistent. Once all browser instances are closed, the session cookie is gone. Is there a way to make the session cookie persistent like a regular cookie? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=724993 ++ Servlets FAQ: http://www.jguru.com/faq/Servlets Since session.getValue("name") has been deprecated, what method do I call instead? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=724725 What is the difference between request.getAttribute() and request.getParameter()? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=724724 How can I store international / Unicode characters into a cookie? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=722908 How can I access one servlet method from some other servlet in same context? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=722714 ++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat "Unable to load class" message under Tomcat 3. http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=726062 Is there a way to save files to a directory which will survive upgrades to the web application? http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=726038 Tomcat 4 and XML Parsers. http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=720733 You can shut email notification off at the FAQ home page(s) or: http://www.jguru.com/guru/notifyprefs.jsp -- To unsubscribe, e-mail: For additional commands, e-mail:

[FAQ] jGuru FAQ Update

2002-01-11 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


++ Servlets FAQ: http://www.jguru.com/faq/Servlets

How do I pass some servlet variable to javascript?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=715231

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

Cannot run Tomcat 4.0.1 under Linux (Suse 7.2)... getting Segmentation Fault.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=715375


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2002-01-04 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

Can I have Perl syntax regular expressions within my JSP pages?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=705125

Can I make use of scripting languages like Tcl, Perl, Python, Rexx, etc. within my JSP 
pages?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=705120

Is it true that servlet containers service each request by creating a new thread? If 
that is true, how does a container handle a sudden dramatic surge  in incoming 
requests without significant performance degradation?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=705119

Where can I find a JSP tag library for sending mail from JSP pages via the JavaMail 
API?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=705110

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

Where should I copy the class file of applet in Tomcat? Where should I copy respective 
HTML file?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=705530


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2001-12-28 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

What is JSP Standard Tag Library (JSTL)?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=704343

How can I protect my JSP resources using security realms under Tomcat 4?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=704339

Can Tag Libraries be used to
internationalize an application?

If yes, then what are the advantages 
and disadvantages?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=704229

I have included some audio files in a jsp page. The audio files are in .rm extension. 
When I click on the hyperlink for the audio file in the browser, instead of playing  
the audio, it shows some junk data in the web page. How do I remedy this?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=702573

How can I distinguish b/w 2 buttons which are submitting the same form from within my 
JSP page?
I'd like to solve this problem without using JavaScript.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=702133

++ Servlets FAQ: http://www.jguru.com/faq/Servlets

Is it possible to make calls to C or C++ methods from a servlet?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=594580

How to check for the validation of a Unix login username and password from Java?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=594578

Our servlet program needs to read an image file (*.jpg or gif) and create thumnail 
files. Is there any program available I can use ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=594565

I read the section on Filters and the spec seems to be silent on some issues...
Can you clarify?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=594562

How do I set a System Property and access it from a Servlet?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=594561

Is it better to have lots of methods to my servlet, or to keep the code inside the 
doGet or doPost method?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=594560

When two or more people are using my servlet, why does everyone see the data for the 
person who has logged in latest?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=594540

How do i find out whether a request to a particular servlet is coming from another 
servlet or, if it is coming from a user request?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=594117


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2001-12-21 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

Can I make a jsp custom tag to return a value in to a jsp variable.
I want a jsp custom tag to evaluate some condition based on the parameters I pass and 
return a boolean to the jsp page in a java variable (type boolean). Can anybody 
give some sample of the code using similar functionality. Can we some how use the 
get methods in the tagHandler in our jsp to retrieve the values?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=593533

Is it possible to invoke customtags onEvents like onClick?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=592466

Here is what I have:

1. My application is under /opt/tomcat/webapps/myApp

2. My jsp file is : /opt/tomcat/webapps/myApp/web/test.jsp

   It contains;

  . . .

<%  

String configFile=getInitParameter("configFile");   

System.out.println("configFIle="+configFile);   

%>

3. My web.xml is: /opt/tomcat/webapps/myApp/WEB-INF/web.xml

It contains:

  
   
   
  test 

  /web/test.jsp
  
  

configFile
   
TOTO   

     

      
  
   
  
   test  
  
   /web/test.jsp   

    
  


What am I doing wrong?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=592461

I'm working on the JSP - Tomcat model, I'm using JSPC to pre-compile my JSPs, Is there 
a way to prevent any new (non pre-compiled) JSPs from being executed (compiled) in 
tomcat? ie. I do not want any new JSPs , which have not being pre-compiled to be 
executed via tomcat on the browser, Is there any property/configuration file which I 
need to change in Tomcat??
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=592460

Why use JSP? All that we can do with scriptlets we can do with JavaScript as well, I 
think.
Can somebody explain?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=590882

We are building a series of JSP pages, each of which is responsible for producing a 
different area of the screen.

Any given screen that the end user sees, therefore, is made up of a number of 
"blocks", each of which has been generated by a single JSP. The top level JSP calls in 
the "blocks" using a jsp:include.

We are trying to use the JSP errorPage directive on every JSP to display an error to 
the user if something goes wrong with any of the "blocks", but are finding that we end 
up with the error page only taking up part of the screen (for the block which had an 
error), whereas we would like the whole screen to be filled up by the errorPage. 
In other words - if something goes wrong with any of the blocks that comprise a screen 
- we would like to display nothing but the error page.

What is the best way to do this ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=590880

++ Servlets FAQ: http://www.jguru.com/faq/Servlets

HttpUtils.parseQueryString is deprecated. What should we use instead ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=587251

In some web.xml I find DOCTYPE reference of "web-app_2_2.dtd",(in Weblogic 5.1 
example) in others, of "web-app_2.2.dtd" (in java pet store).  What is the difference 
between the two DTDs?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=586710

What are the steps that I need to follow to deploy my servlet in WebLogic 6.1?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=586701

How can I suppress the parameters from displaying in the URL? For instance, if I pass 
in a password, I don't want it to show up in the address bar.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=586493

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

Why is Tomcat 4.0 so slow when connecting via a URLConnection?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=588390


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To

[FAQ] jGuru FAQ Update

2001-12-14 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

Why is it strongly recommended that any JavaBean used within a JSP page belong to a 
named package?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=585610


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2001-11-30 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

My JSP application runs
fine sometimes, but on other instances, when i try to refresh the page, the server 
outputs only a  part of the page. In the Tomcat Console, I see
"IOException, Connection reset by peer". If I keep refreshing the page, it
loads the complete page at some point. Otherwise I have to restart the server and try 
again. Any suggestions on how I can overcome this?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=568124

I'm working on the chinese version of our project. I already set the charset to GB2312 
for all jsp pages to display simplified chinese correctly. Now I need to pass data 
within forms between jsp pages. In the english version, we used request.getParameter 
to receive these data, but after changing the charset setting, it causes the get data 
to be unreadable. Any solutions on how I can overcome this problem?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=568118

I am getting an "Out of Memory" error running my JSP applications under Tomcat. How do 
I increase the default JVM heap size settings that Tomcat uses upon startup?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=568115

I have developed a site in JSP. Whenever I type www.name.com in address bar the url 
changes to www.name.com/index.jsp. How do I prevent the index.jsp from showing up in 
the address bar?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=568108

I have got this error when I tried to access the Tomcat welcome page at 
http://localhost:8080 using Tomcat 4.0.


Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
java.lang.NoSuchMethodError
at org.apache.catalina.connector.ResponseStream.flush(ResponseStream.java:244)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:245)
at java.io.PrintWriter.flush(PrintWriter.java:120)
at org.apache.catalina.connector.ResponseWriter.flush(ResponseWriter.java:125)
at 
org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBase.java:481)
at 
org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpResponseBase.java:229)
at 
org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(HttpResponseImpl.java:288)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1038)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:484)

The server starts up fine. The error comes up when I access the welcome page. All 
my other JSP codes residing in Tomcat cannot be access as a result of this 
problem.

I have tried to reinstall the entire Tomcat Server and JDK 1.3 to ensure that 
everything is the default setting but the problem still persists. This problem came 
all of a sudden. There was no problem at all in the first place.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=568095

How can I read a text file from  JSP page?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=566162

How do i specify Application-level variables in JSP?

I want to do something similar to the global.asa in ASP, where I can specify 
application and session variables.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=566160

How can I read a text file from a JSP page?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=566159

Are global variables in the included file (using ) available in 
the file that includes it?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=566158

I have a problem and I'm hoping you can help me.  I have a jsp that's displaying data, 
which length depends on the user.  It takes up to 10 minutes sometimes to display a 
page.  I don't want to break my page into multiple pages, but what I want to do is to 
display line by line on the screen as the data is being read.  What happens now, is 
the browser waits until all the data is processed and then displays a page.  Any ideas 
how to do this?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=565046

I want to download files within a client browser from a web server using JSP. 
How can I do this?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=563827

++ Servlets FAQ: http://www.jguru.com/faq/Servlets

I have got this error when I tried to access the Tomcat welcome page at 
http://localhost:8080 using Tomcat 4.0.


Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
java.lang.NoSuchMethodError
at org.apache.catali

[FAQ] jGuru FAQ Update

2001-11-16 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


SPONSORED BY developerWorks

need it? get it. tools, code and tutorials for open-standards based development.

Stay informed with dW's weekly email newsletter
http://www.jguru.com/misc/register_devworks.jsp?src=notify
-

Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.

You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp


++ Servlets FAQ: http://www.jguru.com/faq/Servlets

Is there any way to change/set owner of a file that is uploaded, before it's saved to 
the filesystem?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=543979

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

Is commercial support available for Tomcat?
My company is interested in purchasing technical support (24x7) for Tomcat (on 
Solaris). Does anybody know of any organisation able to offer a support service? 
(please post reply here and also email to me [EMAIL PROTECTED])
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=544502

Tomcat and WebDav Security

I am attempting to configure Tomcat's WebDav application 
(http://localhost:8080/webdav) to allow everyone to view the directory.  However I 
need authorized users to be able to edit the content of the directory.  

http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=544213



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2001-11-02 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


SPONSORED BY developerWorks

need it? get it. tools, code and tutorials for open-standards based development.

Stay informed with dW's weekly email newsletter
http://www.jguru.com/misc/register_devworks.jsp?src=notify
-

Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.

You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

In my JSP file i am trying to use getRemoteHost() method to retrieve 
the computer name. It works in all the systems. but in one machine instead 
of displaying that computer name it is displaying the IP address of that computer. I 
dont know why it is displaying like that. do i need to 
change any settings in that particular machine ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=532449

How can I send email from a JSP page with HTML format?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=532445

Can I instantiate the same JavaBean multiple times within a JSP page by associating 
each instance with a different scope?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=532444

Is there a way how the output of a JSP page could be compressed by removing all 
CR, TABs, SPACEs from the HTML?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=532208

I'm specifying the error page as a page directive in a page. When there is an 
exception in the JSP page, the error page is called. I want to pass a parameter from 
the current page to the error page when there is an exception . Is this possible?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=532207

I need to do a lot of background work in my jsp and i do not want to keep my client 
waiting. Hence i want to redirect my client to main menu page and continue with my 
processing. Is it possible to implement this using multi-threading in a JSP?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=532203

Can I use either the include directive or include tag to bring in a static HTML file 
that is residing on either a different server or on the same machine but outside the 
directory structure of the web server?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=532199

I have a JSP which does some intensive I/O and consequently takes approximately 20 
seconds or so to load.

How can I create a "loading" message/HTML page which is invoked while the page is 
processing and then gives way to the JSP?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=532196

Does anybody could explain me the use of
pageContext.include(String relativeUrlPath);?
What is the difference with <@ include file="..."> tag?

http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=532194

Is it bad form to put most of your code in a try catch block?  I am using an error 
page to catch my exceptions but some of them are slipping through.  I am 
tempted to wrap everything in the try catch so my users never see an ugly "null 
pointer exception" again.  Any suggestions?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=532190

How can I prevent data to be added into my database twice when using a form on a JSP 
page?  On Browser refresh, the same data is added to my database table.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=532188

I have trouble displaying a string like "" via JSP, since they 
interfere with HTML tags.
For example, when displaying "<[EMAIL PROTECTED]>", the <[EMAIL PROTECTED]> 
disappears. Is there any workaround for this?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=532180

++ Servlets FAQ: http://www.jguru.com/faq/Servlets

Can I place my classes somewhere other than inside WEB-INF?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=536258

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

Can I place my classes somewhere other than inside WEB-INF?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=536258



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2001-10-27 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


SPONSORED BY developerWorks

need it? get it. tools, code and tutorials for open-standards based development.

Stay informed with dW's weekly email newsletter
http://www.jguru.com/misc/register_devworks.jsp?src=notify
-

Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.

You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

How can I interrupt a request already sent to a JSP servlet engine, and thus stopping 
or altering the thread the server is executing for that request? For example I want to 
use a cancel button on my form's page to interrupt an already submitted request which 
may take a while to finish.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=525737

I want to pass an array of values that I have built within a JavaBean to a JSP, and 
for JavaScript within the page to process it and display it. The Bean sets the array, 
and the JavaScript has an identical array defined. I have tried javascriptArray = "<%= myJavaBean.getArray() 
%>"; but this doesn't work. Any ideas, anyone?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=525736

>From within my JSP page, how do I know whether the user performed a GET or POST 
>request?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=525734

I want to use the logger taglib from Jakarta which uses log4j.  Does anyone have a 
sample log4j properties/initialization file that they would post so that I could take 
a look?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=525565

How can I get the JSP container to realize when I've modified a file that was included 
using <%@ include file="XXX" %>, and to recompile files that include it?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=525557

++ Servlets FAQ: http://www.jguru.com/faq/Servlets

Do I have to synchronize read-only access to a text file?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=531243

What is a session? What is the difference between session and cookie?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=528741

How can I modify a Request object before passing it to another servlet?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=528234

How do I set session timeouts of greater than 30 minutes?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=525564

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

Does tomcat support Web Services?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=531241

How do I have to configure Tomcat 4.0 for using JDBC 2.0 DataSource objects?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=531070

Can I use *.ear files in Tomcat?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=528164

Why can't Tomcat find my Oracle JDBC drivers in classes111.zip?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=528159

I want to use the logger taglib from Jakarta which uses log4j.  Does anyone have a 
sample log4j properties/initialization file that they would post so that I could take 
a look?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=525565

How do I set session timeouts of greater than 30 minutes?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=525564

Why do I get the message "FAIL - Unknown command" when trying to run the Tomcat 4 
Manager application?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=525563

How to make Tomcat use the Xerces XML parser instead of the Sun JAXP XML parser?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=525561

How can I get the JSP container to realize when I've modified a file that was included 
using <%@ include file="XXX" %>, and to recompile files that include it?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=525557



--
To unsubscribe, e-mail:  
For additional commands, e-mail: 




[FAQ] jGuru FAQ Update

2001-10-19 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


SPONSORED BY developerWorks

need it? get it. tools, code and tutorials for open-standards based development.

Stay informed with dW's weekly email newsletter
http://www.jguru.com/misc/register_devworks.jsp?src=notify
-

Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.

You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

How to return a value from a servlet to a JSP?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=524336

++ Servlets FAQ: http://www.jguru.com/faq/Servlets

Can we capture clickstreams using servlets?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=524483

How can I call a servlet from a regular Java application?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=524479

How do I play a sound on the server from inside a servlet?  The Java Sound API 
doesn't seem to work.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=524475

When downloading a PDF document that is less than 8000 bytes long,
the document is downloaded but is not displayed. How can I fix this?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=524472

After HttpSession.invalidate() is called I expect the next getSession call should 
return a new session with a different session id. However, it returns the same 
sessionid ???
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=524347

When using URLConnection to upload an object from applet to servlet, the servlet's 
doGet method is never executed. Why?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=524345

How to return a value from a servlet to a JSP?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=524336

Can i setup Tomcat to run inside the web server process itself (on Netscape/IIS?), 
instead of running it as a separate process. Do there something available i can use or 
do i have to write my own JNI code for this?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=520057

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

How do I configure Tomcat so that my error messages come up in a file, not in the 
console?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=525459

Why do I get an IllegalStateException when using  on a  css or js 
file?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=525430

Does Tomcat 4 have a GUI?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=524503

My Tomcat 3.x server is routinely being attacked by nimda.  Of course it has no 
effect, but I'm getting a little tired of it and want to track down where the attacks 
are coming from.
Is there a way to configure Tomcat to display IP addresses when it logs errors in 
tomcat.log?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=524501

How do I integrate Tomcat 4.0 with Apache? The documentation is sparse.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=524500

How do I determine a class's file location at runtime?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=524494

Can i setup Tomcat to run inside the web server process itself (on Netscape/IIS?), 
instead of running it as a separate process. Do there something available i can use or 
do i have to write my own JNI code for this?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=520057





[FAQ] jGuru FAQ Update

2001-10-05 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


SPONSORED BY developerWorks

need it? get it. tools, code and tutorials for open-standards based development.

Stay informed with dW's weekly email newsletter
http://www.jguru.com/misc/register_devworks.jsp?src=notify
-

Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.

You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

I have an error page that is handling my exceptions.  Is it possible to access session 
data  from within the error page when the request is forwarded to it upon an 
exception? I am getting a null when I do a session.getAttribute().
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=512162

Can 2 web applications share the same session object?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=511752

++ Servlets FAQ: http://www.jguru.com/faq/Servlets

Can 2 web applications share the same session object?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=511752

How do I retrieve parameters in the exact order in which they appeared on the HTML 
form? The method getParameterNames() does not preserve the order.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=508859

How can I get quotes in my servlet output so the string will be quoted for JavaScript?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=507420





[FAQ] jGuru FAQ Update

2001-09-21 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


SPONSORED BY developerWorks

need it? get it. tools, code and tutorials for open-standards based development.

Stay informed with dW's weekly email newsletter
http://www.jguru.com/misc/register_devworks.jsp?src=notify
-

Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.

You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

Why do I get the error "IllegalStateException"  
when using the RequestDispatcher?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=501393

Using jsp:forward on Tomcat, why do I get the error
java.lang.IllegalArgumentException 
 at javax.servlet.http.HttpUtils.parseName(HttpUtils.java:285) ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=500043

How do I load an applet from a servlet or JSP? Where do I place my applet class files?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=499425

I am using a JSP page to submit data for insert into a database.If the refresh 
button (in the browser IE5) is clicked, the data is resent and inserted into the 
database again.How can this be prevented?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=497628

How can I prevent user from viewing a page that he already passed.
i.e I have a form that contains some textboxes to fill some info..after submited the 
form it will redirect to another page. I need to prevent user to view the page again 
by pressing back botton.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=497557

++ Servlets FAQ: http://www.jguru.com/faq/Servlets

Why do I get the error "IllegalStateException"  
when using the RequestDispatcher?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=501393

How do I get a session object to perform a task before it is invalidated?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=500657

How do I use servlets to return dynamically generated PDF documents?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=500656

How do I pass params like -D to the JServ JVM?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=500047

How do I load an applet from a servlet or JSP? Where do I place my applet class files?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=499425

Can anyone tell me the advantages and disadvantages between Tomcat, JRun, and JServ 
for Apache Web Server?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=497500

How can I implement returning part of a large (1000+ rows) result set to the client?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=497499

What is the best way to store a large object, such as a result set, across requests, 
but only for a short term, say for using the result set for printing for instance?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=497495

How do I load a file from inside a WAR file?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=497268

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

Why do I get the error "IllegalStateException"  
when using the RequestDispatcher?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=501393

Using jsp:forward on Tomcat, why do I get the error
java.lang.IllegalArgumentException 
 at javax.servlet.http.HttpUtils.parseName(HttpUtils.java:285) ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=500043

Why can't my webapp find classes in the WEB-INF/classes directory?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=57

How can I authenticate the user from a database?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=52

Is it possible in Tomcat to allow running all servlets from a directory without 
configuring each one in web.xml ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=499441

How do I load an applet from a servlet or JSP? Where do I place my applet class files?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=499425

Does Tomcat support JMS (Java Messaging Service)?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=499412

Can anyone tell me the advantages and disadvantages between Tomcat, JRun, and JServ 
for Apache Web Server?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=497500

How can I redirect JSP requests from an IIS server on one machine to the Tomcat server 
on another mac

[FAQ] jGuru FAQ Update

2001-09-14 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


SPONSORED BY developerWorks

need it? get it. tools, code and tutorials for open-standards based development.

Stay informed with dW's weekly email newsletter
http://www.jguru.com/misc/register_devworks.jsp?src=notify
-

Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.

You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

Can I submit multiple forms, say form1 and form2, to a JSP page by clicking a single 
submit button?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=493400

I am creating my dynamic content by invoking multiple . 
Do I need to call ; in all the JSP's or will a one time 
initialization within the holder JSP suffice?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=493247

++ Servlets FAQ: http://www.jguru.com/faq/Servlets

Should I use one servlet supporting GET to show pages and POST to process forms, or 
two separate servlets?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=497265





[FAQ] jGuru FAQ Update

2001-09-07 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


SPONSORED BY developerWorks

need it? get it. tools, code and tutorials for open-standards based development.

Stay informed with dW's weekly email newsletter
http://www.jguru.com/misc/register_devworks.jsp?src=notify
-

Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.

You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

Why do I get "Note: sun.tools.javac.Main has been deprecated" when compiling my JSP?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=492838

++ Servlets FAQ: http://www.jguru.com/faq/Servlets

How do I use Visual Cafe to debug my servlets running inside the WebLogic Web server?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=492844

How do I parse hex integer Color codes passed as parameters to my servlet?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=492831

Why do I get the error  Http Method POST is not Supported 
by this URL?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=492829

How do I use a RequestDispatcher to call one servlet from another servlet?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=492819

Is it possible to set the user name and password on an HTAccess certificate directly 
from my code rather than have the user do it from the HTAccess prompt?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=492801

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

How do I install Tomcat on Linux without getting 
"permission denied" errors?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=492863

Is TOMCAT_HOME/conf/web.xml ever actually used? If so, what for?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=492857

Is there any way that we can stop logging of request parameters in jasper.log?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=492851

Why do I get "Note: sun.tools.javac.Main has been deprecated" when compiling my JSP?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=492838

Using Tomcat+Apache, my web.xml's  is being ignored, and only 
Apache's DirectoryIndex is being used. Why?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=492782

How do I use Tomcat's error-page and Apache's ErrorDocument directives together?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=492774

I have installed Tomcat as an NT service. How can I prevent it from terminating when 
the user logs off?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=492772

Can the web application reside on a machine other than where Tomcat is running?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=492632

When I run startup.sh under Linux, why do I get a "Permission Denied" error?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=492620





[FAQ] jGuru FAQ Update

2001-08-31 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


SPONSORED BY developerWorks

need it? get it. tools, code and tutorials for open-standards based development.

Stay informed with dW's weekly email newsletter
http://www.jguru.com/misc/register_devworks.jsp?src=notify
-

Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.

You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

I need to trap all kinds 500 error on my jsp page. I have tried the <%@ page 
errorPage="myerror.jsp"> but it only works on selected errors. How can I trap all 
errors, including syntax errors?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=484004

Does anyone know how I could display an rtf string from JSP? I have resumes stored in 
a database and want to display them in a browser.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=484003

Does anyone know how I could display an rtf string from JSP? I have resumes stored in 
a database and want to display them in a browser.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=484002

How can I create complex, pretty reports which can be printed at the client from JSP?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=484001

I know I can get JP tag attributes with setXXX() method but I want to know if  it is 
possible to modify attribute values within a tag handler.

For example:
I want to do iterator tag that iterates  over a list and at each iteation it can 
assign the current iterated value to one of its attributes and cause the JSP page to 
display different values at each iteration.
Is there any way to do this?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=484000

Is it possible to view which web server or servlet engine is used: IIS, iPlanet etc. 
on a JSP page? Just like System.getProperty(os.name) for the operating system?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=483999

How do I stop a JSP based download adding a newline to the first character of a file?
I am using JSP to set a Content-Disposition in order to keep IE from automatically 
opening Excel/Word/Acrobat/etc when it sees a file type it recognizes.  However, when 
I use ServletOutputStream to do this, for some reason I end up with a newline (ASCII 
hex 0A) character at the beginning of my file (I discovered this with a hex editor). 
This causes Word and Excel to blow up when I try to open the files because they can't 
cope with the extra character. (I am using the ATG Dynamo Application Server and am 
hoping this is not an artifact of the implementation.)

This is what my JSP looks like:

<%
// fname is the file name
File f = new File(fname);
InputStream in = new FileInputStream(f);
ServletOutputStream outs = response.getOutputStream();

int bufferSize = 4096;
byte[] ioBuffer = new byte[bufferSize];
byte[] lastBuffer; // last buffer
long counter = 0; // how many bytes we have gotten through
long fileSize = f.length();

response.setHeader("Content-Disposition", "attachment;filename=" + shortname);
response.setContentType("application/download");

// in a big file, use big buffer chunks
while (fileSize > (counter + bufferSize))
{
in.read(ioBuffer);
outs.write(ioBuffer);
   counter += bufferSize;
}

// add final chunk if the fileSize does not happen to be divisible by the bufferSize
if (fileSize > counter)
{
lastBuffer = new byte[ (int) (fileSize - counter) ];
in.read(lastBuffer);
outs.write(lastBuffer);
}

outs.flush();
outs.close();
in.close();
%>

I also tried to do this:

String headers = "Content-Disposition:attachment;filename=" + shortname + "\r\n" +
 "Content-Type: application/download\r\n\r\n";

outs.write(headers.getBytes());

in place of the setHeader() and setContentType() but I end up just opening a webpage 
with that string followed by the bytes from the file I want downloaded.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=483996

++ Servlets FAQ: http://www.jguru.com/faq/Servlets

Are there any restrictions placed on applets loaded from HTML pages generated from 
servlets / JSP pages?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=485955





[FAQ] jGuru FAQ Update

2001-08-24 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


SPONSORED BY developerWorks

need it? get it. tools, code and tutorials for open-standards based development.

Stay informed with dW's weekly email newsletter
http://www.jguru.com/misc/register_devworks.jsp?src=notify
-

Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.

You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

How can I model a JSP page in UML? What stereotype should I use for JSP within a class 
diagram?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=481436

I have a .jsp page with an included file (myPage.jsp, with <%@ include file = 
'includedFile.jsp'>). When I delete or modify the included file on the server, the 
old one still shows in my browser, even if I manually refresh/reload the whole page 
(i.e. refresh 'myPage.jsp'). The only solution I have found is to delete the whole 
page ('myPage.jsp'), and upload it again - then it includes the more recent included 
file.
The server is running Apache/Tomcat under Linux.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=481051

++ Servlets FAQ: http://www.jguru.com/faq/Servlets

Why do I get the error java.lang.IllegalStateException: Header already sent ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=480147

Is there a simple example of how to use web application security in WebLogic?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=479768





[FAQ] jGuru FAQ Update

2001-08-03 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


SPONSORED BY developerWorks

need it? get it. tools, code and tutorials for open-standards based development.

Stay informed with dW's weekly email newsletter
http://www.jguru.com/misc/register_devworks.jsp?src=notify
-

Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.

You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

My app is in Japanese, and I'm running Tomcat 3.2 and JDK 1.3.1.  I am including a 
header on a main page using the <%@ include file %> 
directive.  At the top of the main page, I first specify the JSP page directive (to 
set this JSP translation's content type and character set), then include the header 
file.


<%@ page contentType="text/html; charset=shift_jis"%>
<%@ include file="header.jsp" %>


The content from the main file renders correctly in the browser as shift-jis 
characters, but the content in the header is the kind of "?z?[???R???" junk that 
anyone who has wrestled with non-Latin1 is most likely familiar with. (Cultural 
sidenote- the Japanese call that "moji-bake" or "letter ghost").

Anyway, since you can only specify the contentType property once per page translation 
(Tomcat throws an error if you try), how can I tell Tomcat that my included page is in 
shift_jis too?

I found a Sun document in which the following was written:
The page directive applies to an entire JSP file and any static files it includes 
with the Include Directive or , which 
together are called a translation unit.

So, is this a Tomcat bug?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=468049

>From what I know, I should put the path of properties file
in the Classpath. While I am developing a web application, I want to host multiple 
sites in one machine. So how can I use two different properties file? If I specify 
them in the Classpath, then the first one will be used according to order of the 
Classpath since both properties files have the same filename.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=466998

I have an application which use a shared library libjchli.so, I have LD_LIBRARY_PATH 
set to the right dirctory and it works fine. When I tried to convert it to JSP, I got 
an error message: java.lang.UnsatisfiedLinkError: no jchli in 
java.library.path Apparently libjchli.so is not loaded. Where should the library 
file be located?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=465753

We have a large JSP from which users are taken to diffent screens and based on the 
values entered there , the fields in this main jsp are updated.
Now, we are reloading the entire jsp each time whenever the control comes back.
Instead of this is it possible to reload just that part of the jsp which has changed 
and read other parts from the cache?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=463941

What procedure must be followed to read and write encrypted cookies to the browser. 
What's the role of encoding in this ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=463936





[FAQ] jGuru FAQ Update

2001-07-27 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


SPONSORED BY developerWorks

need it? get it. tools, code and tutorials for open-standards based development.

Stay informed with dW's weekly email newsletter
http://www.jguru.com/misc/register_devworks.jsp?src=notify
-

Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.

You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

I am trying to implement a RMI server that has a static variable.

Is there anyway the clients can access this static variable on the
server side and modiy it. After modification, is the change visible
in other clients.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=463463

Is there a way to access the HttpSession object of a different web application which 
is running on the same server?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=463461

Why do Frames suck?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=460110

I am writting an application in javabeans and jsp. When I run the application I have 
some output and the internal servlet error: "attempt to clear a buffer that is already 
been flushed". My application is running under Tomcat 3.2.2.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=459355

How do I process gb2312-encoded characters within JSP?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=459354

++ Servlets FAQ: http://www.jguru.com/faq/Servlets

How can I display bar codes in my Java program?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=462245

Why do Frames suck?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=460110

When downloading a file to a client, how can I 
inform the client of the file size, so it can
predict how long it will take?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=460092

How do I download several files at the same time?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=460087





[FAQ] jGuru FAQ Update

2001-07-20 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


SPONSORED BY developerWorks

need it? get it. tools, code and tutorials for open-standards based development.

Stay informed with dW's weekly email newsletter
http://www.jguru.com/misc/register_devworks.jsp?src=notify
-

Hi.  You asked to be notified weekly when certain jGuru.com items get new entries.

You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

How can I use a JSP as an Apache ErrorDocument -- so Apache will display its 
errors using my JSP?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=458488

How do I implement a hit counter in Servlets or JSP?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=456418

Why do I get "java.lang.NoClassDefFoundError: sun/tools/javac/Main" ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455768

While forwarding from one page to another by using RequestDispatcher, how do I avoid 
the error " OutputStream is already being used for this request" ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455248

What is Ant? Do I need it to run Tomcat?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455192

++ Servlets FAQ: http://www.jguru.com/faq/Servlets

How can I automatically invoke a servlet at regular time intervals using Resin?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=458416

How do I trap a 404 error inside my servlet if my servlet does a 
RequestDispatcher to a non-existent page ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=457102

How do I implement a hit counter in Servlets or JSP?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=456418

Why do I get "java.lang.NoClassDefFoundError: sun/tools/javac/Main" ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455768

Is there a way in Tomcat to set up zones for servlets like in jserv?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455766

What is the difference between ServletContext.getInitParameter() and 
HttpServlet.getInitParameter() ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455711

How do I prevent users from viewing the contents of my WEB-INF directory?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455249

While forwarding from one page to another by using RequestDispatcher, how do I avoid 
the error " OutputStream is already being used for this request" ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455248

How to allow the client to download and execute a .bat file?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455219

Can I spawn a background thread from my servlet?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455215

How can I generate an output in CSV format from a database query?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455207

What is a session and why is it required?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455205

How to allow the client to download and execute a .bat or .exe file?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455202

Why do I sometimes get the error "ODBC Driver Manager ...function Sequence Error"?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455201

How do I process FDF files created by the Acrobat Forms plug-in?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455199

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

How can I use a JSP as an Apache ErrorDocument -- so Apache will display its 
errors using my JSP?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=458488

Why do I get "java.lang.NoClassDefFoundError: sun/tools/javac/Main" ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455768

Is there a way in Tomcat to set up zones for servlets like in jserv?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455766

How do I upgrade from Tomcat 3 to Tomcat 4?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455735

Do I need to create my own web.xml file?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455725

What is the right way to set the JAVA_HOME environment variable on Windows NT?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455718

How do you pass options such as -Xrs to the JVM when your Tomcat container is running 
in-process within a W

[FAQ] jGuru FAQ Update

2001-07-18 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


SPONSORED BY developerWorks

need it? get it. tools, code and tutorials for open-standards based development.

Stay informed with dW's weekly email newsletter
http://www.jguru.com/misc/register_devworks.jsp?src=notify
-

Hi.  You asked to be notified daily when certain jGuru.com items get new entries.

You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp


++ Servlets FAQ: http://www.jguru.com/faq/Servlets

How do I trap a 404 error inside my servlet if my servlet does a 
RequestDispatcher to a non-existent page ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=457102





[FAQ] jGuru FAQ Update

2001-07-17 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


SPONSORED BY developerWorks

need it? get it. tools, code and tutorials for open-standards based development.

Stay informed with dW's weekly email newsletter
http://www.jguru.com/misc/register_devworks.jsp?src=notify
-

Hi.  You asked to be notified daily when certain jGuru.com items get new entries.

You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

How do I implement a hit counter in Servlets or JSP?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=456418

Why do I get "java.lang.NoClassDefFoundError: sun/tools/javac/Main" ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455768

++ Servlets FAQ: http://www.jguru.com/faq/Servlets

How do I implement a hit counter in Servlets or JSP?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=456418

Why do I get "java.lang.NoClassDefFoundError: sun/tools/javac/Main" ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455768

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

Why do I get "java.lang.NoClassDefFoundError: sun/tools/javac/Main" ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455768





Testing HTML Rejection

2001-07-16 Thread Alex Chaffee

*HTML-only *email is rejected. _* Yay!*_ What about mixed text and HTML?

(When I sent html-only, it said:
Hi. This is the qmail-send program at apache.org.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<[EMAIL PROTECTED]>:
ezmlm-reject: fatal: Sorry, I don't accept messages of MIME Content-Type
'text/html' (#5.2.3)




[FAQ] jGuru FAQ Update

2001-07-16 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .


SPONSORED BY developerWorks

need it? get it. tools, code and tutorials for open-standards based development.

Stay informed with dW's weekly email newsletter
http://www.jguru.com/misc/register_devworks.jsp?src=notify
-

Hi.  You asked to be notified daily when certain jGuru.com items get new entries.

You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

While forwarding from one page to another by using RequestDispatcher, how do I avoid 
the error " OutputStream is already being used for this request" ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455248

What is Ant? Do I need it to run Tomcat?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455192

++ Servlets FAQ: http://www.jguru.com/faq/Servlets

Is there a way in Tomcat to set up zones for servlets like in jserv?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455766

What is the difference between ServletContext.getInitParameter() and 
HttpServlet.getInitParameter() ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455711

How do I prevent users from viewing the contents of my WEB-INF directory?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455249

While forwarding from one page to another by using RequestDispatcher, how do I avoid 
the error " OutputStream is already being used for this request" ?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455248

How to allow the client to download and execute a .bat file?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455219

Can I spawn a background thread from my servlet?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455215

How can I generate an output in CSV format from a database query?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455207

What is a session and why is it required?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455205

How to allow the client to download and execute a .bat or .exe file?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455202

Why do I sometimes get the error "ODBC Driver Manager ...function Sequence Error"?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455201

How do I process FDF files created by the Acrobat Forms plug-in?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455199

++ Tomcat FAQ: http://www.jguru.com/faq/Tomcat

Is there a way in Tomcat to set up zones for servlets like in jserv?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455766

How do I upgrade from Tomcat 3 to Tomcat 4?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455735

Do I need to create my own web.xml file?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455725

What is the right way to set the JAVA_HOME environment variable on Windows NT?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455718

How do you pass options such as -Xrs to the JVM when your Tomcat container is running 
in-process within a Web server?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455716

If I deploy a WAR file while Tomcat is running,
is there a way to load (or reload) it without restarting Tomcat?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455587

Using Struts 1.0, why do I get the error "cant remove Attributes from request scope"?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455577

Can Tomcat be started as a user other than root under Unix?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455567

Is there any way to avoid servlet.log being deleted on restart of tomcat?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455369

When reloading a servlet that uses JNI, why do I get 
"java.lang.UnsatisfiedLinkError: Native Library D:\WINNT\mynamesearch.dll already 
loaded in another classloader"
?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455360

What is the password for the Tomcat admin webapp?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455354

How do I prevent users from viewing the contents of my WEB-INF directory?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455249

What is Ant? Do I need it to run Tomcat?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=455192

How do I stop all running instance

Re: [DOC] Vote on oustanding doc issues?

2001-07-11 Thread Alex Chaffee

Craig R. McClanahan wrote:

> 
> On Mon, 9 Jul 2001, Alex Chaffee wrote:
> 
> 
>>>Bundle the 3.2.x docs with 3.2.x and only have the 3.3 docs online ("latest
>>>Tomcat release").  If you want the 3.2.x docs, get them with the binary or
>>>whatever.  I certainly don't think we should keep old versions of
>>>documentation updated.  I mean, why would updated 3.0 or 3.1 docs be useful?
>>>
>>>
> 
> Unless and until there's a 3.3 or 4.0 final release, *3.2* is the "latest
> Tomcat release", and deserves to be documented on the web site.


OK, but my point is that as we improve the 3.x docs -- regardless of the 
value of x -- the 3.2 docs will become less relevant.

Right now there are many differences between the 3.2 and 3.3 docs, but 
they're mostly in the connector docs, which AFAIK haven't changed much if at 
all in operation. This leads me to conclude that the docs in the 3.3 tree 
are just as valid when applied to 3.2, except that they're better docs, 
since more people have had a chance to revise them.  That's why I'd like to 
remove the "Tomcat 3 docs that happened to be in the depot at the time 3.2 
shipped" in favor of "the latest version of the Tomcat 3 docs (which happen 
to be in the 3.3 dev tree)".

Perhaps the easiest way to do this would be with a separate depot. I'm 
shying away from that for the reasons you (Craig) brought up.  It's nice for 
docs to be in the same depot as the code...

> There's no reason to banish the current Tomcat released version, or any
> other version that is being actively developed.  And it's quite easy to
> arrange the user interface so that it's obvious which version you are
> looking at (for example, including "Tomcat X.Y" in the header or footer of
> the pages about that version).


Again, apart from 3 vs 4, the difference between versions 3.2 and 3.3 is 
small, as far as docs are concerned, so announcing "Tomcat 3.2" in the 
header wouldn't be very salient, and would just promote forking of docs. We 
seem to be in this quandary because the docs have not really been part of 
the release process -- they get released slapdash relative to the code 
milestones.


By the way, it seems like the majority of the existing documentation is 
about installation. If there were a clean, robust install script, it would 
remove 90% of the text on the site. Maybe before we write (rewrite) install 
docs we should write an install script.  I know that was on your todo list 
for 4 -- how's that coming?


-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/




Re: [DOC] Table of Contents

2001-07-11 Thread Alex Chaffee

Punky Tse wrote:

>>>3) How about putting all the installation and configuration of Tomcat
>>>standalone first, and then followed by some chapters (advanced topics)
>>>
> about
> 
>>>Running Tomcat behind web servers?
>>>
>>
>>It's already organized that way. See the first paragraph of the
>>"editorial notes:"
>> >>I think there should be a
>> >>chapter or series of chapters on installing Tomcat standalone, that
>> >>covers *everything* or almost everything start-to-finish. Then we also
>> >>need separate chapters for installing behind each Web server. Then
>> >>come chapters on administration and advanced configuration issues.
>>
>>I have a feeling you may have missed the attachment. See the post I just
>>made for the latest one (in much detail).
>>
> 
> Alex,
> 
> What I mean is to swap Part II with Part III like below:
> 
> I. Standalone Installation Guide
> II. Deploying and Configuring, or Tomcat Administrator's Guide
> III. Installation Behind a Web Server Guide
> IV. Performance Tuning Guide
> V. Tomcat Developer's Guide (writing code for Tomcat itself)
> 
> I treat "Installation Behind a Web Server Guide" as advanced topics.  For
> general tomcat users, they should be more interested in configuring Tomcat
> than in making it running behind web server.
> 
> Punky
> 
> 


I agree with you on the motivation (that "behind" is an advanced topic), but 
I don't think that means we should automatically put it behind :-) the admin 
guide.  Instead, someone reading start to finish should be able to get an 
installation running -- perhaps skipping the Apache part if they need to -- 
*then* they can play around with administering what they've got.

It's a judgement call, and if we make them separate docs, then reordering is 
trivial.


-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/




Re: [DOC] TOC - thoughts

2001-07-11 Thread Alex Chaffee

Christopher Cain wrote:

> 
> "Rob S." wrote:
> 
> [snip]
> 
>>First off, I think we should have an ultra-quick install guide.  If you're
>>like a lot of geeks, you know your stuff.  You need to know a quick few
>>steps, a quick 2-3 gotchas, and BAM that's it.  I want to make sure the
>>quick-and-dirty "impatient" install is available to the people who can take
>>advantage of it; admins experienced with other containers, trying Tomcat for
>>the first time perhaps.
>>
> 
> +1
> 
> 
>>PI.2.1:  I love pictures!  Some nice diagrams in here would go a lllong way.
>>Not sure about the "choose OS" or "install Java" sections.  I mean, there's
>>catering to the LCD and there's catering to the LCD...
>>
> 
> I haven't yet had a chance to look over the TOC (planning on doing it
> tonight), but one of the docs I have lying around is a step-by-step on
> installing java on Linux *specifically* in preparation for a Tomcat
> build/install. Granted, the README file hits the important stuff, like
> what needs to be in the CLASSPATH, etc. I was actually thinking of
> morphing it into a more general (and quick) guide to preping your OS for
> a Tomcat build/install (I have some Windoze notes lying around as well).
> I could very quickly touch on Java installation, including a few
> Linux-specific tips above and beyond the rather obvious actual install,
> cover the environment varibles that need to be defined for a build,
> reiterate the "jakarta" directory structure that needs to be in place,
> etc. Basically, everything up to the point of the actual build.


That would be great, and that's pretty much what the TOC outlines (though 
not in that detail). The problem with having OS-specific quick-and-dirty 
install guides is that if one aspect changes, the separate guides get out of 
sync. I'd suggest you clearly divide the following three parts:

- Pre-install
- Standalone install
- Integrating with Web server

Since that's the structure I'm using in the major parts of the Install Guide 
of the TOC.


> 
> Well, my thoughts on the aforementioned doc I was planning are to
> provide a list of the available JDKs for each platform, what else one
> needs to download for certain optional functionality (SSL, etc.), where
> to get each of them, and any relevant comments on software selection.
> Mainly just the huge stuff, like the infamous "Sun 1.3.1 JDK for Linux
> completely broken under the new gcc threading libraries." (That one
> really pissed me off.) This might fall under the category of "too much
> information" as Rob is stating, but my feeling is that it is easy enough
> to skip over entire sections (assuming they're laid out logically) in a
> "Preping your OS for Tomcat" doc, and those users who are planning on
> building out a new box (or reformatting an existing box) specifically
> for a web server will appreciate such heads-up info. Getting Tomcat up
> and running on a barebones OS install is pretty rare for us developers,
> but it happens quite frequently in the corporate world. The bigger the
> master Tomcat documentation library, from the essentials to the
> sublimely tangential steps along the way, the more comfortable
> corporations will feel about choosing Tomcat over a proprietary
> solution. As long as someone is willing to write such things, which in
> this case I am, why not just throw it in the mix for the few people who
> might benefit from it? Of course, I completely agree that there also
> needs to be some short-and-sweet versions of how to do install-type
> things, so maybe an abbreviated version of my Preping doc would also be
> in order.


I like it.  Please see how it would fit in with the proposed pre-install / 
standalone install chapters.


-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/




Re: [DOC] TOC - thoughts

2001-07-11 Thread Alex Chaffee

Rob S. wrote:

> There is a WHACK of info in that TOC.  Your copyright is well-deserved =)
> 
> First off, I think we should have an ultra-quick install guide.


Until there's an ultra-quick install script, there can't be a ultra-quick 
install guide. For 3.x at least, there are so many different options, 
especially when you start plugging in to Apache, that I don't think it's 
possible.

> PI.1.1:  I agree with the "big picture" view of things, but from what's
> there, it almost looks like you're explaining the parts that I as an admin,
> would expect to see in the installation documentation.  Was there something
> more to this section than a description of Tomcat's internal layout?


Not internal, but architectural -- like

Apache   JVM
   Tomcat
Connector (port 8080)
   mod_jk -->   Connector (port 8007)
Web Applications
 example
 mylittlewebapp

Or whatever...

> PI.1.2:  Agree with comments, remove to appendix. 


OK, done.

> PI.2.1:  I love pictures!  Some nice diagrams in here would go a lllong way.
> Not sure about the "choose OS" or "install Java" sections.  I mean, there's
> catering to the LCD and there's catering to the LCD...


These would just be a few sentences, mostly saying how Tomcat is 
platform-neutral.  However, you do need to make sure JAVA_HOME is set (or at 
least know what it is if the script can't find it) etc.


> I think a lot of PI.2 is overkill, and some unnecessary, dependant upon the
> implied length of the sections from  the TOC I suppose...  I mean one or two
> sentences to "downloading JDK", sure, but more than that?  Definitely more
> suited to a book than "good enough" docs ;)


Right, this doc started life as a book outline for a book I may yet write. I 
like outlining to great detail... It saves me from having to think too much 
later. I'll leave it in for now as a placeholder, but I expect it'll remain 
empty for a while.


-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/




Re: [DOC] Table of Contents

2001-07-10 Thread Alex Chaffee

Martin van den Bemt wrote:

> I'm missing a very important one : servlet debugging. All the development
> environments support jps debugging, but servlet debugging is still a pain..
> So that could need some explenation..
> 


See

http://www.jguru.com/faq/view.jsp?EID=158


I've added it to the TOC.

-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/




Re: [DOC] Vote on oustanding doc issues?

2001-07-10 Thread Alex Chaffee

Rob S. wrote:


>>I like this compromise.  I will propose that we get rid of the 3.2 docs
>>on the site -- once I'm convinced they're similar enough.  There's still
>>that old "3.3 is a rogue release" sentiment floating around, and people
>>might not appreciate giving 3.3 implied legitimacy by making it the
>>"official" documentation...
>>
> 
> Woah, I thought the committers worked that out a long time ago. 


I was off the list for a while. I tried to read through the archives but all 
the vitriol gave me a headache. Did they just agree to disagree?  Do you 
think there'll be a problem with proposing to remove the 3.2 docs from the site?




-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/




Re: [DOC]: Vote on oustanding doc issues?

2001-07-10 Thread Alex Chaffee

Rob S. wrote:


> The tough thing about separating the docs is that the server.xml config
> stuff is spread out among multiple files.  I wonder how difficult it would
> be to maintain an index, or even if it's necessary.


I don't think it's a big deal. I forgot to list the appendices, but one of 
them will be a technical doc describing server.xml tag by tag. Whoever 
writes this should put links in to the relevant parts of the TOC (which will 
in turn contain links to the relevant documents).

> As well, is the intro not part of this breakdown or just not necessary or
> what?  Is the list even getting my emails? =)  I still think we should have
> an intro for people that may/not use Tomcat... err I'll just write it tonite
> and send it to the list and you guys can let me know if you like the
> direction it's headed in! =p


I'm not too worried about the intro, since the Web site already has a 
paragraph describing it, but a "why should I use Tomcat" chapter would go in 
the "Overview" section (see TOC).  Also, that's more a FAQ than a chapter. 
But hey, write it! We'll check it in, and you can also post it to the jGuru 
FAQ if you like.




-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/




Re: hello everyone (regarding documentation)

2001-07-10 Thread Alex Chaffee

GOMEZ Henri wrote:

>>Pier:
>>A nice way to duplicate the job, indeed... Why not joining 
>>Alex et. al and 
>>
> 
> Each contribution is good to have. If he feel more confortable
> using docbook, why not let him start some docs with it.
> 
> 
>>write the documentation with them? Just because you want to do it with 
>>the DocBook DTD? A ridiculous excuse, as with a very simple XSLT 
>>stylesheet you can convert the Anakia DTD in DocBook with no fuzz...
>>
> 
> If an XSLT exist for converting Anakia to DocBook, it should be possible 
> to do the reverse. Could you provide us, Pier, the XLST file to convert 
> from Anakia to DocBook ?
> 


Docbook is a *huge* file format. I've heard it described as "SGML in XML." 
There are probably features in DocBook that would be very difficult to 
automatically port back to XHTML.

> BTW, I didn't recall there was a vote on the list to decide if we should 
> use DocBook or Anakia to produce documentation ?
> 

Not yet. Another reason why nobody should jump the gun with a complicated 
format that might end up having to be ported to XHTML.

My advice for potential authors is to use text or very simple HTML (, 
, , , and ) so it'll be easy to shift to a common format 
once we do decide. Also it'll mean you don't waste time making it pretty, 
and focus on the text itself.

-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/




Year in copyright

2001-07-10 Thread Alex Chaffee

The current LICENSE file in jakarta-tomcat root says "Copyright 1999". 
Shouldn't this be "1999-2001"?

Or does it apply to the text of the license, and not to the content of the 
project?

-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/




Re: Table of Contents

2001-07-09 Thread Alex Chaffee

Punky Tse wrote:

> Alex,
> 
> Please see my comment below:
> 
> 1) The details of the TOC looks better than my version.


Thanks :)


> 2) How about moving Developing Interceptors, Valves and Connectors, and
> Using Tomcat Utility Classes to a seperate Developer Guide?  They are only
> useful for real hackers.


I think just having them at then end of the single developer's guide 
works fine.  Especially when you consider that they will be separate 
documents anyway (separate authors, separate cvs logs, etc.).

> 3) How about putting all the installation and configuration of Tomcat
> standalone first, and then followed by some chapters (advanced topics) about
> Running Tomcat behind web servers?


It's already organized that way. See the first paragraph of the 
"editorial notes:"
 >>I think there should be a
 >>chapter or series of chapters on installing Tomcat standalone, that
 >>covers *everything* or almost everything start-to-finish. Then we also
 >>need separate chapters for installing behind each Web server. Then
 >>come chapters on administration and advanced configuration issues.

I have a feeling you may have missed the attachment. See the post I just 
made for the latest one (in much detail).

> 5) About Copyright and Authorship.  It is fine for you to hold the
> copyright.  But if somebody modified your TOC and send back to you, and you
> accepted these changes.  How about identity of authorship of this document?


Yes, this is a big can of worms.  I'm actually afraid the Apache license 
is too restrictive for our purposes.  I want to make sure that both 
original authors and later contributors have the right the use their 
work -- even in part -- in other contexts. But I also want to make sure 
that someone else can't plagiarize it, so just making it public domain 
wouldn't work either.  I haven't done enough research yet though.

  - A




[DOC] Table of Contents

2001-07-09 Thread Alex Chaffee

OK, at Craig's request, here's the current Table of Contents for Tomcat 
docs.  (I wrote a program to convert *** to 1.2.3. format so it's easier 
to read.)

It just occured to me that maybe the TOC will be applicable to both 
versions (3 vs 4), even though the content of each chapter will be 
completely different. I think there's actually value in synchronizing 
the TOCs of two different books, though maybe I'm just being weird :-)

-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/


This document Copyright (C) 2001 by Alex Chaffee.  All rights
reserved.  Permission is granted for the Apache project to incorporate
it in whole or in part into their documentation.


Part 0:  Editorial Notes

The "installation" unit is the most crucial. I think there should be a
chapter or series of chapters on installing Tomcat standalone, that
covers *everything* or almost everything start-to-finish. Then we also
need separate chapters for installing behind each Web server. Then
come chapters on administration and advanced configuration issues.

We should make it clear that it is *HIGHLY* recommended to install
standalone first. This will help the users debug their setups. It will
also help us organize the docs. Each "behind" chapter will assume
you've read the "standalone" chapter(s).

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/appdev/deployment.html
is very well organized and would be great as a "Web Application
Developer's Guide"

Should we actually organize Part I and Part II as parts of a larger
Installation Guide, as in 


Part I:  Installation Guide

Covers installing Tomcat.  Separate instructions (sidebars?) for
Windows 9x, Windows NT, Linux, Solaris, Other Unixes, Mac OS.
Separate instructions for standalone vs. plug-in.  Separate
instructions for Tomcat 3.x vs 4.x.


1. Overview

Big picture, 30,000 foot view.

1.1. Diagram of all the parts of Tomcat 
1.1.1. Servlet Container
1.1.1.1. Directories
1.1.1.2. Config files
1.1.1.3. Web apps
1.1.1.4. Connectors

1.2. Basic terms
1.2.1. servlet
1.2.2. web app
1.2.3. see glossary [in fact, maybe this whole section should be removed
in favor of the appendix]


2. Pre-Installation

Covers what to do before you "actually" install Tomcat. 

2.1. DIAGRAM: Flowchart of installation steps 
2.1.1. Choose OS
2.1.2. Install Java
2.1.3. Download Tomcat
2.1.4. etc.

2.2. HIGHLY recommended to install standalone first

We should make it clear that it is *HIGHLY* recommended to install
standalone first. This will help the users debug their setups. It will
also help us organize the docs. Each "behind" chapter will assume
you've read the "standalone" chapter(s).

2.3. Choosing an OS

Religious rants here :-)

2.4. Installing Java

How to install a JDK or JRE on your target platform.  It might make
sense to break this out into separate chapters per platform, if it
turns out a lot of the information is different.

2.4.1. Downloading JDK
2.4.2. Setting environment variables
2.4.3. Setting class path (see Tomcat Classpath section)
2.4.4. OS Issues

2.5. Choosing a Tomcat Version
2.5.1. 3.x vs. 4.x
[ see also "Development:3.x vs 4.x" chapter ]
2.5.2. 3.1 vs 3.2 vs 3.3
2.5.3. 4.0 status

2.6. Downloading Tomcat
2.6.1. Binary distribution
2.6.2. Source distribution
2.6.3. CVS (see "developing" section)


3. Installation Standalone

This section covers the basic steps of installing Tomcat as a
standalone application.  It is the core of the Installation Guide.
Everyone who reads the later chapters is expected to have read these,
and to have a working standalone install before going and installing
behind the Web server.  

3.1. HIGHLY recommended to install standalone first

3.2. Basic procedure

3.3. Windows Issues
3.3.1. Where to place TOMCAT_HOME?
3.3.2. Port 80
3.3.3. Admin user
3.3.4. Running as a service

3.4. Unix Issues
3.4.1. Where to place TOMCAT_HOME?
3.4.2. Port 80
3.4.3. Redirector
3.4.4. root user
3.4.5. Running as a daemon

3.5. Testing your basic standalone installation
3.5.1. The Example Context (Webapp)
3.5.2. telnet from same machine
3.5.3. web browser


4. Server lifecycle management

Maybe this should go in a later Admin guide, but it's important to get
the users comfortable with the use of the scripts and stuff early
on. Maybe here we just cover starting and stopping, and have a more
thorough chapter later on.

4.1. Starting Tomcat
4.2. Stopping Tomcat
4.3. Checking if Tomcat is running
4.4. Automatically restarting [=reloading?]
4.5. [Log rotation? See "logging" chapter]

4.6. The Admin Context (Costin?)
4.7. The Tomcat Manager Application (Craig?)


5. Secure Ser

Re: [DOC] Vote on oustanding doc issues?

2001-07-09 Thread Alex Chaffee

Rob S. wrote:

> Preamble:   =)
> 
> 
>>I don't want to rush it.
>>
> 
> Agreed, but at the same time, I'd like to decide sooner than later.  I'm on
> co-op until August 24th, then I start full-time school again.  4 courses
> doesn't leave a lot of room for TC docs.  Judging by the amount of progress
> we've made recently (pretty much *zero* in over 10 days), I'll be graduated
> by the time we figure out if Tomcat documentation needs a separate
> repository.


Things To Do before we decide on format or CVS:

* Look at the latest TOC and make comments

* Pick a section or subsection and start writing :-)

* Look at http://tomcatbook.sourceforge.net/ and 
http://groups.yahoo.com/group/tcbook and see if there's anyone there to 
recruit, or if effort is being duplicated


>>1a) Should Tomcat 3.2 documentation be rolled in together with Tomcat
>>3.3 documentation for a single, up-to-date, source base, whose release
>>cycle will be independent of the release cycle of Tomcat?
>>
> 
> Bundle the 3.2.x docs with 3.2.x and only have the 3.3 docs online ("latest
> Tomcat release").  If you want the 3.2.x docs, get them with the binary or
> whatever.  I certainly don't think we should keep old versions of
> documentation updated.  I mean, why would updated 3.0 or 3.1 docs be useful?
> 
> Too much work, too little people wanting to do it.  I don't think anyone
> would expect even a product company to update their documentation on old
> versions.  The version of docs I, as a user, would expect to see 'shipping'
> with 3.2.2 (if i want to download an older version of the container) is how
> the docs looked at 3.2.2 ship time.


I like this compromise.  I will propose that we get rid of the 3.2 docs 
on the site -- once I'm convinced they're similar enough.  There's still 
that old "3.3 is a rogue release" sentiment floating around, and people 
might not appreciate giving 3.3 implied legitimacy by making it the 
"official" documentation...

> I don't imagine anyone will want to take the task on of converting the
> anarchical doc repository into the format is decided upon, or how we'll
> generate anything useful for people to evaluate during that time.  So
> someone writes in HTML, someone writes in DocBook, etc.  If I want to help
> on different docs I have to figure out the viewing/editing mechanism for
> each one?  Ugh...


Good point.  I'm for Anakia plus a stylebook saying which HTML tags and 
tricks are approved (like, stay away from JavaScript :-)

>>We can work on the TOC independently of resolving those other issues.
>>
> 
> They're not being resolved, different questions are just asked over and over
> again.
> 
>  =)


No, I think we're making progress.




-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/




Re: [DOC]: Vote on oustanding doc issues?

2001-07-09 Thread Alex Chaffee

Martin van den Bemt wrote:

>>On the topic of a new mailing list:
>>I think we can do the next steps inside the tomcat-dev list or on our
>>own. (BTW, let's use "DOC:" as a prefix so it's easier to scan for new
>>messages.) I want to do this in full view of the rest of the community,
>>mostly so they can see what's going on and volunteer to contribute.
>>
> 
> I prefer [DOC] btw.. replying to a doc issue with DOC: removes the DOC:
> entry. (at least in outlook).


OK.  (See subject of this message.)


>>>2) What is the format (XML, *Book, HTML, etc.) of the
>>>
>>documentation source?
>>
>>>If XML, what DTD?
>>>
>>
>>I propose that we do *NOT* try to answer this yet, or maybe ever.
>>Instead, I propose anarchy: that the Table Of Contents be maintained in
>>a convenient text-editable format. It will contain links to doc files
>>(sections or guides or chapters) that are files in whatever format
>>they're in. I imagine that it will eventually be most convenient to use
>>Anakia, but for now, it means that we don't have to worry about
>>rewriting useful docs that are already in HTML.
>>
> 
> Generating a default output at a certain point is not too bad though. But we
> have to be open enough for people who want to convert this to eg man pages
> or a nice pdf.


Yeah, I guess anarchy will be a little too... anarchic :-)  (Rob S. made 
the point more strongly in his latest message.)

Even if a few documents are unavoidably in wacky PDF or Word, having the 
majority in a single base format would be desirable.

I'm leaning towards Anakia, since it's basically HTML with a few wrapper 
tags, for the chapters (content). We can define a subset of HTML to be 
the "approved" tags, and encourage people to use minimal formatting 
(e.g. use  instead of ) but I'm pretty sure it's 
got the right characteristics. See 
http://jakarta.apache.org/site/jakarta-site-tags.html

If someone is scared of XML, they can submit it to us in text format and 
we can go add tags (as time permits), but we're all developers here, so 
I don't think that's an issue.

 > The main parts and main chapters in seperate subdirs at first?

Let's see. The current TOC (still no comments on it, btw -- I must have 
scared everyone off ;-) has six parts.  I think these translate nicely 
into separate documents or Guides:

I. Standalone Installation Guide
II. Installation Behind a Web Server Guide
III. Deploying and Configuring, or Tomcat Administrator's Guide
IV. Performance Tuning Guide
V. Tomcat Developer's Guide (writing code for Tomcat itself)

I and II may merge, as may III and IV, but I think we're looking at at 
least three major parts. Seems natural that they'd be in separate 
subdirectories.  But...

I'm a big fan of the "throw everything into one package until it gets so 
big you need to refactor" school of organization -- I *hate* wading 
through an infinite number of empty subdirectories that someone thought 
would be filled up some day -- so I'd be happy keeping the file tree one 
level deep for now. That frees us up to reorganize at the drop of a hat 
without painful CVS grooming.


> A vote on a seperate mailinglist for discussing doc issues would be
> appreciated though. It's getting a lot of discussion already and this will
> grow in the near future I think (and hope..). This way we don't miss any of
> the important non-docs specific stuff.


My vote is -1 for a separate mailing list at this point, at least until 
we prove that we're not going to peter out like every other 
documentation effort so far. :-)




-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/




DOC: Re: Vote on oustanding doc issues?

2001-07-09 Thread Alex Chaffee

On the topic of a new mailing list:
I think we can do the next steps inside the tomcat-dev list or on our 
own. (BTW, let's use "DOC:" as a prefix so it's easier to scan for new 
messages.) I want to do this in full view of the rest of the community, 
mostly so they can see what's going on and volunteer to contribute.

(Martin's notes-gathering list is a good idea, but I think a bit 
premature, given issues like what the topics are and what format they 
need to be in. I definitely don't want substantive discussion to happen 
on his lists (see prior para.))

Rob S. wrote:

> Not to be pushy or anything, but I'd like to get these settled quickly so we
> can get down to writing some docs =)  Does a committer want to call a vote
> on these two things?  Are we ready to do that yet?


I don't want to rush it.


> 1) Tomcat documentation per-project or in a single repository?
> 


This is actually three separate questions, and I don't think any are 
quite ready for a vote yet:

1a) Should Tomcat 3.2 documentation be rolled in together with Tomcat 
3.3 documentation for a single, up-to-date, source base, whose release 
cycle will be independent of the release cycle of Tomcat?

1b) Should Tomcat 3.x documentation be rolled together with Tomcat 4.x 
documentation?

1c) Should there be a separate CVS repository for Tomcat Documentation 
that is separate from jakarta-tomcat and jakarta-tomcat-4.0?

(Currently, there's a src/doc subdirectory in the jakarta-tomcat 
repository that would work just fine (especially if the answer to 1b is 
"no.") OTOH, it might be nice to get a fresh slate, our own build.xml, etc.)

(Personally, I'm leaning towards yes on all 3, but I'm not quite sure.)

> 2) What is the format (XML, *Book, HTML, etc.) of the documentation source?
> If XML, what DTD?


I propose that we do *NOT* try to answer this yet, or maybe ever. 
Instead, I propose anarchy: that the Table Of Contents be maintained in 
a convenient text-editable format. It will contain links to doc files 
(sections or guides or chapters) that are files in whatever format 
they're in. I imagine that it will eventually be most convenient to use 
Anakia, but for now, it means that we don't have to worry about 
rewriting useful docs that are already in HTML.

Organizing the TOC and and assigning volunteer authors to write parts is 
much more important than file format right now.


> Once we know these two things, we can get to work.  Of course there will be
> discussion on these points, but I'd like to bring them to a close sooner
> than later, so we can keep moving on with things like the TOC.


We can work on the TOC independently of resolving those other issues.



-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/




DOC: Table of Contents

2001-07-06 Thread Alex Chaffee

Here's my current Table of Contents. As I said in an earlier message,

 > I'd like to organize this TOC as a little more abstract than a simple 
table of contents. Each section should be organized to contain not just 
our original documents, but also a list of other resources on that 
topic. This will be a good way to get a useful set of docs up and 
running quickly. In fact, I imagine that many of the chapters will 
remain unwritten for a while, since there may be existing documents, or 
articles, or FAQ entries that cover the topic (even if not exclusively).

 > In short, I propose that writing a TOC is a very important first 
step, and that this TOC should live a life of its own as a standalone 
document, containing links to other docs, and meta-information like 
links to other docs as well.

I used emacs outline mode, which uses * to represent header level, so we 
don't have to renumber all the chapters all the time.
  * = part
  ** = chapter
  *** = section

For the Security chapter, I took the outline Antony wrote. I trust the 
current discussion thread will improve upon it.

Since there's a lot of detail in here, here's the outline to one level 
of headers only:

* Part I: Installation Guide
** Overview
** Pre-Installation
** Installation Standalone
** Server lifecycle management
** Secure Server (SSL)
** Virtual Hosts
** Installing Jasper (JSP)
** Logging
** Load Balancing
* Part II: Installation Behind A Web Server
** Installation Behind a Web Server Overview
** Behind Apache
** Behind IIS
** Behind iPlanet
* Part III: Deploying Web Applications in Tomcat
** Web Application Primer
** The Web application directory structure
** Deploying your Web applications
** Reloading
** Aliasing and redirecting
** Security
** Developing with Jasper (JSP)
* Part IV: Performance
** Performance Tuning Web Applications
** Tuning the server
** Load Balancing
* Part V: Tomcat Development
** Tomcat 3.x vs 4.x
** Overview of Tomcat code base
** Downloading the source code
** Building the source code
** Bugs
** Developing Interceptors (Tomcat 3.x)
** Developing Valves (Tomcat 4.x)
** Developing Connectors
** Using Tomcat Utility Classes
* Appendices
** server.xml documentation
** web.xml documentation
** Glossary
** Resources

A note on copyright: I'm claiming copyright for this document, since I 
may use parts of it to write articles or books, and I haven't done the 
research on what it means to post text (as opposed to code) into an 
Apache project. I'd contribute it explicitly as open source if I were 
sure I'd keep my rights to use it too. If anyone can enlighten me on 
this topic, please respond with a separate subject line (like 
"Copyrights") so we can keep discussions of copyright separate from 
discussions of the table of contents itself. The copyright will not 
prevent other Apache contributors from using or editing it or adding it 
to the code base -- that is, I want to preserve *my* right to use it in 
a non-Apache context, but also to grant Apache the right to use it too. 
If that's even possible. I'm confused.

Anyway, here it is :-)

Next steps:
comments & revisions ad infinitum
flag each section as applicable to 3.x, 4.x, or both
add links to existing documents
volunteer authors to write chapters/sections

-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/


This document Copyright (C) 2001 by Alex Chaffee.  All rights
reserved.  Permission is granted for the Apache project to incorporate
it in whole or in part into their documentation.


* Editorial Notes

The "installation" unit is the most crucial. I think there should be a
chapter or series of chapters on installing Tomcat standalone, that
covers *everything* or almost everything start-to-finish. Then we also
need separate chapters for installing behind each Web server. Then
come chapters on administration and advanced configuration issues.

We should make it clear that it is *HIGHLY* recommended to install
standalone first. This will help the users debug their setups. It will
also help us organize the docs. Each "behind" chapter will assume
you've read the "standalone" chapter(s).

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/appdev/deployment.html
is very well organized and would be great as a "Web Application
Developer's Guide"



* Part I: Installation Guide

Covers installing Tomcat.  Separate instructions (sidebars?) for
Windows 9x, Windows NT, Linux, Solaris, Other Unixes, Mac OS.
Separate instructions for standalone vs. plug-in.  Separate
instructions for Tomcat 3.x vs 4.x.


** Overview

Big picture, 30,000 foot view.

*** Diagram of all the parts of Tomcat 
 

Re: First day - RE: PROPOSAL: Tomcat docs

2001-07-06 Thread Alex Chaffee


> Question what about having a more detailed coverage of Tomcat's 
> architecture ?
> 
> ie: How to write TC 3.3 Interceptors, write 4.0 filters, writing
> realms.


Yes, there needs to be a separate Developers' Guide.  Here's my first 
pass at that.  I'll be revising my whole TOC as soon as I get some 
coffee, so don't take this *too* seriously... :-)


Part V: Tomcat Development

Covers actually writing code for the Tomcat code base.

1. Tomcat 3.x vs 4.x

2. Overview of Tomcat code base

3. Downloading and Building the source code

- Using CVS
- Downloading
- Building
- Using Ant

4. Fixing Bugs

5. Developing Interceptors (Tomcat 3.x)

6. Developing Valves (Tomcat 4.x)

7. Developing Connectors

-  mod_jserv
-  mod_jk
-  mod_webapp

8. Using Tomcat Utility Classes


> Final question will be who will be ready to participate
> in jakarta-tomcat-documentation (J-T-D). What about creating
> the jakarta-tomcat-documentation cvs and then vote for commiters
> on that CVS (and maybe only on that CVS) ?


I'm in.


-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/




Re: First day - RE: PROPOSAL: Tomcat docs

2001-07-05 Thread Alex Chaffee

Rob & Punky et al. -

This is so cool! I've been working on a TOC on the side for a few weeks, 
but I see the time has come to let it out to play with the other TOCs :-)

I have a few big-picture editorial comments before I do.

The "installation" unit is the most crucial. I think there should be a 
chapter or series of chapters on installing Tomcat standalone, that 
covers *everything* or almost everything start-to-finish.  Then we also 
need separate chapters for installing behind each Web server.  Then come 
chapters on administration and advanced configuration issues.

We should make it clear that it is *HIGHLY* recommended to install 
standalone first. This will help the users debug their setups. It will 
also help us organize the docs. Each "behind" chapter will assume you've 
read the "standalone" chapter(s).

Developing Web Applications should be separate from Deploying Web 
Applications In Tomcat.

There needs to be a strong division in the docs between User mode and 
Developer mode (as someone else mentioned).

I'd like to organize this TOC as a little more abstract than a simple 
table of contents. Each section should be organized to contain not just 
our original documents, but also a list of other resources on that 
topic. This will be a good way to get a useful set of docs up and 
running quickly. In fact, I imagine that many of the chapters will 
remain unwritten for a while, since there may be existing documents, or 
articles, or FAQ entries that cover the topic (even if not exclusively).

Once we get a list of the "chapters" we can also list whether the 
contents would differ between TC3 and TC4.  I expect that there are more 
similarities than differences. For instance, in configuring connectors 
or deploying webapps or classpath organization.  (On classpaths, even 
though TC4 has a different order of precedence, the explanatory 
paragraphs will be the same, as will the ones describing classloading 
inside a web app.) If this expectation bears out, it will be an argument 
in favor of merging the TC3 and TC4 docs into a single CVS project.

In short, I propose that writing a TOC is a very important first step, 
and that this TOC should live a life of its own as a standalone 
document, containing links to other docs, and meta-information like 
links to other docs as well.

Right now that doc is in text format, as Punky's rewrite of Rob's TOC. 
I'll integrate my organizational thoughts and post a revised version 
soon.  I'll use the prefix DOC: in my subject line, which should help us 
keep these threads straight.

  - Alex


-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/




Re: TC4 docs - can we end this?

2001-07-03 Thread Alex Chaffee

Rob S. wrote:

>I would've thought a thread about docs would be concerned with what docs to
>create, what docs will glue them together, maybe an image on the doc
>homepage with a map showing what order you can read them, etc.
>
OK, I'll write up a proposal soon with my ideas on doc organization. You 
and I seem to have similar ideas about what needs to be done.

Some things that wil probably be in that proposal:

A trail map, a table of contents, a to-do list, a clear distinction 
between Manuals and Howtos...

Clearly labelled sidebars for variations in OS, Tomcat version, 
front-end Web server...

Tags for authorship for sections (perhaps with one section per file so 
CVS can help)...

Pointers to existing docs and other sites (e.g. to specific FAQ entries)...

>p.s. I thought of another one, "Too many chefs, not enough doc writers" ;)
>

:-)

-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/






Re: Tomcat Documentation Project

2001-07-03 Thread Alex Chaffee

>Rob S. wrote:
>
>Seeing as how I rewrote last summer it, I would be curious to know what's
>wrong w/the Apache config docs? =)
>
The main document still covers mod_jserv, the mod_jk document is a 
separate HOWTO, there's no mod_webapp coverage, the procedure for 
mod_jk.conf-auto has changed a few times, the instructions for NT and 
Unix are kind of jumbled...

>Correct me if I'm wrong, but the changes I made to the User's and Apache
>guide like the biggest two (and only two major) changes in the docs since
>Gal originally wrote them?  Hell, that was last summer...  just goes to show
>how everyone likes to talk about docs, but no one actually DOES anything.
>

I'll have to check to make sure, but I think you're right. (With the 
qualification that, since you weren't a committer, as I was merging your 
changes I made a bunch of my own too, but it was the same timeframe.)

-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/






Tomcat Documentation Project

2001-07-03 Thread Alex Chaffee

Leaving aside the issue of file format for just one second...

Are we agreed on the following?

1. Tomcat documentation sucks :-)

2. There needs to be a new CVS project called jakarta-tomcat-doc.

My reasoning is that we want to avoid the fragmentation of documentation 
into different trees for 3.2, 3.3, and 4.0.  Why?  Because a lot of 
documentation would apply equally to all versions.  

Looking at it in reverse, the fact that someone is using an old version 
of Tomcat shouldn't mean they're forced to use an old version of the 
documentation.  Instead, a chapter on, say, web application deployment 
may need to have a sidebar describing changes between 3.x and 4.x, but 
assuming 4.x isn't *radically* different, they can both use the same 
core text. (In cases where 4.x *is* radically different, it would just 
have a separate document/chapter, with the 4.x specificity clearly 
labelled in the title.)

I know the 4.x crew have begun the process of creating a separate 
documentation set, including xdocs, and this is great. If it's too much 
work to integrate 3.x and 4.x then maybe they should remain separate CVS 
projects too, but it may still be desirable to have a separate CVS 
project anyway.

3. There needs to be a better index/TOC for the documentation we do 
have, and a reorganization of the redundant / outdated / wrong parts of 
the existing docs (the Apache config stuff comes to mind).

4. Someone or some small group of people should take responsibility for 
making this happen (before we "run out of steam"), regularly submitting 
proposals and keeping the rest of the group apprised of developments and 
decisions, but retaining some authority. Let's call this person/people 
the Documentation Czar. I'm not proposing he/they have any real 
authority over the content, but just over organizing it, deciding where 
to place it, and forming "to do" lists for documents/chapters that need 
to be written or proofed or tech edited or revised.

If we agree on the above, then there's a good chance I'd volunteer to be 
the Doc Czar, even though I think it's a lot of work. I've been managing 
the jGuru Tomcat FAQ for a year, and the Servlets FAQ for longer, so I 
at least have some idea of the scope of this kind of organizational 
task. (Note that I'm not suggesting I actually *write* all this new 
documentation... :-)

Maybe a better term would be "Doc Editor" or "Editorial Board". And 
maybe I'm being too anal in proposing it; maybe the open source process 
will ensure the job gets done by interested developers even without the 
title.

 - Alex





Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/



Re: Call for volunteers

2001-01-19 Thread Alex Chaffee

+1

I'm using Tomcat 3.2 on several production sites and I'm not ready to
switch to 4.x yet.  

I'm sorry I haven't had the time to contribute like I did last summer,
but I'll see if I can scrounge up some non-billable hours.  At any
rate, I can definitely help with app testing, and hopefully with code
review.

 - A

-- 
Alex Chaffee   mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs http://www.jguru.com/alex/
Creator of Gamelan http://www.gamelan.com/
Founder of Purple Technology   http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/

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