You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by David Morton <sk...@mindspring.com> on 2000/02/03 17:37:16 UTC
Quick Questions/Recommendation v3.1m1
1. I'm not sure where to put my class files. The FAQ in v3.1m1 said:
/examples/WEB-INF/jsp/beans
- however, I had problems with this...I believe the examples dir does not
have this directory either
- If someone could clarify in faq, or set up clearer example.
- If anyone could point me in the right direction or correct my mistake
soon..that would be great
Note: Here are sun's docs:
http://java.sun.com/products/jsp/technical.html
2. Recently I was discussing the following with a fellow developer
<%= request.getParameter("aParameter") %>
He mentioned that when the parameter is null his JSP engine does not print
the String 'null'....it returns "". Which behavior do you think is best
for Tomcat? (I thought his recommendation was cool.)
Here's the current way I do things w/Tomcat:
<%= request.getParameter("aParameter")==null ?
"":request.getParameter("aParameter") %>
3. Can anyone recommend good JSP design technique
books/docs/sites/newsgroups. For example, I have a header that I want to
be common on all pages, however, it varies slightly on each page (typical
html highlighting of current page), so I created a function that handles
these minor differences. For argument sake, lets say I have a services
page and a product page. I have a java class that currently handles this
that I currently call in JSP by:
<%= Headers.getHeader(Headers.SERVICES_HEADER) %>
what design technique using JSP would be a better solution?
4. I noticed on previous post that the conf files will probably be less
confusing soon...also, more clarification on the directory structure for
classes/servlets/beans/jsp for newbies. I was editing the wrong xml file
to add a new APPLICATION
5. Logs are a little confusing currently I do the following at boot on linux:
/usr/local/tomcat/startup.sh 2 > /home/dmorton/sites/logs/tomcat-error_log
I forget who told me how to do this.
- On a positive note, I'm using Tomcat 3.0 release on
http://www.favicon.com...it has been working great. (the applet talks to
tomcat)
Thanks
David
[ FORGET...] Re: New settings and change of port
Posted by Luc Saint-Elie <ls...@imaginet.fr>.
Bonjour (Hello) Luc Saint-Elie, vous avez écrit le (you wrote on) 09:43
03/02/2000 +0100 :
>Hello,
>A little stupid question:
>In the new Tomcat organization of files, where is the setting to set up
>the port on 80 instead of 8080 ?
>In previous organization, it was in server.xml, in the new settings
><ContextManager port="80" hostName="" inet=""> doesn't lead Tomcat to
>answer to port 80 instead of 8080
Well its was stupid, for those who are wondering (pleaaase tell me I'm not
the only dumb around !!) just add
<Connector className="org.apache.tomcat.service.http.HttpAdapter">
<Parameter name="port" value="80"/> ===> add this line
</Connector>
Re: New settings and change of port
Posted by Lajos Moczar <lm...@galatea.com>.
It's still there and works for me just fine.
What OS and Tomcat version are you using? If you're on UNIX, make sure you
are starting tomcat as root, or you won't be able to bind to port 80.
At 09:43 AM 2/3/00 +0100, Luc Saint-Elie wrote:
>Hello,
>A little stupid question:
>In the new Tomcat organization of files, where is the setting to set up the
>port on 80 instead of 8080 ?
>In previous organization, it was in server.xml, in the new settings
><ContextManager port="80" hostName="" inet=""> doesn't lead Tomcat to
>answer to port 80 instead of 8080
>
Lajos Moczar
Galatea IS Inc.
www.galatea.com
Re: New settings and change of port
Posted by co...@eng.sun.com.
> Hello,
> A little stupid question:
> In the new Tomcat organization of files, where is the setting to set up the
> port on 80 instead of 8080 ?
> In previous organization, it was in server.xml, in the new settings
> <ContextManager port="80" hostName="" inet=""> doesn't lead Tomcat to
> answer to port 80 instead of 8080
The port is a property of the adapter ( httpAdapter in this case), not
a property of the server ( the server or contextManager might listen on
multiple ports )
Try:
<Connector className="org.apache.tomcat.service.http.HttpAdapter">
<Parameter name="port" value="80"/>
</Connector>
Costin
New settings and change of port
Posted by Luc Saint-Elie <ls...@imaginet.fr>.
Hello,
A little stupid question:
In the new Tomcat organization of files, where is the setting to set up the
port on 80 instead of 8080 ?
In previous organization, it was in server.xml, in the new settings
<ContextManager port="80" hostName="" inet=""> doesn't lead Tomcat to
answer to port 80 instead of 8080
Thanks in advance
+------------------------------------------------+
| Luc Saint-Elie |
| 7, rue Androuët |
| 75018 Paris France |
| Tel: 06 12 90 19 65 |
| email : luc@interpasnet.com |
+------------------------------------------------+