tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Alex Chaffee)
Subject [FAQ] jGuru FAQ Update
Date Sat, 03 Nov 2001 01:23:04 GMT
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 .

 - 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

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

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

++ JavaServer Pages (JSP) FAQ:

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 ?

How can I send email from a JSP page with HTML format?

Can I instantiate the same JavaBean multiple times within a JSP page by associating each instance
with a different scope?

Is there a way how the output of a JSP page could be compressed by removing all <b>CR</b>,
<b>TABs</b>, <b>SPACEs</b> from the HTML?

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?

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?

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?</p>

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?

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

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.  <br><br>I am tempted
to wrap everything in the try catch so my users never see an ugly "null pointer exception"
again.  <br><br>Any suggestions?

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.

I have trouble displaying a string like "&lt;some data&gt;" via JSP, since they interfere
with HTML tags.
For example, when displaying "&lt;;", the &lt;;
disappears. Is there any workaround for this?

++ Servlets FAQ:

Can I place my classes somewhere other than inside WEB-INF?

++ Tomcat FAQ:

Can I place my classes somewhere other than inside WEB-INF?

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

View raw message