QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked Questions

How do I write to a log file using JSP under Tomcat? Can I make use of the log() method for this?

jGuru: Tomcat FAQ
Author: Serge Knystautas (http://www.jguru.com/guru/viewbio.jsp?EID=100012) Question originally posed by Peter Gelderbloem (http://www.jguru.com/guru/viewbio.jsp?EID=91670 Yes, you can use the Servlet API's log method in Tomcat from within JSPs or servlets. These messages are stored in the server's log directory in a file called servlet.log. Author: Serge Knystautas (http://www.jguru.com/guru/viewbio.jsp?EID=100012) Question originally posed by Mark Lepak (http://www.jguru.com/guru/viewbio.

Can I use Ruby on Rails and Tomcat/JSP on the same domain?

FAQ - JSP Hosting, Servlet Hosting, J2EE Hosting
There is detailed information on how to use PostgreSQL at their web site at http://www.postgresql.org. To maintain your postgresql database, telnet/ssh to connect to our server and use the command line PostgreSQL client. To do this enter the command "psql". You will automatically be connect to your database. After you get connected you can use create tables, indexes, etc. as per the documentation on the PostgreSQL web site.

do u want to use iis for administration & tomcat in the back to handle jsp's?

jGuru: Tomcat FAQ
If u want to tomcat to handle ur jsp's & iis to handle the front administration..u need to use a filter (isapi filter)which will redirect the jsp's to tomcat.

I want to run JSP files using the Tomcat server, where should I place my JSP files?

jGuru: JSP FAQ Home Page
Under the Tomcat root directory there will be a sub-directory named web-apps, all web applications running on this Tomcat server will reside there. Each... What is the difference between HttpSession mySession=request.getSession(true) and HttpSession mySession=request.getSession() request.getSession() will return the current session and if one does not exist, a new session will be cretaed. request.getSession(true) will return..

Can I use the Standard Days Method without using CycleBeads?

CycleBeads - Frequently Asked Questions
Yes you can. CycleBeads have been found to be an efficient, easy-to-use tool for helping women keep track of their cycles and know which days are fertile and which are not. However, a woman could simply keep track of her cycle on a calendar and count the days, starting with her period so that she would know when she was in her fertile window ? Days 8 through 19 of her cycle ? and could get pregnant.

How do I debug an Apache Tomcat 5.0 JSP?

JDebugTool - Graphical Java Debugger
You can indirectly debug a Tomcat 5.0 JSP, by generating the corresponding Java source file, and then Mounting the corresponding Source Path in JDebugTool. First you will need to attach JDebugTool to Tomcat as described in FAQ #25 above. Then you will need to invoke your JSP to determine where the generated Java source file is created. For example, you would then Mount the following Source Path (see FAQ #1): where mywebapp would be the corresponding name of your web app.

Is it better to "pre-make" recipient sites or to use the "stick and place" method?

FAQ - Frequently Asked Questions - NHI
By making all the sites himself, the physician has complete control over the aesthitics of the surgery i.e the angle of distribution of each follicular unit and the overall design of the transplant. If the physician is highly skilled, this is an extrememly important advantage. When sites are pre-made there is less popping, since the act of making the sites (in stick and place) puts pressure on the surrounding skin causing adjacent grafts to pop.

How do I upload a file to my servlet or JSP?

On the client side, the client's browser must support form-based upload. Most modern browsers do, but there's no guarantee.For example, <FORM ENCTYPE='multipart/form-data' method='POST' action='/myservlet' > <INPUT TYPE='file' NAME='mptest' > <INPUT TYPE='submit' VALUE='upload' > </FORM> The input type "file" brings up a button for a file select box on the browser together with a text field that takes the file name once selected.

How do I deploy a WAR file in Tomcat?

jGuru: Tomcat FAQ
Delete existing deployment. If you have previously deployed "foo.war" in TOMCAT_HOME/webapps, then it has been unpacked into webapps/foo/... You must delete this directory and all its contents. On Unix, this can be done with rm -r $TOMCAT_HOME/webapps/foo This process may become easier in the future. A "deploy tool" is on the Tomcat "to-do" list. Note that if you deploy a WAR file in this manner, you do not need to make any changes to server.

Which classloader should I use to load a resource file in Servlet/JSP packaged in my WAR module?

For example you have a properties file called debu.properties in WEB-INF/classes of your web module, you have to use the following code to load the properties file: InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("/debu.properties");

Why server says permission denied to write to a log file?

SILC Secure Internet Live Conferencing
The owner of the log files must be same user that the server is run under, by default it is user 'nobody'. Just change the permissions and try again. Most likely the ciphers and others has not been compiled as SIMs (modules) and they are configured as modules in the silcd.conf. This usually happens on *BSD systems where SIMs are not built. If they are not compiled as modules leave module_path variable empty in your silcd.conf, so that the server uses the builtin ciphers.

Can I call a JSP, then have it return control to the original JSP, like a subroutine or method call?

Yes. That is exactly the purpose served by the <jsp:include> action. The syntax of the include action is:

What file or operation is it that is trying to write to this text file?

iSchool Technology Knowledge Base - How to Create a Ghost 8....
I was wondering if anyone has has noticed the error that when trying to connect to a norton ghostcast, that it can't seem to resolve the packet driver and IP address? I'm using a standard router with just a cable connecting to it and from that to the computer with the ghostcast running. when i try to run the 8.0 ghost.exe i am getting an error message that says program is to big to run in memory. how do i get around this.

How do I add a JSP file in the welcome-file-list if the jsp is in a sub-directory?

Assuming you are deploying your Web application using the standard J2EE WAR format, you may add the file to the welcome file list in the web deployment descriptor file, web.xml: <welcome-file-list> ... <welcome-file>web/jsp/one/xx.jsp</welcome-file> ... </welcome-file-list>

Q13: How should I use the addresses in the log file when it is as below ?

MemCheck FAQ
You can use "Find error" ("search" menu) to find the line an address maps to. It is easier to turn on td32 debug informations (project options, linker tab). That will make the MemCheck log file much more usable.

I find it an unnecessary hassle to log in and then write in the forum. Can't you make it free?

Indians in Thailand - FAQs
Kindly note that the logging in has been made compulsory to avoid any spamming whatsoever. We respect our users and as such wish to keep the platform clean for them. Any unwanted posts on the forum or spam tend to discourage the genuine users. We request you to please contribute your valuable ideas to the forum and help in developing the community. It is a win-win situation for all. Regarding ipod, please be informed that it is just a small incentive to make people speak on forums.

How can I use LDAP with JSP?

jGuru: JNDI FAQ Home Page
To use LDAP within Java (JSP or not), you must use JNDI (Java Naming and Directory Interface). A bit like JDBC, JNDI consists of A list of packages:...

What shipping method do you use?

Buy Body Jewelry FAQ Questions and Answers
We ship from Pittsfield, Massachusetts, and all order are shipped out by: Almost all orders are shipped out anywhere in the world for $3.00 shipping. And shipping no matter how much you buy, is still ONLY $3.00! U.S. Options: We ship US Post First Class regular delivery . Shipping costs includes handling and packaging materials. Non-U.S. Shipping: If you do not buy shipping insurance - we can not guarantee your order once it has left our hands. Sorry.

How much floss should I use and what is the best method?

Fresh Breath
Use approximately 30-40cm length of floss. Hold it taut between your thumbs to floss the top teeth, and between your forefingers to floss the bottom teeth. Leave about 5cm of floss between the fingers. The floss must be taut when it is used. Guide the floss between the teeth using a very gentle sawing motion. Move up and down to clean gently under the gum line. Don't be too rough and be careful not to cut your gums.

What method of payment can I use?

Lids - FAQ's
For US orders, we accept American Express, Discover, MasterCard, Visa, Lids Gift Cards, and special promotional code discounts or check cards or ATM cards, as long as they are connected with one of the major credit card companies listed above. All orders must be prepaid. If you're paying with a credit card, enter the number without spaces or dashes.
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact