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.<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?
        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:
<P>
1. My application is under /opt/tomcat/webapps/myApp
<br>
2. My jsp file is : /opt/tomcat/webapps/myApp/web/test.jsp
<br>
   It contains;
<br>
  . . .
<br>
&lt;%                                                  
<br>
String configFile=getInitParameter("configFile");   
<br>
System.out.println("configFIle="+configFile);       
<br>
%&gt;
<P>
3. My web.xml is: /opt/tomcat/webapps/myApp/WEB-INF/web.xml
<br>
It contains:
&lt;web-app&gt;
<br>                                                      
   &lt;servlet&gt;
<br>                                           
      &lt;servlet-name&gt;test&lt;/servlet-name&gt;     
<br>        
      &lt;jsp-file&gt;/web/test.jsp&lt;/jsp-file&gt;        
<br>      
      &lt;init-parameter&gt;                                
<br>        
        &lt;param-name&gt;configFile&lt;/param-name&gt;    
<br>               
        &lt;param-value&gt;TOTO&lt;/param-value&gt;       
<br>                
      &lt;/init-parameter&gt;                                       
<br>
   &lt;/servlet&gt;                       
<br>                          
   &lt;servlet-mapping&gt;
<br>                                          
       &lt;servlet-name&gt;test&lt;/servlet-name&gt;      
<br>      
       &lt;url-pattern&gt;/web/test.jsp&lt;/url-pattern&gt;       
<br>
   &lt;/servlet-mapping&gt;                                         
 <br>                                                             
&lt;/web-app&gt;                                                    
<P>
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 unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to