tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Alex Chaffee)
Subject [FAQ] jGuru FAQ Update
Date Sat, 22 Dec 2001 01:24:22 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

++ JavaServer Pages (JSP) FAQ:

Can I make a jsp custom tag to return a value in to a jsp variable.<p>
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).<p> Can anybody give some
sample of the code using similar functionality. <br>Can we some how use the get methods
in the tagHandler in our jsp to retrieve the values?

Is it possible to invoke customtags onEvents like onClick?

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");   
3. My web.xml is: /opt/tomcat/webapps/myApp/WEB-INF/web.xml
It contains:
What am I doing wrong?

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

Why use JSP? All that we can do with scriptlets we can do with JavaScript as well, I think.
Can somebody explain?

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 ?

++ Servlets FAQ:

HttpUtils.parseQueryString is deprecated. What should we use instead ?

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

What are the steps that I need to follow to deploy my servlet in WebLogic 6.1?

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.

++ Tomcat FAQ:

Why is Tomcat 4.0 so slow when connecting via a URLConnection?

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

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message